Skip to content

Commit

Permalink
updated readme, dependency and fixed build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishant-Pathak committed Feb 22, 2018
1 parent 919b844 commit 5535c91
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android:
components:
- platform-tools
- tools
- build-tools-25.0.2
- build-tools-27.0.3
- android-25
- extra-android-support
- extra-android-m2repository
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ dependencies {

Usage
-----
In your layout:
###In your layout:
```xml
<com.nishant.math.MathView
android:id="@+id/math_view"
android:layout_width="match_parent"
android:layout_height="wrap_content">
```
In Activity:
###In Activity:
```java
@BindView(R.id.math_view)
MathView mathView;
Expand All @@ -56,6 +56,14 @@ In Activity:
}
```


###Proguard-rules:
```
-keepattributes EnclosingMethod
-keep class com.nishant.** { *; }
```

License
=======
Copyright (C) 2016 - 2017 Nishant Pathak
Expand Down
16 changes: 8 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ repositories {

android {
compileSdkVersion 27
buildToolsVersion "27.0.2"
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.nishant.mathsample"
applicationId 'com.nishant.mathsample'
minSdkVersion 17
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionName '1.0'
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand All @@ -30,9 +30,9 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
// compile project(path: ':mathview-lib')
implementation 'com.github.Nishant-Pathak:MathView:v1.1'
// compile 'com.github.Nishant-Pathak:App-Math:v0.6'

// compile project(path: ':mathview-lib')
implementation 'com.github.Nishant-Pathak:MathView:v1.2'
implementation 'com.android.support:appcompat-v7:27.0.2'
androidTestImplementation 'junit:junit:4.12'
compile project(path: ':mathview-lib')
Expand Down
5 changes: 5 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

#------------- MathView Start -------------------
-keepattributes EnclosingMethod
-keep class com.nishant.** { *; }
#------------- MathView End -------------------
2 changes: 1 addition & 1 deletion mathview-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'

android {
compileSdkVersion 27
buildToolsVersion '27.0.2'
buildToolsVersion '27.0.3'
// publishNonDefault true

defaultConfig {
Expand Down
3 changes: 0 additions & 3 deletions mathview-lib/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

-keepattributes EnclosingMethod
-keep class com.nishant.** { *; }

0 comments on commit 5535c91

Please sign in to comment.