2021-09-14 14:02:06 -07:00
|
|
|
# Speed up builds. Keep these flags here for quick debugging of issues.
|
2022-02-04 04:11:38 -08:00
|
|
|
org.gradle.caching=true
|
2022-07-18 07:44:58 -07:00
|
|
|
org.gradle.configureondemand=false
|
2023-07-04 04:28:03 -07:00
|
|
|
# We use increased amount of heap size here to bypass the OOM exception while building the project with ./gradlew
|
2023-11-23 01:00:13 -08:00
|
|
|
# build as described in https://github.com/Electric-Coin-Company/kotlin-bip39/issues/201
|
2023-07-04 04:28:03 -07:00
|
|
|
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2g
|
2022-07-18 07:44:58 -07:00
|
|
|
org.gradle.parallel=true
|
|
|
|
org.gradle.vfs.watch=true
|
2021-09-14 14:02:06 -07:00
|
|
|
|
2021-10-19 05:02:15 -07:00
|
|
|
kotlin.mpp.stability.nowarn=true
|
|
|
|
|
2021-09-14 14:02:06 -07:00
|
|
|
android.builder.sdkDownload=true
|
2022-06-21 04:49:09 -07:00
|
|
|
android.nonTransitiveRClass=true
|
|
|
|
android.useAndroidX=true
|
2021-09-14 14:02:06 -07:00
|
|
|
|
2023-12-08 04:13:23 -08:00
|
|
|
# Enable Kotlin metadata version check for script compilation
|
|
|
|
org.gradle.kotlin.dsl.skipMetadataVersionCheck=false
|
|
|
|
|
2021-09-22 09:37:15 -07:00
|
|
|
# Kotlin compiler warnings can be considered errors, failing the build.
|
2022-01-04 05:41:05 -08:00
|
|
|
ZCASH_IS_TREAT_WARNINGS_AS_ERRORS=true
|
2021-09-22 09:37:15 -07:00
|
|
|
|
2022-06-02 10:00:32 -07:00
|
|
|
# Optionally configure coverage for Kotlin modules (e.g. with Kover)
|
|
|
|
IS_KOTLIN_TEST_COVERAGE_ENABLED=true
|
|
|
|
|
|
|
|
# Optionally configure Android instumentation test coverage.
|
2021-10-19 05:02:15 -07:00
|
|
|
# The app module will crash at launch when coverage is enabled, so coverage is only enabled explicitly for tests.
|
2023-01-17 11:54:40 -08:00
|
|
|
# generation of instrumentation coverage is flaky, particularly when running ui-lib:connectedCheck
|
|
|
|
# TODO: [#705] Instrumentation coverage generation fails when run locally
|
2023-11-23 01:00:13 -08:00
|
|
|
# TODO: [#705] https://github.com/Electric-Coin-Company/zashi-android/issues/705
|
2022-06-02 10:00:32 -07:00
|
|
|
IS_ANDROID_INSTRUMENTATION_TEST_COVERAGE_ENABLED=false
|
2021-09-14 14:02:06 -07:00
|
|
|
|
|
|
|
# Optionally configure test orchestrator.
|
|
|
|
# It is disabled by default, because it causes tests to take about 2x longer to run.
|
2021-12-09 12:21:30 -08:00
|
|
|
IS_USE_TEST_ORCHESTRATOR=false
|
2021-09-14 14:02:06 -07:00
|
|
|
|
2022-08-09 09:39:48 -07:00
|
|
|
# Optionally enable crashes for strict mode violations in debug builds.
|
|
|
|
# It is disabled by default, because it can be annoying when debugging. Gets turned on by CI jobs that need it.
|
|
|
|
IS_CRASH_ON_STRICT_MODE_VIOLATION=false
|
|
|
|
|
2023-02-20 08:22:33 -08:00
|
|
|
IS_ENABLE_COMPOSE_COMPILER_METRICS=true
|
|
|
|
IS_ENABLE_COMPOSE_COMPILER_REPORTS=true
|
|
|
|
|
2022-05-24 06:39:56 -07:00
|
|
|
# Either provide a path to a Firebase Test Lab service key (best for CI)
|
|
|
|
# OR
|
|
|
|
# login with `./gradlew flankAuth` and provide the project name (best for local development)
|
2022-01-26 12:13:19 -08:00
|
|
|
ZCASH_FIREBASE_TEST_LAB_API_KEY_PATH=
|
2022-05-24 06:39:56 -07:00
|
|
|
ZCASH_FIREBASE_TEST_LAB_PROJECT=
|
2022-01-26 12:13:19 -08:00
|
|
|
|
2021-09-14 14:02:06 -07:00
|
|
|
# Optionally disable minification
|
|
|
|
IS_MINIFY_ENABLED=true
|
|
|
|
|
2024-04-22 23:38:36 -07:00
|
|
|
# Optionally change the NDK debug symbols generation level
|
|
|
|
# Supported values are:
|
|
|
|
# - none (default, no native debug metadata will be packaged)
|
|
|
|
# - symbol_table (only the symbol tables will be packaged)
|
|
|
|
# - full (the debug info and symbol tables will be packaged)
|
|
|
|
# The result will be placed in app/build/outputs/native-debug-symbols/variant-name/native-debug-symbols.zip
|
|
|
|
NDK_DEBUG_SYMBOL_LEVEL=symbol_table
|
|
|
|
|
2021-12-02 12:18:17 -08:00
|
|
|
# If ZCASH_GOOGLE_PLAY_SERVICE_KEY_FILE_PATH is set and the deployment task is triggered, then
|
2023-11-13 02:50:57 -08:00
|
|
|
# VERSION_CODE is effectively ignored. VERSION_NAME is suffixed with the version code.
|
2021-12-02 12:18:17 -08:00
|
|
|
# If not using automated Google Play deployment, then these serve as the actual version numbers.
|
|
|
|
ZCASH_VERSION_CODE=1
|
2024-09-13 05:04:39 -07:00
|
|
|
ZCASH_VERSION_NAME=1.2
|
2021-12-02 12:18:17 -08:00
|
|
|
|
2022-06-29 13:47:32 -07:00
|
|
|
# Set these fields, as you need them (e.g. with values "Zcash X" and "co.electriccoin.zcash.x")
|
|
|
|
# to distinguish a different release build that can be installed alongside the official version
|
2023-02-21 05:41:08 -08:00
|
|
|
# available on Google Play. This is useful for testing, or for a forked version of the app.
|
2023-08-03 02:46:55 -07:00
|
|
|
ZCASH_RELEASE_APP_NAME=Zashi
|
2022-06-29 13:47:32 -07:00
|
|
|
ZCASH_RELEASE_PACKAGE_NAME=co.electriccoin.zcash
|
2023-02-21 05:41:08 -08:00
|
|
|
ZCASH_DEBUG_APP_NAME_SUFFIX=" (D)"
|
2023-08-04 06:34:58 -07:00
|
|
|
ZCASH_SUPPORT_EMAIL_ADDRESS=support@electriccoin.co
|
2022-06-29 13:47:32 -07:00
|
|
|
|
2024-07-18 01:48:02 -07:00
|
|
|
# In-app update priority of the release. It can take values in the range [0, 5], with 5 being the highest priority.
|
|
|
|
# Defaults to 0. We treat all the values the same, except 5, which is evaluated as [Priority.HIGH],
|
|
|
|
# the update is then critical, and thus presented to users immediately once the update is available for them regardless
|
|
|
|
# of the [AppUpdateChecker.stalenessDays].
|
|
|
|
# For more details about in-app update mechanisms, see https://developer.android.com/guide/playcore/in-app-updates
|
|
|
|
ZCASH_IN_APP_UPDATE_PRIORITY=0
|
|
|
|
|
2023-10-17 07:01:53 -07:00
|
|
|
# Recommended protection of screens with sensitive data.
|
|
|
|
# It is enabled by default to protect the developers from revealing their wallet secrets by mistake.
|
|
|
|
IS_SECURE_SCREEN_PROTECTION_ACTIVE=true
|
2023-11-08 01:47:31 -08:00
|
|
|
# Set whether the screen rotation is enabled or the screen orientation is locked in the portrait mode.
|
|
|
|
IS_SCREEN_ROTATION_ENABLED=false
|
2023-10-19 06:00:47 -07:00
|
|
|
|
2024-09-12 09:10:54 -07:00
|
|
|
# Set the Coinbase app project ID to test the Coinbase Onramp integrations locally. Keep it empty as our CI actions
|
|
|
|
# set it up.
|
|
|
|
ZCASH_COINBASE_APP_ID=
|
|
|
|
|
2021-09-14 14:02:06 -07:00
|
|
|
# Set keystore details to enable build signing. Typically these
|
|
|
|
# are overridden via ~/.gradle/gradle.properties to allow secure injection.
|
|
|
|
# Debug keystore is useful if using Google Maps or Firebase, which require API keys to be linked
|
|
|
|
# to a signing key. Without a debug keystore, the default Android debug keystore will be used.
|
|
|
|
# Without a release signing configuration, the release output will not be signed.
|
|
|
|
ZCASH_DEBUG_KEYSTORE_PATH=
|
|
|
|
ZCASH_RELEASE_KEYSTORE_PATH=
|
|
|
|
ZCASH_RELEASE_KEYSTORE_PASSWORD=
|
|
|
|
ZCASH_RELEASE_KEY_ALIAS=
|
|
|
|
ZCASH_RELEASE_KEY_ALIAS_PASSWORD=
|
|
|
|
|
2022-10-27 03:51:24 -07:00
|
|
|
# Switch this property to true only if you need to sign the release build with a debug key. It can
|
|
|
|
# be useful, for example, for running benchmark tests against a release build of the app signed with
|
|
|
|
# the default debug key configuration.
|
|
|
|
IS_SIGN_RELEASE_BUILD_WITH_DEBUG_KEY=false
|
2023-11-13 05:53:16 -08:00
|
|
|
# Switch this property to true only if you need the release build to be debuggable. It can be helpful, for example,
|
|
|
|
# for logging or debugging minified release app build.
|
|
|
|
IS_RELEASE_BUILD_DEBUGGABLE=false
|
2022-10-27 03:51:24 -07:00
|
|
|
|
2023-11-13 02:50:57 -08:00
|
|
|
# Set the Google Play Service Account email address to enable deployment
|
|
|
|
# Note that this property is not currently used due to #1033
|
|
|
|
# TODO [#1033]: Use token-based authorization on Google Play for automated deployment
|
2023-11-23 01:00:13 -08:00
|
|
|
# TODO [#1033]: https://github.com/Electric-Coin-Company/zashi-android/issues/1033
|
2023-11-13 02:50:57 -08:00
|
|
|
ZCASH_GOOGLE_PLAY_SERVICE_ACCOUNT=
|
|
|
|
# Also, set the Google Play Service Key path to enable deployment. It's a path to the private key file (only used for
|
|
|
|
# Service Account auth).
|
|
|
|
# Note that this property is not currently used due to #1033
|
|
|
|
# TODO [#1033]: Use token-based authorization on Google Play for automated deployment
|
2023-11-23 01:00:13 -08:00
|
|
|
# TODO [#1033]: https://github.com/Electric-Coin-Company/zashi-android/issues/1033
|
2021-12-02 12:18:17 -08:00
|
|
|
ZCASH_GOOGLE_PLAY_SERVICE_KEY_FILE_PATH=
|
2023-11-13 02:50:57 -08:00
|
|
|
# Set the Google Play Service Account key to authorize on Google Play
|
|
|
|
ZCASH_GOOGLE_PLAY_SERVICE_ACCOUNT_KEY=
|
|
|
|
# Set the Google Play Publisher API key to authorize the publisher on Google Play API
|
|
|
|
ZCASH_GOOGLE_PLAY_PUBLISHER_API_KEY=
|
|
|
|
# Can be one of {internal, alpha}. There are more of them {beta, production}, which are not supported for security
|
|
|
|
# reasons. Internal will deploy into the Internal and Alpha into the Closed testing tracks on Google Play.
|
|
|
|
ZCASH_GOOGLE_PLAY_DEPLOY_TRACK=internal
|
|
|
|
# Can be one of {draft, completed}.
|
|
|
|
# Draft can be used to generate a version number for the next release, but does not ultimately create a release on
|
|
|
|
# Google Play. Completed commits the build on Google Play, creating a new release.
|
|
|
|
ZCASH_GOOGLE_PLAY_DEPLOY_STATUS=draft
|
2021-12-02 12:18:17 -08:00
|
|
|
|
2022-05-17 07:06:56 -07:00
|
|
|
ZCASH_EMULATOR_WTF_API_KEY=
|
|
|
|
|
2022-06-06 06:07:29 -07:00
|
|
|
# Optional absolute path to a Zcash SDK checkout.
|
|
|
|
# When blank, it pulls the SDK from Maven.
|
|
|
|
# When set, it uses the path for a Gradle included build. Path can either be absolute or relative to the root of this app's Gradle project.
|
|
|
|
SDK_INCLUDED_BUILD_PATH=
|
2022-01-04 05:41:05 -08:00
|
|
|
|
2022-06-13 11:14:14 -07:00
|
|
|
# When blank, it pulls the BIP-39 library from Maven.
|
|
|
|
# When set, it uses the path for a Gradle included build. Path can either be absolute or relative to the root of this app's Gradle project.
|
|
|
|
BIP_39_INCLUDED_BUILD_PATH=
|
|
|
|
|
2021-09-14 14:02:06 -07:00
|
|
|
# Versions
|
2024-09-04 04:29:41 -07:00
|
|
|
ANDROID_MIN_SDK_VERSION=27
|
2024-09-12 22:34:20 -07:00
|
|
|
ANDROID_TARGET_SDK_VERSION=35
|
|
|
|
ANDROID_COMPILE_SDK_VERSION=35
|
2021-09-14 14:02:06 -07:00
|
|
|
|
2024-09-12 22:34:20 -07:00
|
|
|
ANDROID_NDK_VERSION=27.0.12077973
|
2021-09-14 14:02:06 -07:00
|
|
|
|
2024-06-27 23:56:36 -07:00
|
|
|
ANDROID_GRADLE_PLUGIN_VERSION=8.5.0
|
2024-04-15 08:46:49 -07:00
|
|
|
DETEKT_VERSION=1.23.6
|
|
|
|
DETEKT_COMPOSE_RULES_VERSION=0.3.15
|
|
|
|
EMULATOR_WTF_GRADLE_PLUGIN_VERSION=0.16.2
|
|
|
|
FIREBASE_CRASHLYTICS_BUILD_TOOLS_VERSION=2.9.9
|
2023-12-11 01:19:07 -08:00
|
|
|
FLANK_VERSION=23.10.1
|
2022-05-31 11:52:49 -07:00
|
|
|
FULLADLE_VERSION=0.17.4
|
2024-04-15 08:46:49 -07:00
|
|
|
GOOGLE_PLAY_SERVICES_GRADLE_PLUGIN_VERSION=4.4.1
|
|
|
|
GRADLE_VERSIONS_PLUGIN_VERSION=0.51.0
|
2023-03-08 04:16:41 -08:00
|
|
|
JGIT_VERSION=6.4.0.202211300538-r
|
2024-04-15 08:46:49 -07:00
|
|
|
KTLINT_VERSION=1.2.1
|
2024-09-04 06:36:59 -07:00
|
|
|
KOIN_VERSION=3.5.6
|
2021-09-14 14:02:06 -07:00
|
|
|
|
2024-04-15 08:46:49 -07:00
|
|
|
ACCOMPANIST_PERMISSIONS_VERSION=0.34.0
|
|
|
|
ANDROIDX_ACTIVITY_VERSION=1.8.2
|
|
|
|
ANDROIDX_ANNOTATION_VERSION=1.7.1
|
2024-05-22 06:59:38 -07:00
|
|
|
ANDROIDX_BIOMETRIC_VERSION=1.2.0-alpha05
|
2024-04-15 08:46:49 -07:00
|
|
|
ANDROIDX_CAMERA_VERSION=1.3.2
|
|
|
|
ANDROIDX_COMPOSE_COMPILER_VERSION=1.5.11
|
|
|
|
ANDROIDX_COMPOSE_MATERIAL3_VERSION=1.2.1
|
|
|
|
ANDROIDX_COMPOSE_MATERIAL_ICONS_VERSION=1.6.5
|
2024-05-07 07:57:45 -07:00
|
|
|
ANDROIDX_COMPOSE_VERSION=1.6.6
|
2022-06-29 13:26:40 -07:00
|
|
|
ANDROIDX_CONSTRAINTLAYOUT_VERSION=1.0.1
|
2024-04-15 08:46:49 -07:00
|
|
|
ANDROIDX_CORE_VERSION=1.12.0
|
2023-01-17 11:13:46 -08:00
|
|
|
ANDROIDX_ESPRESSO_VERSION=3.5.1
|
2024-04-15 08:46:49 -07:00
|
|
|
ANDROIDX_LIFECYCLE_VERSION=2.7.0
|
2024-07-22 06:24:14 -07:00
|
|
|
ANDROIDX_FRAGMENT_VERSION=1.8.1
|
2024-03-21 01:57:36 -07:00
|
|
|
ANDROIDX_NAVIGATION_COMPOSE_VERSION=2.7.7
|
2023-03-22 12:05:19 -07:00
|
|
|
ANDROIDX_PROFILE_INSTALLER_VERSION=1.3.1
|
|
|
|
ANDROIDX_SECURITY_CRYPTO_VERSION=1.1.0-alpha06
|
|
|
|
ANDROIDX_SPLASH_SCREEN_VERSION=1.0.1
|
2023-01-17 11:13:46 -08:00
|
|
|
ANDROIDX_TEST_JUNIT_VERSION=1.1.5
|
2022-11-10 07:53:51 -08:00
|
|
|
ANDROIDX_TEST_ORCHESTRATOR_VERSION=1.4.2
|
|
|
|
ANDROIDX_TEST_CORE_VERSION=1.5.0
|
2024-04-15 08:46:49 -07:00
|
|
|
ANDROIDX_TEST_MACROBENCHMARK_VERSION=1.2.3
|
2023-01-17 11:13:46 -08:00
|
|
|
ANDROIDX_TEST_RUNNER_VERSION=1.5.2
|
2022-11-22 23:17:06 -08:00
|
|
|
ANDROIDX_STARTUP_VERSION=1.1.1
|
2023-01-17 11:54:40 -08:00
|
|
|
ANDROIDX_TEST_SERVICE_VERSION=1.4.2
|
2024-04-15 08:46:49 -07:00
|
|
|
ANDROIDX_UI_AUTOMATOR_VERSION=2.3.0
|
2023-12-09 05:05:26 -08:00
|
|
|
ANDROIDX_WORK_MANAGER_VERSION=2.9.0
|
2024-09-12 09:10:54 -07:00
|
|
|
ANDROIDX_BROWSER_VERSION=1.8.0
|
2023-12-11 01:19:07 -08:00
|
|
|
CORE_LIBRARY_DESUGARING_VERSION=2.0.4
|
2024-09-12 22:34:20 -07:00
|
|
|
FIREBASE_BOM_VERSION_MATCHER=33.1.1
|
2023-11-13 02:50:57 -08:00
|
|
|
GOOGLE_AUTH_LIB_JAVA_VERSION=1.18.0
|
2024-04-15 08:46:49 -07:00
|
|
|
JACOCO_VERSION=0.8.12
|
|
|
|
KOTLIN_VERSION=1.9.23
|
|
|
|
KOTLINX_COROUTINES_VERSION=1.8.0
|
2023-12-08 04:56:37 -08:00
|
|
|
KOTLINX_DATETIME_VERSION=0.5.0
|
2024-04-15 08:46:49 -07:00
|
|
|
KOTLINX_IMMUTABLE_COLLECTIONS_VERSION=0.3.7
|
2024-02-27 01:13:44 -08:00
|
|
|
KOTLINX_SERIALIZABLE_JSON_VERSION=1.6.3
|
2023-09-22 05:30:29 -07:00
|
|
|
KOVER_VERSION=0.7.3
|
2024-08-22 22:58:27 -07:00
|
|
|
LOTTIE_VERSION=6.5.0
|
2024-07-22 05:38:19 -07:00
|
|
|
MARKDOWN_VERSION=0.7.3
|
2023-12-11 01:19:07 -08:00
|
|
|
PLAY_APP_UPDATE_VERSION=2.1.0
|
|
|
|
PLAY_APP_UPDATE_KTX_VERSION=2.1.0
|
2023-11-13 02:50:57 -08:00
|
|
|
PLAY_PUBLISHER_API_VERSION=v3-rev20231030-2.0.0
|
2021-11-12 04:09:30 -08:00
|
|
|
ZCASH_ANDROID_WALLET_PLUGINS_VERSION=1.0.0
|
2024-04-15 08:46:49 -07:00
|
|
|
ZXING_VERSION=3.5.3
|
2021-09-14 14:02:06 -07:00
|
|
|
|
2024-04-15 08:46:49 -07:00
|
|
|
ZCASH_BIP39_VERSION=1.0.8
|
|
|
|
|
|
|
|
# WARNING: Ensure a non-snapshot version is used before releasing to production
|
2024-09-27 05:12:01 -07:00
|
|
|
ZCASH_SDK_VERSION=2.2.5-SNAPSHOT
|
2022-05-16 04:40:50 -07:00
|
|
|
|
2021-11-10 08:38:20 -08:00
|
|
|
# Toolchain is the Java version used to build the application, which is separate from the
|
2023-07-17 04:49:11 -07:00
|
|
|
# Java version used to run the application.
|
2021-12-03 05:16:24 -08:00
|
|
|
JVM_TOOLCHAIN=17
|
2021-11-10 08:38:20 -08:00
|
|
|
|
2021-09-14 14:02:06 -07:00
|
|
|
# This shouldn't be changed, as Android doesn't support targets beyond Java 8
|
2023-01-17 13:26:56 -08:00
|
|
|
KOTLIN_JVM_TARGET=8
|
2024-06-27 23:56:36 -07:00
|
|
|
ANDROID_JVM_TARGET=1.8
|