Skip to content

Commit 5f6535c

Browse files
committed
fix #3
1 parent d787e70 commit 5f6535c

File tree

10 files changed

+17
-22
lines changed

10 files changed

+17
-22
lines changed

demo/src/main/AndroidManifest.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
package="daimajia.com.eaing" >
44

55
<application
6-
android:allowBackup="true"
76
android:icon="@drawable/ic_launcher"
87
android:label="@string/app_name"
98
android:theme="@style/AppTheme" >
@@ -12,11 +11,9 @@
1211
android:label="@string/app_name" >
1312
<intent-filter>
1413
<action android:name="android.intent.action.MAIN" />
15-
1614
<category android:name="android.intent.category.LAUNCHER" />
1715
</intent-filter>
1816
</activity>
19-
<activity android:name=".ExampleActivity"/>
2017
</application>
2118

2219
</manifest>

library/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ dependencies {
2424
compile 'com.nineoldandroids:library:2.4.0'
2525
compile 'com.android.support:appcompat-v7:19.+'
2626
}
27+
apply from: './gradle-mvn-push.gradle'

library/gradle-mvn-push.gradle

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,21 @@ afterEvaluate { project ->
104104
}
105105
}
106106

107-
task jar(type: Jar) {
108-
from android.sourceSets.main.java
107+
task clearJar(type: Delete){
108+
delete 'build/libs/library.jar'
109109
}
110110

111-
task androidJavadocs(type: Javadoc) {
111+
task makeJar(type: Copy, dependsOn: clearJar){
112+
from('build/intermediates/bundles/release/')
113+
into('build/libs/')
114+
include('classes.jar')
115+
rename('classes.jar','library.jar')
116+
}
117+
118+
def jar = file('build/libs/library.jar')
119+
120+
121+
task androidJavadocs(type: Javadoc, dependsOn: makeJar) {
112122
source = android.sourceSets.main
113123
classpath += project.files(android.getBootClasspath() .join(File.pathSeparator))
114124
}
@@ -129,4 +139,4 @@ afterEvaluate { project ->
129139
archives apklib
130140
archives jar
131141
}
132-
}
142+
}

library/src/main/AndroidManifest.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.daimajia.easing">
3-
4-
<application android:allowBackup="true"
5-
android:label="@string/app_name"
6-
android:icon="@drawable/ic_launcher"
7-
>
8-
9-
</application>
10-
11-
</manifest>
1+
<manifest package="com.daimajia.easing" />
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

library/src/main/res/values/strings.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ':app', ':library'
1+
include ':demo', ':library'

0 commit comments

Comments
 (0)