Skip to content

Commit

Permalink
Increase minimum sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Mar 23, 2024
1 parent 4b45b48 commit 6550ebd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Adds additional functionality to the Lithium EPUB Reader Android app.

## Features

- Requires Android Oreo (8) or higher.
- Latest WebView (at least ~73) required for full functionality.
- Custom icon color.
- Monochrome adaptive icon support.
- Dynamic grid view cover width and custom aspect ratio.
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func run(ctx context.Context) error {
fmt.Printf("> Signing APK %q to %q\n", apkPatched, *Output)
if err := jar(ctx,
*Apksigner, "sign",
"--min-sdk-version", "23",
"--min-sdk-version", "26",
"--ks", *Keystore,
"--ks-pass", "pass:"+*KeystorePassphrase,
"--pass-encoding", "utf-8",
Expand Down
19 changes: 19 additions & 0 deletions patches/internal/minsdk.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// # Increase minimum API level
//
// Set the minimum API level to 26 (8: Oreo). Ships with webview 58 (but
// upgradeable -- note that we want ~73+ for some of our patches). Ships with
// SQLite 3.18. Supports APK signatures v2.
package internal

import . "github.com/pgaskin/lithiumpatch/patches/patchdef"

func init() {
Register("minsdk",
PatchFile("apktool.yml",
ReplaceString(
`minSdkVersion: '16'`,
`minSdkVersion: '26'`,
),
),
)
}

0 comments on commit 6550ebd

Please sign in to comment.