Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis patch #11

Merged
merged 10 commits into from Nov 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"
}