Skip to content

Commit 56a2858

Browse files
committed
First round of fixes for geftimov#12 .
1 parent 80b18d2 commit 56a2858

File tree

4 files changed

+44
-43
lines changed

4 files changed

+44
-43
lines changed

android-pathview/build.gradle

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -29,46 +29,46 @@ signing {
2929
sign configurations.archives
3030
}
3131

32-
uploadArchives {
33-
configuration = configurations.archives
34-
repositories.mavenDeployer {
35-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
36-
37-
repository(url: sonatypeRepo) {
38-
authentication(userName: sonatypeUsername,
39-
password: sonatypePassword)
40-
}
41-
42-
pom.project {
43-
name 'Android Path View Library'
44-
packaging 'aar'
45-
description 'Android view that animate the both path from constructed path or from svg'
46-
url 'https://github.com/geftimov/android-pathview'
47-
48-
scm {
49-
url 'scm:git@github.com:geftimov/android-pathview.git'
50-
connection 'scm:git@github.com:geftimov/android-pathview.git'
51-
developerConnection 'scm:git@github.com:geftimov/android-pathview.git'
52-
}
53-
54-
licenses {
55-
license {
56-
name 'The Apache Software License, Version 2.0'
57-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
58-
distribution 'repo'
59-
}
60-
}
61-
62-
developers {
63-
developer {
64-
id 'geftimov'
65-
name 'Georgi Eftimov'
66-
email 'jokatavr@gmail.com'
67-
}
68-
}
69-
}
70-
}
71-
}
32+
//uploadArchives {
33+
// configuration = configurations.archives
34+
// repositories.mavenDeployer {
35+
// beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
36+
//
37+
// repository(url: sonatypeRepo) {
38+
// authentication(userName: sonatypeUsername,
39+
// password: sonatypePassword)
40+
// }
41+
//
42+
// pom.project {
43+
// name 'Android Path View Library'
44+
// packaging 'aar'
45+
// description 'Android view that animate the both path from constructed path or from svg'
46+
// url 'https://github.com/geftimov/android-pathview'
47+
//
48+
// scm {
49+
// url 'scm:git@github.com:geftimov/android-pathview.git'
50+
// connection 'scm:git@github.com:geftimov/android-pathview.git'
51+
// developerConnection 'scm:git@github.com:geftimov/android-pathview.git'
52+
// }
53+
//
54+
// licenses {
55+
// license {
56+
// name 'The Apache Software License, Version 2.0'
57+
// url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
58+
// distribution 'repo'
59+
// }
60+
// }
61+
//
62+
// developers {
63+
// developer {
64+
// id 'geftimov'
65+
// name 'Georgi Eftimov'
66+
// email 'jokatavr@gmail.com'
67+
// }
68+
// }
69+
// }
70+
// }
71+
//}
7272

7373
dependencies {
7474
compile files('libs/androidsvg-1.2.1.jar')

android-pathview/src/main/java/com/eftimoff/androipathview/SvgUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public void drawPath(Path path, Paint paint) {
126126
* @param canvas The canvas to be drawn.
127127
*/
128128
private void rescaleCanvas(int width, int height, float strokeWidth, Canvas canvas) {
129+
if (mSvg == null) return;
129130
final RectF viewBox = mSvg.getDocumentViewBox();
130131

131132
final float scale = Math.min(width

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:1.0.0'
9+
classpath 'com.android.tools.build:gradle:1.3.0'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files

sample/src/main/java/com/eftimoff/empty/SecondActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ protected void onCreate(Bundle savedInstanceState) {
1818
final PathView pathView = (PathView) findViewById(R.id.pathView);
1919
// final Path path = makeConvexArrow(50, 100);
2020
// pathView.setPath(path);
21-
pathView.setFillAfter(true);
22-
pathView.useNaturalColors();
21+
// pathView.setFillAfter(true);
22+
// pathView.useNaturalColors();
2323
pathView.setOnClickListener(new View.OnClickListener() {
2424
@Override
2525
public void onClick(View v) {

0 commit comments

Comments
 (0)