Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ android:
# https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943
- tools
- tools
before_script: mv library/google-services.json app/google-services.json
script: ./gradlew clean assembleDebug check
before_script:
- cp library/google-services.json app/google-services.json
- cp library/google-services.json proguard-tests/google-services.json
script: ./gradlew clean assembleDebug proguard-tests:build check
after_success: ./scripts/artifactory.sh
after_failure:
# tests
Expand Down
6 changes: 3 additions & 3 deletions auth/auth-proguard.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Twitter and Facebook are optional
-dontwarn com.twitter.**
-dontwarn com.facebook.**
-dontwarn com.firebase.ui.auth.provider.**
-dontwarn com.twitter.**

# Don't note a bunch of dynamically referenced classes
-dontnote com.google.**
Expand All @@ -16,5 +15,6 @@

# Retrofit config
-dontnote retrofit2.Platform
-dontwarn retrofit2.Platform$Java8
-dontwarn retrofit2.** # Also keeps Twitter at bay as long as they keep using Retrofit
-dontwarn okio.**
-keepattributes Exceptions
39 changes: 39 additions & 0 deletions proguard-tests/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion compileSdk

defaultConfig {
applicationId "com.firebase.uidemo"
minSdkVersion 16
targetSdkVersion targetSdk
versionCode 1
versionName version
}

buildTypes {
release {
// For the purposes of the sample, allow testing of a proguarded release build
// using the debug key
signingConfig signingConfigs.debug

postprocessing {
removeUnusedCode true
removeUnusedResources true
obfuscate true
optimizeCode true
}
}
}
}

dependencies {
implementation "com.google.firebase:firebase-core:$firebaseVersion"

implementation project(path: ':auth')
implementation project(path: ':firestore')
implementation project(path: ':database')
implementation project(path: ':storage')
}

apply plugin: 'com.google.gms.google-services'
2 changes: 2 additions & 0 deletions proguard-tests/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.firebase.uidemo"/>
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include ':app', ':library', ':database', ':auth', ':storage', ':firestore', ':common',
':internal:lint', ':internal:lintchecks'
'proguard-tests', ':internal:lint', ':internal:lintchecks'