Skip to content

Commit 43f98ee

Browse files
committed
update minsdk
1 parent 5a198d3 commit 43f98ee

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
ext {
8-
minSdk = 26
8+
minSdk = 21
99
compileSdk = 34
1010
targetSdk = 31
1111
ndkVersion = "25.2.9519653"

jtik/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
compileSdk 33
1111

1212
defaultConfig {
13-
minSdk 26
13+
minSdk rootProject.ext.minSdk
1414

1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1616
consumerProguardFiles "consumer-rules.pro"

jtik/src/main/java/com/zxc/jtik/Jtik.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class Jtik {
2323

2424
private static boolean sInitialized = false;
2525
public static synchronized boolean init(Context context) {
26+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O){
27+
return false;
28+
}
2629
if (sInitialized) {
2730
return false;
2831
}

0 commit comments

Comments
 (0)