File tree Expand file tree Collapse file tree 6 files changed +25
-15
lines changed Expand file tree Collapse file tree 6 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 5
5
components :
6
6
- platform-tools
7
7
- tools
8
- - build-tools-25 .0.2
8
+ - build-tools-27 .0.3
9
9
- android-25
10
10
- extra-android-support
11
11
- extra-android-m2repository
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ dependencies {
36
36
37
37
Usage
38
38
-----
39
- In your layout:
39
+ ### In your layout:
40
40
``` xml
41
41
<com .nishant.math.MathView
42
42
android : id =" @+id/math_view"
43
43
android : layout_width =" match_parent"
44
44
android : layout_height =" wrap_content" >
45
45
```
46
- In Activity:
46
+ ### In Activity:
47
47
``` java
48
48
@BindView (R . id. math_view)
49
49
MathView mathView;
@@ -56,6 +56,14 @@ In Activity:
56
56
}
57
57
```
58
58
59
+
60
+ ###Proguard-rules:
61
+ ```
62
+
63
+ -keepattributes EnclosingMethod
64
+ -keep class com.nishant.** { *; }
65
+ ```
66
+
59
67
License
60
68
=======
61
69
Copyright (C) 2016 - 2017 Nishant Pathak
Original file line number Diff line number Diff line change @@ -6,18 +6,18 @@ repositories {
6
6
7
7
android {
8
8
compileSdkVersion 27
9
- buildToolsVersion " 27.0.2 "
9
+ buildToolsVersion ' 27.0.3 '
10
10
defaultConfig {
11
- applicationId " com.nishant.mathsample"
11
+ applicationId ' com.nishant.mathsample'
12
12
minSdkVersion 17
13
13
targetSdkVersion 27
14
14
versionCode 1
15
- versionName " 1.0"
16
- testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
15
+ versionName ' 1.0'
16
+ testInstrumentationRunner ' android.support.test.runner.AndroidJUnitRunner'
17
17
}
18
18
buildTypes {
19
19
release {
20
- minifyEnabled false
20
+ minifyEnabled true
21
21
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
22
22
}
23
23
}
@@ -30,9 +30,9 @@ dependencies {
30
30
androidTestCompile(' com.android.support.test.espresso:espresso-core:2.2.2' , {
31
31
exclude group : ' com.android.support' , module : ' support-annotations'
32
32
})
33
- // compile project(path: ':mathview-lib')
34
- implementation ' com.github.Nishant-Pathak:MathView:v1.1 '
35
- // compile 'com.github.Nishant-Pathak:App-Math:v0.6 '
33
+
34
+ // compile project(path: ':mathview-lib')
35
+ implementation ' com.github.Nishant-Pathak:MathView:v1.2 '
36
36
implementation ' com.android.support:appcompat-v7:27.0.2'
37
37
androidTestImplementation ' junit:junit:4.12'
38
38
compile project(path : ' :mathview-lib' )
Original file line number Diff line number Diff line change 15
15
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16
16
# public *;
17
17
#}
18
+
19
+ #------------- MathView Start -------------------
20
+ -keepattributes EnclosingMethod
21
+ -keep class com.nishant.** { *; }
22
+ #------------- MathView End -------------------
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'
3
3
4
4
android {
5
5
compileSdkVersion 27
6
- buildToolsVersion ' 27.0.2 '
6
+ buildToolsVersion ' 27.0.3 '
7
7
// publishNonDefault true
8
8
9
9
defaultConfig {
Original file line number Diff line number Diff line change 15
15
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16
16
# public *;
17
17
#}
18
-
19
- -keepattributes EnclosingMethod
20
- -keep class com.nishant.** { *; }
You can’t perform that action at this time.
0 commit comments