Slackbot
05/21/2022, 4:08 PMChris Lee
05/21/2022, 4:10 PMAhmed Khalil Bejaoui
05/21/2022, 4:11 PMChris Lee
05/21/2022, 4:11 PMChris Lee
05/21/2022, 4:16 PMAhmed Khalil Bejaoui
05/21/2022, 4:17 PMAhmed Khalil Bejaoui
05/21/2022, 4:18 PM"android-release": " yes | sdkmanager --licenses && cd android/ && ./gradlew publishRelease --stacktrace",
"android-bundle": "react-native bundle --platform android --dev false --entry-file ./index.js --bundle-output ./android/app/src/main/assets/index.bundle --sourcemap-output ./android/app/src/main/assets/index.map --assets-dest ./android/app/src/main/res/",
"android-pre-release": "npm run android-clean && npm run android-bundle",
Chris Lee
05/21/2022, 5:06 PM>>> property being set: at com.android.build.gradle.[MASKED].api.ApkVariantOutputImpl.setVersionCodeOverride(ApkVariantOutputImpl.java:96)
at com.android.build.gradle.[MASKED].api.ApkVariantOutputImpl_Decorated.setVersionCodeOverride(Unknown Source)
>>> calling code that is setting it: at com.github.triplet.gradle.play.tasks.ProcessArtifactMetadata.process(ProcessArtifactMetadata.kt:33)
Ahmed Khalil Bejaoui
05/21/2022, 9:00 PMapplicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// <https://developer.android.com/studio/build/configure-apk-splits.html>
// Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
Ahmed Khalil Bejaoui
05/22/2022, 6:29 PMChris Lee
05/22/2022, 6:30 PMChris Lee
05/22/2022, 6:31 PMoutput.versionCodeOverride =
is the culprit, may need to call this code sooner.Ahmed Khalil Bejaoui
05/22/2022, 7:29 PMAhmed Khalil Bejaoui
05/23/2022, 9:36 AMAhmed Khalil Bejaoui
05/24/2022, 12:25 PMVampire
05/27/2022, 8:42 AMVampire
05/27/2022, 8:42 AMVampire
05/27/2022, 8:42 AMAhmed Khalil Bejaoui
05/27/2022, 11:42 AMVampire
05/27/2022, 11:58 AMAhmed Khalil Bejaoui
05/27/2022, 12:01 PMdependencies {
classpath("com.android.tools.build:gradle:4.2.0")
// classpath "com.android.tools.build:gradle:3.5.0"
classpath "com.github.triplet.gradle:play-publisher:2.4.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Vampire
05/27/2022, 12:44 PMAhmed Khalil Bejaoui
05/29/2022, 11:44 AMFailed to notify project evaluation listener.
> java.lang.StackOverflowError (no error message)
would be great if we can check it togetherVampire
05/29/2022, 12:30 PM