Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xujiaao committed Mar 26, 2019
1 parent 0ed86d9 commit d6cabfc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Smooth Bézier Spline Through Prescribed Points](https://www.particleincell.com/2012/bezier-splines/) for Android Platform.

Helps to simulate curves such as `Sine Curve`, `Wave` etc...
Helps to simulate curves such as `Sine Curve`, `Wave` etc... [Here](https://github.com/xujiaao/bezier-spline/releases/latest) is a Sample Application.

![Wave](docs/wave.gif)

Expand All @@ -15,7 +15,6 @@ Copy [BezierSpline.java](bezier-spline/src/main/java/com/xujiaao/android/bezier/
private final Path mPath = new Path();
private final Paint mPaint = new Paint();
private final BezierSpline mBezierSpline = new BezierSpline(20);
...

@Override
protected void onDraw(Canvas canvas) {
Expand Down
25 changes: 24 additions & 1 deletion bezier-spline-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ android {
targetSdkVersion androidTargetSdkVersion
}

signingConfigs {
sample configureKeystore('sample')
}

buildTypes {
debug {
signingConfig signingConfigs.sample
}

release {
minifyEnabled true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

signingConfig signingConfigs.sample
}
}
}
Expand All @@ -34,4 +44,17 @@ dependencies {
implementation dep.libRecyclerView

implementation project(':bezier-spline')
}

def configureKeystore(name) {
def dir = rootProject.file('keystore')
def properties = new Properties()
properties.load(new FileInputStream(new File(dir, "${name}.properties")))

return {
storeFile = new File(dir, "${name}.keystore")
storePassword = properties['KEYSTORE_PASSWORD']
keyAlias = properties['KEY_ALIAS']
keyPassword = properties['KEY_PASSWORD']
}
}
Binary file added keystore/sample.keystore
Binary file not shown.
3 changes: 3 additions & 0 deletions keystore/sample.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
KEYSTORE_PASSWORD=sample
KEY_ALIAS=sample
KEY_PASSWORD=sample

0 comments on commit d6cabfc

Please sign in to comment.