diff --git a/android/build.gradle b/android/build.gradle index 381bf3f..4fae1c4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -8,7 +8,7 @@ buildscript { } dependencies { - classpath "com.android.tools.build:gradle:8.5.0" + classpath "com.android.tools.build:gradle:8.5.2" // noinspection DifferentKotlinGradleVersion classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } @@ -88,7 +88,7 @@ repositories { def kotlin_version = getExtOrDefault("kotlinVersion") dependencies { - implementation (group: "me.bridgefy", name: "android-sdk", version: "1.2.0", ext: "aar") { + implementation (group: "me.bridgefy", name: "android-sdk", version: "1.2.2", ext: "aar") { transitive = true } // For < 0.71, this will be from the local maven repo diff --git a/android/gradle.properties b/android/gradle.properties index 2048cf8..09ac443 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,5 +1,5 @@ -BridgefyReactNative_kotlinVersion=1.9.23 +BridgefyReactNative_kotlinVersion=2.0.20 BridgefyReactNative_minSdkVersion=21 -BridgefyReactNative_targetSdkVersion=34 -BridgefyReactNative_compileSdkVersion=34 -BridgefyReactNative_ndkversion=21.4.7075529 +BridgefyReactNative_targetSdkVersion=35 +BridgefyReactNative_compileSdkVersion=35 +BridgefyReactNative_ndkversion=28.0.12916984 diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 48c0a02..d6e308a 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 56dd5f2..9d91337 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -4,6 +4,8 @@ + + diff --git a/android/src/main/java/me/bridgefy/plugin/react_native/BridgefyReactNativeModule.kt b/android/src/main/java/me/bridgefy/plugin/react_native/BridgefyReactNativeModule.kt index f6ef012..b8cb1b2 100644 --- a/android/src/main/java/me/bridgefy/plugin/react_native/BridgefyReactNativeModule.kt +++ b/android/src/main/java/me/bridgefy/plugin/react_native/BridgefyReactNativeModule.kt @@ -12,7 +12,7 @@ import com.facebook.react.bridge.WritableMap import com.facebook.react.modules.core.DeviceEventManagerModule import java.util.UUID import me.bridgefy.Bridgefy -import me.bridgefy.logger.enum.LogType +import me.bridgefy.logger.enums.LogType import me.bridgefy.commons.TransmissionMode import me.bridgefy.commons.exception.BridgefyException import me.bridgefy.commons.listener.BridgefyDelegate diff --git a/example/App.tsx b/example/App.tsx index 75dfa2e..d7f9f86 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -1,9 +1,9 @@ // import 'react-native-gesture-handler'; import {PaperProvider} from 'react-native-paper'; import {NavigationContainer} from '@react-navigation/native'; -import IonIcon from 'react-native-vector-icons/Ionicons'; - import {HomeScreen} from './src/presentation/screens'; +const IonIcon = require('react-native-vector-icons/IonIcons') + .default as React.ElementType; export const App = () => { return ( diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 6a69c10..faeef92 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -122,7 +122,7 @@ dependencies { // The version of react-native is set by the React Native Gradle Plugin implementation("com.facebook.react:react-android") - coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4") + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4") if (hermesEnabled.toBoolean()) { implementation("com.facebook.react:hermes-android") } else { diff --git a/example/android/build.gradle b/example/android/build.gradle index 320162b..1649dfd 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,18 +1,18 @@ buildscript { ext { - buildToolsVersion = "34.0.0" + buildToolsVersion = "35.0.0" minSdkVersion = 24 - compileSdkVersion = 34 - targetSdkVersion = 34 - ndkVersion = "26.1.10909125" - kotlinVersion = "1.9.23" + compileSdkVersion = 35 + targetSdkVersion = 35 + ndkVersion = "28.0.12916984" + kotlinVersion = "2.0.20" } repositories { google() mavenCentral() } dependencies { - classpath("com.android.tools.build:gradle:8.5.0") + classpath("com.android.tools.build:gradle:8.5.2") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") } diff --git a/example/src/presentation/components/IonIcon.tsx b/example/src/presentation/components/IonIcon.tsx index c132347..5bfcf70 100644 --- a/example/src/presentation/components/IonIcon.tsx +++ b/example/src/presentation/components/IonIcon.tsx @@ -1,5 +1,6 @@ -import Icon from 'react-native-vector-icons/Ionicons'; import {globalColors} from '../theme/global.styles'; +const Icon = require('react-native-vector-icons/IonIcons') + .default as React.ElementType; interface Props { name: string; diff --git a/package.json b/package.json index a2ff859..280b675 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bridgefy-react-native", - "version": "1.1.6", + "version": "1.1.7", "description": "Bridgefy React Native SDK", "main": "lib/commonjs/index", "module": "lib/module/index", @@ -69,9 +69,10 @@ "jest": "^28.1.1", "pod-install": "^0.1.0", "prettier": "^2.8.8", - "react": "18.2.0", - "react-native": "0.72.1", + "react": "18.3.1", + "react-native": "0.76.6", "react-native-builder-bob": "^0.21.0", + "metro-react-native-babel-preset": "^0.76.9", "release-it": "^15.0.0", "typescript": "^5.0.2" },