-
Notifications
You must be signed in to change notification settings - Fork 120
chore: Upgrade react-native to latest version #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
] | ||
|
||
apply from: "../../../node_modules/react-native/react.gradle" | ||
apply from: "../../node_modules/react-native/react.gradle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path is incorrect. The repo is set up in a way that in the root is a library with all required dependencies. In Example directory, there is an example app that is supposed to use the library, react-native, and all other dependencies from the root and not from its own node_modules.
This needs to be reverted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Trancever @dratwas said he's fine with creation of 2 separated package.json and simplify this path's.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it's worth to mention that some of our packages have separate example package.json like paper
, viewpager
, fbads
example/android/app/build.gradle
Outdated
minifyEnabled enableProguardInReleaseBuilds | ||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" | ||
// Detox-specific additions to pro-guard | ||
proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure it points to the correct node_modules
@@ -161,3 +222,5 @@ task copyDownloadableDepsToLibs(type: Copy) { | |||
from configurations.compile | |||
into 'libs' | |||
} | |||
|
|||
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) | |
apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
rootProject.name = 'ImageEditorExample' | ||
|
||
rootProject.name = 'ReactNativeImageEditorExample' | ||
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure this path points to node_modules in the root.
example/package.json
Outdated
"test:android:build:debug": "detox build -c android.emu.debug", | ||
"test:android:build:release": "detox build -c android.emu.release", | ||
"test:android:bundle:release": "mkdir -p .tmp && react-native bundle --max-workers 4 --platform android --dev false --entry-file index.js --bundle-output .tmp/android-bundle.js", | ||
"test:ios:test:debug": "detox test -c ios.sim.debug", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this file. Example app should use same dependencies as library. Check my first comment for more information
d25952c
to
7ec2d12
Compare
Thanks for PR |
No description provided.