Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:7.2.1"
classpath "com.android.tools.build:gradle:8.1.1"
}
}

Expand Down Expand Up @@ -59,7 +59,7 @@ android {
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
ndk {
abiFilters "armeabi-v7a", "x86", "arm64-v8a"
abiFilters "armeabi-v7a", "arm64-v8a", "x86_64"
}
}

Expand All @@ -74,8 +74,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

Expand Down
8 changes: 4 additions & 4 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PrinterImin_kotlinVersion=1.7.0
PrinterImin_kotlinVersion=1.8.10
PrinterImin_minSdkVersion=21
PrinterImin_targetSdkVersion=31
PrinterImin_compileSdkVersion=31
PrinterImin_ndkversion=21.4.7075529
PrinterImin_targetSdkVersion=34
PrinterImin_compileSdkVersion=34
PrinterImin_ndkversion=23.1.7779620
6 changes: 6 additions & 0 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 5 additions & 1 deletion android/src/main/java/com/printerimin/PrinterIminModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,11 @@ private void initializeBroadcastReceiver() {
mBroadcastReceiver = createChargingStateBroadcastReceiver();
intentFilter.addAction(ACTION_PRITER_STATUS_CHANGE);
intentFilter.addAction(ACTION_POGOPIN_STATUS_CHANGE);
getReactApplicationContext().registerReceiver(mBroadcastReceiver, intentFilter);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
getReactApplicationContext().registerReceiver(mBroadcastReceiver, intentFilter, Context.RECEIVER_EXPORTED);
} else {
getReactApplicationContext().registerReceiver(mBroadcastReceiver, intentFilter);
}
}

@ReactMethod
Expand Down
10 changes: 6 additions & 4 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

buildscript {
ext {
buildToolsVersion = "33.0.0"
buildToolsVersion = "34.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
compileSdkVersion = 34
targetSdkVersion = 34

// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
kotlinVersion = "1.8.10"
}
repositories {
google()
Expand All @@ -17,7 +18,8 @@ buildscript {
// maven { url "https://maven.aliyun.com/repository/central" }
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.android.tools.build:gradle:8.1.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
}
}