Skip to content

Commit 5535c91

Browse files
updated readme, dependency and fixed build pipeline
1 parent 919b844 commit 5535c91

File tree

6 files changed

+25
-15
lines changed

6 files changed

+25
-15
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ android:
55
components:
66
- platform-tools
77
- tools
8-
- build-tools-25.0.2
8+
- build-tools-27.0.3
99
- android-25
1010
- extra-android-support
1111
- extra-android-m2repository

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ dependencies {
3636

3737
Usage
3838
-----
39-
In your layout:
39+
###In your layout:
4040
```xml
4141
<com.nishant.math.MathView
4242
android:id="@+id/math_view"
4343
android:layout_width="match_parent"
4444
android:layout_height="wrap_content">
4545
```
46-
In Activity:
46+
###In Activity:
4747
```java
4848
@BindView(R.id.math_view)
4949
MathView mathView;
@@ -56,6 +56,14 @@ In Activity:
5656
}
5757
```
5858

59+
60+
###Proguard-rules:
61+
```
62+
63+
-keepattributes EnclosingMethod
64+
-keep class com.nishant.** { *; }
65+
```
66+
5967
License
6068
=======
6169
Copyright (C) 2016 - 2017 Nishant Pathak

app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ repositories {
66

77
android {
88
compileSdkVersion 27
9-
buildToolsVersion "27.0.2"
9+
buildToolsVersion '27.0.3'
1010
defaultConfig {
11-
applicationId "com.nishant.mathsample"
11+
applicationId 'com.nishant.mathsample'
1212
minSdkVersion 17
1313
targetSdkVersion 27
1414
versionCode 1
15-
versionName "1.0"
16-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
15+
versionName '1.0'
16+
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
1717
}
1818
buildTypes {
1919
release {
20-
minifyEnabled false
20+
minifyEnabled true
2121
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2222
}
2323
}
@@ -30,9 +30,9 @@ dependencies {
3030
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
3131
exclude group: 'com.android.support', module: 'support-annotations'
3232
})
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'
3636
implementation 'com.android.support:appcompat-v7:27.0.2'
3737
androidTestImplementation 'junit:junit:4.12'
3838
compile project(path: ':mathview-lib')

app/proguard-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@
1515
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1616
# public *;
1717
#}
18+
19+
#------------- MathView Start -------------------
20+
-keepattributes EnclosingMethod
21+
-keep class com.nishant.** { *; }
22+
#------------- MathView End -------------------

mathview-lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'
33

44
android {
55
compileSdkVersion 27
6-
buildToolsVersion '27.0.2'
6+
buildToolsVersion '27.0.3'
77
// publishNonDefault true
88

99
defaultConfig {

mathview-lib/proguard-rules.pro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,3 @@
1515
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1616
# public *;
1717
#}
18-
19-
-keepattributes EnclosingMethod
20-
-keep class com.nishant.** { *; }

0 commit comments

Comments
 (0)