BlueWallet/android/app/build.gradle

139 lines
5.3 KiB
Groovy
Raw Normal View History

apply plugin: "com.android.application"
2024-05-17 23:33:48 -04:00
apply plugin: "org.jetbrains.kotlin.android"
2024-08-29 13:55:53 -04:00
apply plugin: "com.facebook.react"
/**
2023-03-04 13:51:11 -04:00
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
2023-03-04 13:51:11 -04:00
react {
/* Folders */
2024-08-29 13:55:53 -04:00
// The root of your project, i.e. where "package.json" lives. Default is '../..'
// root = file("../../")
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
// reactNativeDir = file("../../node_modules/react-native")
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
// codegenDir = file("../../node_modules/@react-native/codegen")
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
// cliFile = file("../../node_modules/react-native/cli.js")
2023-03-04 13:51:11 -04:00
/* Variants */
// The list of variants to that are debuggable. For those we're going to
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
// debuggableVariants = ["liteDebug", "prodDebug"]
/* Bundling */
// A list containing the node command and its flags. Default is just 'node'.
// nodeExecutableAndArgs = ["node"]
//
// The command to run when bundling. By default is 'bundle'
// bundleCommand = "ram-bundle"
//
// The path to the CLI configuration file. Default is empty.
// bundleConfig = file(../rn-cli.config.js)
//
// The name of the generated asset file containing your JS bundle
// bundleAssetName = "MyApplication.android.bundle"
//
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
// entryFile = file("../js/MyApplication.android.js")
//
// A list of extra flags to pass to the 'bundle' commands.
// See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
// extraPackagerArgs = []
/* Hermes Commands */
// The hermes compiler command to run. By default it is 'hermesc'
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
//
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
// hermesFlags = ["-O", "-output-source-map"]
2024-08-29 13:55:53 -04:00
/* Autolinking */
autolinkLibrariesWithApp()
2023-03-04 13:51:11 -04:00
}
/**
2023-03-04 13:51:11 -04:00
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = false
2019-07-12 23:34:06 +01:00
/**
2023-03-04 13:51:11 -04:00
* The preferred build flavor of JavaScriptCore (JSC)
2020-03-22 18:51:25 -04:00
*
* For example, to use the international variant, you can use:
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
2023-03-04 13:51:11 -04:00
* give correct results when using with locales other than en-US. Note that
2020-03-22 18:51:25 -04:00
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc-intl:+'
2020-03-22 18:51:25 -04:00
android {
ndkVersion rootProject.ext.ndkVersion
2024-05-17 23:33:48 -04:00
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdkVersion rootProject.ext.compileSdkVersion
2023-12-19 09:54:24 -04:00
namespace "io.bluewallet.bluewallet"
defaultConfig {
applicationId "io.bluewallet.bluewallet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
2019-01-21 13:21:48 +00:00
versionCode 1
2024-12-11 13:13:59 -04:00
versionName "7.0.7"
2023-03-04 13:51:11 -04:00
testBuildType System.getProperty('testBuildType', 'debug')
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
2023-03-04 13:51:11 -04:00
2024-07-11 20:07:03 -04:00
lintOptions {
abortOnError false
checkReleaseBuilds false
}
2024-06-29 17:42:14 -04:00
sourceSets {
main {
assets.srcDirs = ['src/main/assets', 'src/main/res/assets']
}
}
buildTypes {
release {
2020-06-18 11:49:36 -04:00
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
2023-03-04 13:51:11 -04:00
proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro"
}
}
2024-07-07 15:45:15 -04:00
}
2024-06-29 17:42:14 -04:00
task copyFiatUnits(type: Copy) {
from '../../models/fiatUnits.json'
into 'src/main/assets'
}
preBuild.dependsOn(copyFiatUnits)
dependencies {
2024-08-30 22:09:18 -04:00
androidTestImplementation('com.wix:detox:+')
2023-03-04 13:51:11 -04:00
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
2024-08-30 17:57:56 -04:00
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.work:work-runtime-ktx:2.9.1'
2020-06-18 11:49:36 -04:00
2023-03-04 13:51:11 -04:00
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
2019-07-12 23:34:06 +01:00
} else {
2020-03-22 18:51:25 -04:00
implementation jscFlavor
2019-07-12 23:34:06 +01:00
}
2024-08-30 17:57:56 -04:00
androidTestImplementation('com.wix:detox:0.1.1')
implementation 'androidx.appcompat:appcompat:1.7.0'
2023-03-04 13:51:11 -04:00
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
}
2020-07-18 20:33:43 +01:00
apply plugin: 'com.google.gms.google-services' // Google Services plugin
2024-07-20 23:17:18 -04:00
apply plugin: "com.bugsnag.android.gradle"