Skip to content

Commit f10789d

Browse files
authored
Merge pull request #5 from AutSoft/bugfixes
Proguard config fix
2 parents 04531a5 + 4b65618 commit f10789d

File tree

4 files changed

+10
-72
lines changed

4 files changed

+10
-72
lines changed

build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
google()
67
maven { url "https://plugins.gradle.org/m2/" }
78
}
89
dependencies {
9-
classpath 'com.android.tools.build:gradle:2.3.3'
10+
classpath 'com.android.tools.build:gradle:3.0.1'
1011
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1112
}
1213
}
1314

1415
allprojects {
1516
repositories {
1617
jcenter()
18+
google()
1719
}
1820
}
1921

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Mar 03 15:55:03 CET 2017
1+
#Tue Dec 05 08:41:30 CET 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

settings.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ include ':app', ':tasklib', ':taskcompiler', ':tasklib-core', ':compiler-core',
44
gradle.ext.githubGroup = "com.github.AutSoft"
55

66

7-
gradle.ext.buildToolsVersion = "25.0.2"
8-
gradle.ext.compileSdkVersion = 25
7+
gradle.ext.buildToolsVersion = "26.0.2"
8+
gradle.ext.compileSdkVersion = 26
99
gradle.ext.minSdkVersion = 14
10-
gradle.ext.targetSdkVersion = 25
10+
gradle.ext.targetSdkVersion = 26
1111

1212
gradle.ext.jacoco_version = "0.7.7.201606060606"
1313

14-
gradle.ext.dep_appcompat = 'com.android.support:appcompat-v7:25.2.0'
14+
gradle.ext.dep_appcompat = 'com.android.support:appcompat-v7:26.1.0'
1515
gradle.ext.dep_junit = 'junit:junit:4.12'
1616
gradle.ext.dep_rxjava = 'io.reactivex.rxjava2:rxjava:2.0.2'
1717
gradle.ext.dep_googleTruth = 'com.google.truth:truth:0.32'

tasklib/proguard-rules.pro

+1-65
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,3 @@
1-
# Save the obfuscation mapping to a file, so we can de-obfuscate any stack
2-
# traces later on. Keep a fixed source file attribute and all line number
3-
# tables to get line numbers in the stack traces.
4-
# You can comment this out if you're not interested in stack traces.
5-
6-
-printmapping out.map
7-
-keepparameternames
8-
-renamesourcefileattribute SourceFile
9-
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod
10-
11-
# Preserve all annotations.
12-
13-
-keepattributes *Annotation*
14-
15-
# Preserve all public classes, and their public and protected fields and
16-
# methods.
17-
18-
-keep public class * {
19-
public protected *;
20-
}
21-
22-
# Preserve all .class method names.
23-
24-
-keepclassmembernames class * {
25-
java.lang.Class class$(java.lang.String);
26-
java.lang.Class class$(java.lang.String, boolean);
27-
}
28-
29-
# Preserve all native method names and the names of their classes.
30-
31-
-keepclasseswithmembernames class * {
32-
native <methods>;
33-
}
34-
35-
# Preserve the special static methods that are required in all enumeration
36-
# classes.
37-
38-
-keepclassmembers class * extends java.lang.Enum {
39-
public static **[] values();
40-
public static ** valueOf(java.lang.String);
41-
}
42-
43-
# Explicitly preserve all serialization members. The Serializable interface
44-
# is only a marker interface, so it wouldn't save them.
45-
# You can comment this out if your library doesn't use serialization.
46-
# If your code contains serializable classes that have to be backward
47-
# compatible, please refer to the manual.
48-
49-
-keepclassmembers class * implements java.io.Serializable {
50-
static final long serialVersionUID;
51-
static final java.io.ObjectStreamField[] serialPersistentFields;
52-
private void writeObject(java.io.ObjectOutputStream);
53-
private void readObject(java.io.ObjectInputStream);
54-
java.lang.Object writeReplace();
55-
java.lang.Object readResolve();
56-
}
57-
58-
# Your library may contain more items that need to be preserved;
59-
# typically classes that are dynamically created using Class.forName:
60-
61-
# -keep public class mypackage.MyClass
62-
# -keep public interface mypackage.MyInterface
63-
# -keep public class * implements mypackage.MyInterface
64-
651
# Aut task lib
662
-keep class hu.axolotl.tasklib.** { *; }
673
-dontwarn hu.axolotl.tasklib.**
@@ -74,4 +10,4 @@
7410

7511
-keepclassmembers class ** {
7612
*** onTaskProgress*(...);
77-
}
13+
}

0 commit comments

Comments
 (0)