Skip to content

Commit 50f7778

Browse files
Merge pull request #18 from rn-bridge/v1.0.4
React native upgrade 0.81.4
2 parents cad67f1 + a405ad0 commit 50f7778

File tree

8 files changed

+1130
-423
lines changed

8 files changed

+1130
-423
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ dependencies {
9797
// For < 0.71, this will be from the local maven repo
9898
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
9999
//noinspection GradleDynamicVersion
100-
implementation "com.facebook.react:react-native:+"
100+
implementation "com.facebook.react:react-android:0.81.0"
101101
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
102102
}
103103

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.14.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

android/src/oldarch/com/rnbridge/shortcuts/RNShortcutsModule.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class RNShortcutsModule(reactContext: ReactApplicationContext) :
3333

3434
@ReactMethod
3535
fun getInitialShortcutId(promise: Promise) {
36-
val shortCutId = currentActivity?.intent?.getStringExtra("shortcutId")
36+
val shortCutId = context.currentActivity?.intent?.getStringExtra("shortcutId")
3737
promise.resolve(shortCutId)
3838
}
3939

@@ -108,7 +108,7 @@ class RNShortcutsModule(reactContext: ReactApplicationContext) :
108108
val longLabel = params.getString("longLabel")
109109
val iconName = params.getString("iconName")
110110

111-
val intent = Intent(context, currentActivity?.javaClass).apply {
111+
val intent = Intent(context, context.currentActivity?.javaClass).apply {
112112
putExtra("shortcutId", id)
113113
action = Intent.ACTION_VIEW
114114
}
@@ -158,10 +158,10 @@ class RNShortcutsModule(reactContext: ReactApplicationContext) :
158158
.emit("onShortcutUsed", id)
159159
}
160160

161-
override fun onActivityResult(a: Activity?, b: Int, c: Int, d: Intent?) {}
161+
override fun onActivityResult(activity: Activity, requestCode: Int, resultCode: Int, data: Intent?) {}
162162

163-
override fun onNewIntent(intent: Intent?) {
164-
val shortCutId = intent?.getStringExtra("shortcutId")
163+
override fun onNewIntent(intent: Intent) {
164+
val shortCutId = intent.getStringExtra("shortcutId")
165165
if (shortCutId != null) {
166166
sendEvent(shortCutId)
167167
}

example/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "35.0.0"
3+
buildToolsVersion = "36.0.0"
44
minSdkVersion = 24
5-
compileSdkVersion = 35
6-
targetSdkVersion = 35
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
77
ndkVersion = "27.1.12297006"
88
kotlinVersion = "2.1.20"
99
}

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.14.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

example/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
"pod-install": "cd ios && bundle install && bundle exec pod install && cd .."
1212
},
1313
"dependencies": {
14-
"@react-native/new-app-screen": "0.80.1",
14+
"@react-native/new-app-screen": "0.81.4",
1515
"react": "19.1.0",
16-
"react-native": "0.80.1"
16+
"react-native": "0.81.4"
1717
},
1818
"devDependencies": {
1919
"@babel/core": "^7.28.0",
2020
"@babel/preset-env": "^7.28.0",
2121
"@babel/runtime": "^7.27.6",
2222
"@react-native-community/cli": "19.0.0",
23-
"@react-native-community/cli-platform-android": "19.0.0",
24-
"@react-native-community/cli-platform-ios": "19.0.0",
25-
"@react-native/babel-preset": "^0.80.1",
26-
"@react-native/metro-config": "^0.80.1",
27-
"@react-native/typescript-config": "^0.80.1",
23+
"@react-native-community/cli-platform-android": "20.0.0",
24+
"@react-native-community/cli-platform-ios": "20.0.0",
25+
"@react-native/babel-preset": "^0.81.4",
26+
"@react-native/metro-config": "^0.81.4",
27+
"@react-native/typescript-config": "^0.81.4",
2828
"react-native-builder-bob": "^0.40.12"
2929
},
3030
"engines": {

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@rn-bridge/react-native-shortcuts",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
4+
"private": true,
45
"description": "React native library for android shortcuts and iOS quick actions which allow users to quickly access specific app functionalities directly from the home screen or app icon.",
56
"source": "./src/index.tsx",
67
"main": "./lib/commonjs/index.js",
@@ -54,19 +55,19 @@
5455
"registry": "https://registry.npmjs.org/"
5556
},
5657
"devDependencies": {
57-
"@react-native/eslint-config": "^0.80.1",
58+
"@react-native/eslint-config": "^0.81.1",
5859
"@types/jest": "^30.0.0",
59-
"@types/react": "^19.1.8",
60-
"eslint": "^9.30.1",
61-
"eslint-config-prettier": "^10.1.5",
62-
"eslint-plugin-prettier": "^5.5.1",
63-
"jest": "^30.0.4",
60+
"@types/react": "^19.1.13",
61+
"eslint": "^9.35.0",
62+
"eslint-config-prettier": "^10.1.8",
63+
"eslint-plugin-prettier": "^5.5.4",
64+
"jest": "^30.1.3",
6465
"prettier": "^3.6.2",
6566
"react": "19.1.0",
6667
"react-native": "0.80.1",
67-
"react-native-builder-bob": "^0.40.12",
68-
"turbo": "^2.5.4",
69-
"typescript": "^5.8.3"
68+
"react-native-builder-bob": "^0.40.13",
69+
"turbo": "^2.5.6",
70+
"typescript": "^5.9.2"
7071
},
7172
"peerDependencies": {
7273
"react": "*",

0 commit comments

Comments
 (0)