After the compiling success before resolving react-native-reanimated issue

This commit is contained in:
Don Wilfried 2024-12-19 23:24:36 +01:00
parent 2847ae7845
commit 34a06b03b9
4 changed files with 21 additions and 6 deletions

View File

@ -82,6 +82,14 @@ project.ext.react = [
apply from: "../../node_modules/react-native/react.gradle" apply from: "../../node_modules/react-native/react.gradle"
// Force une version antérieure de work-runtime compatible avec compileSdkVersion 30
configurations.all {
resolutionStrategy {
force 'androidx.work:work-runtime:2.6.0'
force 'androidx.core:core:1.6.0'
}
}
/** /**
* Set this to true to create two separate APKs instead of one: * Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices * - An APK that only works on ARM devices

View File

@ -3,8 +3,8 @@ buildscript {
androidXCore = "1.4.0" androidXCore = "1.4.0"
buildToolsVersion = "30.0.2" buildToolsVersion = "30.0.2"
minSdkVersion = 21 minSdkVersion = 21
compileSdkVersion = 34 compileSdkVersion = 30
targetSdkVersion = 34 targetSdkVersion = 30
kotlinVersion = "1.5.31" kotlinVersion = "1.5.31"
ndkVersion = "20.1.5948944" ndkVersion = "20.1.5948944"
supportLibVersion = "28" supportLibVersion = "28"

View File

@ -1,5 +1,11 @@
module.exports = { module.exports = {
presets: [['module:metro-react-native-babel-preset', { presets: [
unstable_disableES6Transforms: true [
}]], 'module:metro-react-native-babel-preset',
{
unstable_disableES6Transforms: true,
},
],
],
plugins: ['react-native-reanimated/plugin'],
}; };

View File

@ -3,7 +3,8 @@
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start", "start": "react-native start",
"android": "react-native run-android",
"test": "jest", "test": "jest",
"postinstall": "node ./fix-android/android-release-fix.js", "postinstall": "node ./fix-android/android-release-fix.js",
"release-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/release/ && cd ./android && gradlew clean && gradlew app:assembleRelease && cd .. && adb install ./android/app/build/outputs/apk/release/app-release.apk", "release-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/release/ && cd ./android && gradlew clean && gradlew app:assembleRelease && cd .. && adb install ./android/app/build/outputs/apk/release/app-release.apk",