Skip to content

Commit d3dc1ef

Browse files
Source min SDK version from project extension properties
1 parent 505cb7c commit d3dc1ef

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SQLCipher for Android provides a library replacement for `android.database.sqlit
66

77
### Compatibility
88

9-
SQLCipher for Android supports Android API 16 and up on `armeabi-v7a`, `x86`, `x86_64`, and `arm64_v8a` architectures.
9+
SQLCipher for Android supports Android API 21 and up on `armeabi-v7a`, `x86`, `x86_64`, and `arm64_v8a` architectures.
1010

1111
### Contributions
1212

README.md.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SQLCipher for Android provides a library replacement for `android.database.sqlit
66

77
### Compatibility
88

9-
SQLCipher for Android supports Android API 16 and up on `armeabi-v7a`, `x86`, `x86_64`, and `arm64_v8a` architectures.
9+
SQLCipher for Android supports Android API <%=minSdkVersion%> and up on `armeabi-v7a`, `x86`, `x86_64`, and `arm64_v8a` architectures.
1010

1111
### Contributions
1212

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ project.ext {
3030
} else {
3131
libraryVersion = "4.5.3"
3232
}
33+
minSdkVersion = 21
3334
androidXSQLiteVersion = "2.2.0"
3435
roomVersion = "2.5.0"
3536
androidNdkVersion = "25.2.9519653"
@@ -65,7 +66,8 @@ task generateReadMe {
6566
def binding = [
6667
libraryVersion: project.ext.libraryVersion,
6768
androidXSQLiteVersion: project.ext.androidXSQLiteVersion,
68-
androidNdkVersion: project.ext.androidNdkVersion
69+
androidNdkVersion: project.ext.androidNdkVersion,
70+
minSdkVersion: project.ext.minSdkVersion,
6971
]
7072
def template = engine.createTemplate(reader).make(binding)
7173
readme.write(template.toString())

sqlcipher/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66
compileSdkVersion 33
77

88
defaultConfig {
9-
minSdkVersion 21
9+
minSdkVersion "${rootProject.ext.minSdkVersion}"
1010
targetSdkVersion 33
1111
versionCode 1
1212
versionName "${rootProject.ext.libraryVersion}"

0 commit comments

Comments
 (0)