Skip to content

Commit

Permalink
调整上传bintray的代码
Browse files Browse the repository at this point in the history
  • Loading branch information
sinyu890807 committed Aug 7, 2017
1 parent bf156df commit 3dd9051
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
// classpath 'com.novoda:bintray-release:0.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
11 changes: 0 additions & 11 deletions litepal/bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@ task sourcesJar(type: Jar) {
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives javadocJar
archives sourcesJar
}

Expand Down
10 changes: 10 additions & 0 deletions litepal/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
//apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 23
Expand Down Expand Up @@ -26,3 +27,12 @@ dependencies {
if (hasProperty("BINTRAY_KEY")) {
apply from: 'bintray.gradle'
}

//publish {
// userOrg = 'litepal'
// groupId = 'org.litepal.android'
// artifactId = 'core'
// publishVersion = '1.6.0-SNAPSHOT'
// desc = 'An Android library that allows developers to use SQLite database extremely easy'
// website = 'https://github.com/LitePalFramework/LitePal'
//}
9 changes: 3 additions & 6 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.litepal.litepalsample"
android:versionCode="1"
android:versionName="1.0" >
package="org.litepal.litepalsample">

<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
android:name="org.litepal.litepalsample.MyApplication"
Expand Down

0 comments on commit 3dd9051

Please sign in to comment.