diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 6f937ed9..16d007ae 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -12,8 +12,6 @@ jobs: permissions: contents: write pull-requests: write - issues: read - actions: read steps: - name: 🔍 Checkout repository @@ -48,16 +46,18 @@ jobs: - name: 🚀 Get latest SDK releases id: latest-versions + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | echo "🔄 Fetching latest releases..." # Get iOS release - IOS_RELEASE=$(curl -s https://api.github.com/repos/intercom/intercom-ios/releases/latest) + IOS_RELEASE=$(gh api repos/intercom/intercom-ios/releases/latest 2>/dev/null || echo '{}') IOS_VERSION=$(echo "$IOS_RELEASE" | jq -r '.tag_name // "null"') IOS_CHANGELOG=$(echo "$IOS_RELEASE" | jq -r '.body // "No changelog available"') # Get Android release - ANDROID_RELEASE=$(curl -s https://api.github.com/repos/intercom/intercom-android/releases/latest) + ANDROID_RELEASE=$(gh api repos/intercom/intercom-android/releases/latest 2>/dev/null || echo '{}') ANDROID_VERSION=$(echo "$ANDROID_RELEASE" | jq -r '.tag_name // "null"') ANDROID_CHANGELOG=$(echo "$ANDROID_RELEASE" | jq -r '.body // "No changelog available"') @@ -419,7 +419,7 @@ jobs: 🤖 This PR was automatically created by the [Update Dependencies workflow](.github/workflows/update-dependencies.yml). EOF - # Create PR + # Create PR and assign to team if gh pr create \ --title "chore: update Intercom SDK dependencies (${{ steps.update-files.outputs.pr_title_parts }})" \ --body-file pr_body.md \ diff --git a/android/build.gradle b/android/build.gradle index bf6c7a8d..ef4c8d2b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -84,6 +84,6 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" // From node_modules implementation "com.google.firebase:firebase-messaging:24.1.2" - implementation 'io.intercom.android:intercom-sdk:17.3.1' - implementation 'io.intercom.android:intercom-sdk-ui:17.3.1' + implementation 'io.intercom.android:intercom-sdk:17.4.1' + implementation 'io.intercom.android:intercom-sdk-ui:17.4.1' } diff --git a/examples/example/ios/Podfile.lock b/examples/example/ios/Podfile.lock index e4b5e23a..7d1cc4c4 100644 --- a/examples/example/ios/Podfile.lock +++ b/examples/example/ios/Podfile.lock @@ -4,11 +4,11 @@ PODS: - FBLazyVector (0.74.0) - fmt (9.1.0) - glog (0.3.5) - - Intercom (19.3.4) - - intercom-react-native (9.3.4): + - Intercom (19.4.1) + - intercom-react-native (9.4.0): - DoubleConversion - glog - - Intercom (~> 19.3.4) + - Intercom (~> 19.4.1) - RCT-Folly (= 2024.01.01.00) - RCTRequired - RCTTypeSafety @@ -1332,8 +1332,8 @@ SPEC CHECKSUMS: FBLazyVector: 026c8f4ae67b06e088ae01baa2271ef8a26c0e8c fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120 glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 - Intercom: 9d89549ab9742b2acece67baeffbb4b1f932ad3d - intercom-react-native: c4cc53cdb7ed2811f398c284fbe7d61469be2bf0 + Intercom: aca703f001cf9470b1f13b72cb8cc969a09bafca + intercom-react-native: 983e1581156145c2940a2e83d10a0e0943cec354 RCT-Folly: 045d6ecaa59d826c5736dfba0b2f4083ff8d79df RCTDeprecation: 3ca8b6c36bfb302e1895b72cfe7db0de0c92cd47 RCTRequired: 9fc183af555fd0c89a366c34c1ae70b7e03b1dc5 diff --git a/examples/with-notifications/ios/Podfile.lock b/examples/with-notifications/ios/Podfile.lock index 5625a149..08623b1f 100644 --- a/examples/with-notifications/ios/Podfile.lock +++ b/examples/with-notifications/ios/Podfile.lock @@ -8,15 +8,15 @@ PODS: - hermes-engine (0.81.1): - hermes-engine/Pre-built (= 0.81.1) - hermes-engine/Pre-built (0.81.1) - - Intercom (19.3.4) - - intercom-react-native (9.3.4): + - Intercom (19.4.1) + - intercom-react-native (9.4.0): - boost - DoubleConversion - fast_float - fmt - glog - hermes-engine - - Intercom (~> 19.3.4) + - Intercom (~> 19.4.1) - RCT-Folly - RCT-Folly/Fabric - RCTRequired @@ -2773,8 +2773,8 @@ SPEC CHECKSUMS: fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd glog: 5683914934d5b6e4240e497e0f4a3b42d1854183 hermes-engine: 4f8246b1f6d79f625e0d99472d1f3a71da4d28ca - Intercom: 9d89549ab9742b2acece67baeffbb4b1f932ad3d - intercom-react-native: 54ee5f2ca347e52e197d267e530214cc41941d71 + Intercom: aca703f001cf9470b1f13b72cb8cc969a09bafca + intercom-react-native: 52ae4583a6f3d67826937060d15cbff86beef1d9 MMKV: 7b5df6a8bf785c6705cc490c541b9d8a957c4a64 MMKVCore: 3f40b896e9ab522452df9df3ce983471aa2449ba RCT-Folly: 59ec0ac1f2f39672a0c6e6cecdd39383b764646f diff --git a/intercom-react-native.podspec b/intercom-react-native.podspec index efe0b87a..6b4ce881 100644 --- a/intercom-react-native.podspec +++ b/intercom-react-native.podspec @@ -19,7 +19,7 @@ Pod::Spec.new do |s| s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" } - s.dependency "Intercom", '~> 19.3.4' + s.dependency "Intercom", '~> 19.4.1' is_new_arch_enabled = ENV["RCT_NEW_ARCH_ENABLED"] == "1" folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' diff --git a/package.json b/package.json index d2172b11..e97066f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@intercom/intercom-react-native", - "version": "9.3.4", + "version": "9.4.0", "description": "React Native wrapper to bridge our iOS and Android SDK", "source": "./src/index.tsx", "main": "./lib/commonjs/index.js",