Skip to content

Commit 05e489a

Browse files
author
BeanMan
committed
Working fine! 1.0.0
Add proguard rules
1 parent 6281ead commit 05e489a

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ android {
1515
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
1616
}
1717
}
18+
configurations.all {
19+
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
20+
}
1821
}
1922

2023
dependencies {
2124
implementation fileTree(dir: 'libs', include: ['*.jar'])
2225
implementation 'com.android.support:appcompat-v7:28.0.0'
2326
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
27+
implementation 'com.github.beanman90.Appx-LazyLogger:lazzylogger:1.0.0-rc'
2428
}

app/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
-keep class beanman90.appx.lazylogger.** { *; }

app/src/main/java/beanman90/appx/lazylogger/demo/MainActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
import android.support.v7.app.AppCompatActivity;
44
import android.os.Bundle;
5+
import beanman90.appx.lazylogger.LazyLogger;
56

67
public class MainActivity extends AppCompatActivity {
78

89
@Override
910
protected void onCreate(Bundle savedInstanceState) {
1011
super.onCreate(savedInstanceState);
1112
setContentView(R.layout.activity_main);
13+
LazyLogger.plant(new LazyLogger.DebugTree());
1214
}
1315
}

lazylogger-noop/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ android {
2525
}
2626
}
2727

28+
afterEvaluate {
29+
generateReleaseBuildConfig.enabled = false
30+
}
2831
}
2932

3033
dependencies {

lazylogger-noop/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
-keep class beanman90.appx.lazylogger.** { *; }

lazzylogger/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
-keep class beanman90.appx.lazylogger.** { *; }

0 commit comments

Comments
 (0)