Skip to content

Commit f9ffe37

Browse files
refactor: update build.gradle and podspec so they use updated native dependencies
1 parent a11e72b commit f9ffe37

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

android/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
if (project == rootProject) {
88
repositories {
99
google()
10-
jcenter()
10+
mavenCentral()
1111
}
1212

1313
dependencies {
@@ -23,15 +23,13 @@ def safeExtGet(prop, fallback) {
2323
}
2424

2525
android {
26-
compileSdkVersion safeExtGet('IntercomReactNative_compileSdkVersion', 29)
27-
buildToolsVersion safeExtGet('IntercomReactNative_buildToolsVersion', '29.0.2')
26+
compileSdkVersion safeExtGet('IntercomReactNative_compileSdkVersion', 30)
2827
defaultConfig {
2928
minSdkVersion safeExtGet('IntercomReactNative_minSdkVersion', 21)
30-
targetSdkVersion safeExtGet('IntercomReactNative_targetSdkVersion', 29)
29+
targetSdkVersion safeExtGet('IntercomReactNative_targetSdkVersion', 30)
3130
versionCode 1
3231
versionName "1.0"
3332
buildConfigField 'String', 'INTERCOM_VERSION_NAME', packageVersion
34-
3533
}
3634

3735
buildTypes {
@@ -49,18 +47,18 @@ android {
4947
}
5048

5149
repositories {
50+
mavenCentral()
5251
mavenLocal()
5352
maven {
5453
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
5554
url("$rootDir/../node_modules/react-native/android")
5655
}
5756
google()
58-
jcenter()
5957
}
6058

6159
dependencies {
6260
//noinspection GradleDynamicVersion
6361
implementation "com.facebook.react:react-native:+" // From node_modules
6462
implementation 'com.google.firebase:firebase-messaging:20.2.+'
65-
implementation 'io.intercom.android:intercom-sdk:10.+'
63+
implementation 'io.intercom.android:intercom-sdk:10.1.+'
6664
}

intercom-react-native.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
1717
s.resource_bundles = { 'IntercomFramework' => ['ios/assets/*'] }
1818

1919
s.dependency "React-Core"
20-
s.dependency "Intercom", '~> 10.0'
20+
s.dependency "Intercom", '~> 10.1.0'
2121
end

0 commit comments

Comments
 (0)