Skip to content

Commit 33a3e7c

Browse files
committed
Fix Android SDK 17.0.0 compatibility issues
- Remove deprecated RNIntercomPushBroadcastReceiver class (no longer exists in SDK 17.0.0) - Update Android Gradle Plugin to 8.6.1 (required for new dependencies) - Update Gradle wrapper to 8.7 (required for AGP 8.6.1) - Remove RNIntercomPushBroadcastReceiver references from AndroidManifest.xml and README - Add suppressUnsupportedCompileSdk property to suppress warnings These changes are required for compatibility with Intercom Android SDK 17.0.0
1 parent da1dff3 commit 33a3e7c

File tree

12 files changed

+1031
-1614
lines changed

12 files changed

+1031
-1614
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,6 @@ public class MainNotificationService extends FirebaseMessagingService {
222222
</intent-filter>
223223
</service>
224224

225-
<receiver
226-
android:name="com.intercom.reactnative.RNIntercomPushBroadcastReceiver"
227-
tools:replace="android:exported"
228-
android:exported="true"/>
229225
<!-- END: Add this-->
230226

231227
</application>

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ buildscript {
1919
}
2020

2121
dependencies {
22-
classpath("com.android.tools.build:gradle")
22+
classpath("com.android.tools.build:gradle:8.6.1")
2323
classpath("com.facebook.react:react-native-gradle-plugin")
2424
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
2525
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

android/src/main/java/com/intercom/reactnative/RNIntercomPushBroadcastReceiver.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
</activity>
3232

3333

34-
<receiver
35-
android:name="com.intercom.reactnative.RNIntercomPushBroadcastReceiver"
36-
tools:replace="android:exported"
37-
android:exported="true" />
34+
3835
</application>
3936
</manifest>

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ buildscript {
1212
mavenCentral()
1313
}
1414
dependencies {
15-
classpath("com.android.tools.build:gradle")
15+
classpath("com.android.tools.build:gradle:8.6.1")
1616
classpath("com.facebook.react:react-native-gradle-plugin")
1717
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
1818
}

example/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
3535
# are providing them.
3636
newArchEnabled=false
3737
FLIPPER_VERSION=0.93.0
38+
android.suppressUnsupportedCompileSdk=35
3839

3940
org.gradle.jvmargs=-Xmx2048m
4041
org.gradle.daemon=true

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

example/package-lock.json

Lines changed: 510 additions & 1094 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/yarn.lock

Lines changed: 513 additions & 500 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)