Get Android build working

This commit is contained in:
John Lyon-Smith
2018-03-31 17:58:02 -07:00
parent 06e9ec527c
commit aa622012cd
24 changed files with 531 additions and 4288 deletions

View File

@@ -94,7 +94,9 @@ def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion 25
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.deightonar"
minSdkVersion 23
@@ -104,6 +106,15 @@ android {
ndk {
abiFilters "armeabi-v7a", "x86"
}
multiDexEnabled true
}
signingConfigs {
release {
storeFile file(DEIGHTON_AR_PROJECT_RELEASE_STORE_FILE)
storePassword DEIGHTON_AR_PROJECT_RELEASE_STORE_PASSWORD
keyAlias DEIGHTON_AR_PROJECT_RELEASE_KEY_ALIAS
keyPassword DEIGHTON_AR_PROJECT_RELEASE_KEY_PASSWORD
}
}
splits {
abi {
@@ -117,6 +128,7 @@ android {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
@@ -137,23 +149,21 @@ android {
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
api "com.android.support:appcompat-v7:25.3.1"
api 'com.facebook.react:react-native:+'
// From node_modules
api project(':react-native-navigation')
api project(':react-native-maps')
api project(':gvr_common')
api project(':arcore_client')
api project(path: ':react_viro')
api project(path: ':viro_renderer')
api 'com.google.android.exoplayer:exoplayer:r2.2.0'
api 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
api 'com.amazonaws:aws-android-sdk-core:2.2.+'
api 'com.amazonaws:aws-android-sdk-ddb:2.2.+'
api 'com.amazonaws:aws-android-sdk-ddb-mapper:2.2.+'
api 'com.amazonaws:aws-android-sdk-cognito:2.2.+'
api 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.2.+'
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:25.0.0"
compile "com.facebook.react:react-native:+" // From node_modules
compile project(':gvr_common')
compile project(':arcore_client')
compile project(path: ':react_viro')
compile project(path: ':viro_renderer')
compile 'com.google.android.exoplayer:exoplayer:r2.2.0'
compile 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
compile 'com.amazonaws:aws-android-sdk-core:2.2.+'
compile 'com.amazonaws:aws-android-sdk-ddb:2.2.+'
compile 'com.amazonaws:aws-android-sdk-ddb-mapper:2.2.+'
compile 'com.amazonaws:aws-android-sdk-cognito:2.2.+'
compile 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.2.+'
compile project(':react-native-maps')
}
// Run this once to be able to run the application with BUCK