Skip to content

Commit e53ac71

Browse files
authored
Merge pull request #98 from odaridavid/pr96-cleanup
Codebase optimizations
2 parents 9366a48 + ff2fdff commit e53ac71

File tree

137 files changed

+908
-157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+908
-157
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ keystore.properties
6868

6969
If you encounter any error check [this site](https://docs.travis-ci.com/user/encrypting-files/) out.
7070

71+
To setup the Travis CLI tools see [this](https://github.com/travis-ci/travis.rb#installation)
72+
7173
## Architecture
7274

7375
The Application is split into a three layer architecture:

app/build.gradle

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/**
2+
*
3+
* Copyright 2020 David Odari
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6+
* in compliance with the License. You may obtain a copy of the License at
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
* Unless required by applicable law or agreed to in writing, software distributed under the License
9+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
10+
* or implied. See the License for the specific language governing permissions and limitations under
11+
* the License.
12+
*
13+
**/
114
apply plugin: 'com.android.application'
215

316
apply plugin: 'kotlin-android'
@@ -8,10 +21,10 @@ apply plugin: 'kotlin-kapt'
821

922
apply plugin: 'jacoco-android'
1023

11-
apply plugin: 'io.fabric'
12-
1324
apply plugin: 'com.mikepenz.aboutlibraries.plugin'
1425

26+
apply plugin: 'com.google.firebase.crashlytics'
27+
1528
jacoco {
1629
toolVersion = "0.8.4"
1730
}
@@ -53,24 +66,18 @@ android {
5366
buildTypes {
5467

5568
release {
56-
minifyEnabled false
69+
minifyEnabled true
70+
shrinkResources true
5771
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
58-
manifestPlaceholders = [
59-
crashlyticsEnabled: true,
60-
appIcon : "@mipmap/ic_launcher",
61-
appIconRound : "@mipmap/ic_launcher_round"
62-
]
72+
manifestPlaceholders = [crashlyticsEnabled: true]
6373
signingConfig signingConfigs.release
6474
}
6575

6676
debug {
77+
minifyEnabled false
6778
applicationIdSuffix ".debug"
6879
versionNameSuffix "-debug"
69-
manifestPlaceholders = [
70-
crashlyticsEnabled: false,
71-
appIcon : "@mipmap/ic_debug_launcher",
72-
appIconRound : "@mipmap/ic_debug_launcher_round"
73-
]
80+
manifestPlaceholders = [crashlyticsEnabled: false]
7481
testCoverageEnabled true
7582
}
7683
}
@@ -121,7 +128,7 @@ dependencies {
121128

122129
//Firebase
123130
implementation appDependencies.firebaseAnalytics
124-
implementation appDependencies.crashlytics
131+
implementation appDependencies.firebaseCrashlytics
125132

126133
//Stetho
127134
implementation appDependencies.stetho

app/proguard-rules.pro

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
23+
#Exclude R from ProGuard to enable the libraries auto detection[AboutLibraries]
24+
-keep class **.R$* {
25+
<fields>;
26+
}
27+
28+
-printusage build/outputs/mapping/release/usage.txt
29+
30+
-keep class com.k0d4black.theforce.** { *; }

0 commit comments

Comments
 (0)