Skip to content

Instantly share code, notes, and snippets.

@dengue8830
Created May 19, 2019 22:44
Show Gist options
  • Save dengue8830/9387681c4783089ae0f23d4d138284ba to your computer and use it in GitHub Desktop.
Save dengue8830/9387681c4783089ae0f23d4d138284ba to your computer and use it in GitHub Desktop.
Upgrade rn 57 -> 59
#upgrade #rn #59
para pasar de la 57 a la 59
1) setear la version en package.json a la ultima de react y react native
2) rm -rf node_modules/
3) rm package-lock.json
ios
4) rm -rf ios/Pods
5) rm ios/Podfile.lock
fin ios
android
6) setear
com.android.tools.build:gradle:3.3.0
gradleVersion = '4.10.1'
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
}
}
}
}
// Es bueno declarar aqui las versiones para que TODAS las libs usen esas versiones y evitar
// problemas de versiones diferentes. No tienen que ser necesariamente estas versiones podes cambiarlas.
// fuente: https://github.com/mauron85/react-native-background-geolocation
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10.1'
distributionUrl = distributionUrl.replace("bin", "all")
}
fin android
7) build, release, ver que no falle nada
8) fixear el problema de tamaño de apk duplicado. Split el apk o usar app bundle
https://github.com/facebook/react-native/issues/23575#issuecomment-469402831
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment