Changeset View
Changeset View
Standalone View
Standalone View
native/android/app/build.gradle
Show First 20 Lines • Show All 395 Lines • ▼ Show 20 Lines | def isCleanRunning() { | ||||
gradle.startParameter.taskRequests.any { | gradle.startParameter.taskRequests.any { | ||||
!it.args.isEmpty() && it.args.first().startsWith('clean') | !it.args.isEmpty() && it.args.first().startsWith('clean') | ||||
} | } | ||||
} | } | ||||
// Release keystore via macOS Keychain Access | // Release keystore via macOS Keychain Access | ||||
def getPassword(String keyLabel) { | def getPassword(String keyLabel) { | ||||
if (System.getenv('ANDROID_SIGNING_PASSWORD')) { | if (System.getenv('ANDROID_SIGNING_PASSWORD')) { | ||||
return System.getenv('ANDROID_SIGNING_PASSWORD') | return System.getenv('ANDROID_SIGNING_PASSWORD') | ||||
atul: Hm, is this just removing a space character? Confused why Phabricator is highlighting the line… | |||||
jonAuthorUnsubmitted Done Inline ActionsI believe that's how it's represented in git. jon: I believe that's how it's represented in git. | |||||
} | } | ||||
def stdout = new ByteArrayOutputStream() | def stdout = new ByteArrayOutputStream() | ||||
exec { | exec { | ||||
commandLine 'security', | commandLine 'security', | ||||
'find-generic-password', | 'find-generic-password', | ||||
'-wl', keyLabel, | '-wl', keyLabel, | ||||
'-a', System.properties['user.name'] | '-a', System.properties['user.name'] | ||||
standardOutput = stdout | standardOutput = stdout | ||||
ignoreExitValue true | ignoreExitValue true | ||||
} | } | ||||
return stdout.toString().strip() | return stdout.toString().strip() | ||||
} | } | ||||
// Returns all ABIs architectures for the 'bundleRelease' | // Returns all ABIs architectures for the 'bundleRelease' | ||||
// or only from 'adb devices' if running debug release. | // or only from 'adb devices' if running debug release. | ||||
def getBuildTypeABIs(nativeArchitectures) { | def getBuildTypeABIs(nativeArchitectures) { | ||||
if (System.getenv("BUILDKITE") == "true") { | if (System.getenv("BUILDKITE") == "true") { | ||||
return ["arm64-v8a"] | return ["arm64-v8a"] | ||||
} | } | ||||
def isBundleRelease = gradle.startParameter.taskRequests.any { | def isBundleRelease = gradle.startParameter.taskRequests.any { | ||||
!it.args.isEmpty() && it.args.first().contains("bundleRelease") | !it.args.isEmpty() && it.args.first().contains("bundleRelease") | ||||
} | } | ||||
if (isBundleRelease) { | if (isBundleRelease) { | ||||
// All of the supported ABIs | // All of the supported ABIs | ||||
// https://developer.android.com/ndk/guides/abis.html#sa | // https://developer.android.com/ndk/guides/abis.html#sa | ||||
final allAbis = ["armeabi-v7a", "x86", "arm64-v8a", "x86_64"] | final allAbis = ["armeabi-v7a", "x86", "arm64-v8a", "x86_64"] | ||||
▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | defaultConfig { | ||||
externalNativeBuild { | externalNativeBuild { | ||||
cmake { | cmake { | ||||
arguments "-DANDROID_STL=c++_shared", | arguments "-DANDROID_STL=c++_shared", | ||||
"-DGLOG_VERSION=" + GLOG_VERSION, | "-DGLOG_VERSION=" + GLOG_VERSION, | ||||
"-DOPENSSL_VERSION=" + OPENSSL_VERSION, | "-DOPENSSL_VERSION=" + OPENSSL_VERSION, | ||||
"-DNDK_VERSION=" + rootProject.ext.ndkVersion, | "-DNDK_VERSION=" + rootProject.ext.ndkVersion, | ||||
"-DREACT_NATIVE_SO_DIR=${REACT_NATIVE_SO_DIR}", | "-DREACT_NATIVE_SO_DIR=${REACT_NATIVE_SO_DIR}", | ||||
"-DBOOST_VERSION=${BOOST_VERSION}" | "-DBOOST_VERSION=${BOOST_VERSION}" | ||||
targets "comm_jni_module", "turbomodulejsijni" | targets "comm_jni_module", "turbomodulejsijni", "comm-tools" | ||||
} | } | ||||
} | } | ||||
} | } | ||||
externalNativeBuild { | externalNativeBuild { | ||||
cmake { | cmake { | ||||
path "CMakeLists.txt" | path "CMakeLists.txt" | ||||
version "3.18.1" | version "3.18.1" | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |
Hm, is this just removing a space character? Confused why Phabricator is highlighting the line in yellow and saying:
"Moved from line 404"