Skip to content

Commit

Permalink
Travis patch (#11)
Browse files Browse the repository at this point in the history
* Create google-services.json

Template for TravisCI

* Update build.gradle

dev build variant

* Update build.gradle

Added build param

* Update .travis.yml

* Moved google-services.json

* Move google-services.json

* Update build.gradle

* Update google-services.json

* Moved product flavors

* Removed flavors
  • Loading branch information
Javinator9889 committed Nov 9, 2018
1 parent 4b3ead3 commit 386de3c
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -22,4 +22,4 @@ android:
- extra-google-m2repository

script:
- ./gradlew build --stacktrace
- ./gradlew clean build -Pbuild=dev --stacktrace
31 changes: 30 additions & 1 deletion app/build.gradle
Expand Up @@ -36,6 +36,17 @@ android {
resValue "string", "app_version",
"${defaultConfig.versionName}${versionNameSuffix}"
}
dev {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
resValue "string", "app_version",
"${defaultConfig.versionName}"
debuggable true
jniDebuggable true
renderscriptDebuggable true
pseudoLocalesEnabled false
zipAlignEnabled true
}
}
dexOptions {
preDexLibraries = false
Expand All @@ -55,6 +66,24 @@ def configSign() {
}
}

def build_param = "${build}";

if (build_param != "dev") {
//exclude production build
android.variantFilter { variant ->
if (variant.buildType.name.equals('dev')) {
variant.setIgnore(true);
}
}
} else {
//exclude all except production build
android.variantFilter { variant ->
if (!variant.buildType.name.equals('dev')) {
variant.setIgnore(true);
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.0.0'
Expand Down Expand Up @@ -85,4 +114,4 @@ dependencies {
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'org.sufficientlysecure:donations:2.6'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.gms.google-services'
51 changes: 51 additions & 0 deletions app/src/dev/google-services.json
@@ -0,0 +1,51 @@
{
"project_info": {
"project_number": "",
"project_id": ""
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:123456789012:android:1234567890123456",
"android_client_info": {
"package_name": "javinator9889.bitcoinpools"
}
},
"oauth_client": [
{
"client_id": "",
"client_type": 3
},
{
"client_id": "",
"client_type": 1,
"android_info": {
"package_name": "javinator9889.bitcoinpools",
"certificate_hash": ""
}
}
],
"api_key": [
{
"current_key": ""
}
],
"services": {
"analytics_service": {
"status": 2,
"analytics_property": {
"tracking_id": ""
}
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 1
}
}
}
],
"configuration_version": "1"
}

0 comments on commit 386de3c

Please sign in to comment.