|
|
|
@ -46,6 +46,7 @@ apply plugin: 'io.fabric' |
|
|
|
|
|
|
|
|
|
repositories { |
|
|
|
|
maven { url 'https://maven.fabric.io/public' } |
|
|
|
|
jcenter() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
import com.android.build.OutputFile |
|
|
|
@ -162,12 +163,12 @@ android { |
|
|
|
|
buildFabricPropertiesIfNeeded() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
packagingOptions { |
|
|
|
|
pickFirst '**/libjsc.so' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion |
|
|
|
|
buildToolsVersion rootProject.ext.buildToolsVersion |
|
|
|
|
|
|
|
|
|
compileOptions { |
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8 |
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
defaultConfig { |
|
|
|
|
applicationId "io.metamask" |
|
|
|
@ -190,7 +191,7 @@ android { |
|
|
|
|
MM_BRANCH_KEY_TEST: "$System.env.MM_BRANCH_KEY_TEST", |
|
|
|
|
MM_BRANCH_KEY_LIVE: "$System.env.MM_BRANCH_KEY_LIVE" |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
missingDimensionStrategy 'react-native-camera', 'general' |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -209,7 +210,7 @@ android { |
|
|
|
|
reset() |
|
|
|
|
enable enableSeparateBuildPerCPUArchitecture |
|
|
|
|
universalApk false // If true, also generate a universal APK |
|
|
|
|
include "armeabi-v7a", "x86", "arm64-v8a" |
|
|
|
|
include "armeabi-v7a", "x86", "arm64-v8a", "x86-64" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
buildTypes { |
|
|
|
@ -232,7 +233,7 @@ android { |
|
|
|
|
variant.outputs.each { output -> |
|
|
|
|
// For each separate APK per architecture, set a unique version code as described here: |
|
|
|
|
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits |
|
|
|
|
def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3] |
|
|
|
|
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 = |
|
|
|
@ -242,13 +243,8 @@ android { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
configurations.all { |
|
|
|
|
resolutionStrategy { |
|
|
|
|
force 'org.webkit:android-jsc:r236355' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
|
implementation project(':@react-native-community_async-storage') |
|
|
|
|
implementation project(':react-native-push-notification') |
|
|
|
|
implementation project(':react-native-background-timer') |
|
|
|
|
implementation project(':react-native-device-info') |
|
|
|
@ -271,20 +267,18 @@ dependencies { |
|
|
|
|
implementation project(':react-native-aes-crypto') |
|
|
|
|
implementation project(':react-native-keychain') |
|
|
|
|
implementation project(':react-native-os') |
|
|
|
|
implementation project(':react-native-linear-gradient') |
|
|
|
|
implementation project(':react-native-randombytes') |
|
|
|
|
implementation project(':react-native-fs') |
|
|
|
|
implementation project(':react-native-vector-icons') |
|
|
|
|
implementation project(':react-native-shake') |
|
|
|
|
|
|
|
|
|
implementation('com.crashlytics.sdk.android:crashlytics:2.9.4@aar') { |
|
|
|
|
transitive = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
androidTestImplementation(project(path: ":detox")) |
|
|
|
|
androidTestImplementation 'junit:junit:4.12' |
|
|
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.1' |
|
|
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.1' |
|
|
|
|
// androidTestImplementation(project(path: ":detox")) |
|
|
|
|
// androidTestImplementation 'junit:junit:4.12' |
|
|
|
|
// androidTestImplementation 'com.android.support.test:runner:1.0.1' |
|
|
|
|
// androidTestImplementation 'com.android.support.test:rules:1.0.1' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Run this once to be able to run the application with BUCK |
|
|
|
|