-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
87 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
app/src/androidTest/java/com/brioal/swipemenudemo/ExampleInstrumentedTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,3 @@ org.gradle.jvmargs=-Xmx1536m | |
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true | ||
PROJ_GROUP=com.brioal | ||
PROJ_VERSION=1.0 | ||
PROJ_NAME=SwipeMenu | ||
PROJ_WEBSITEURL=https://github.com/Brioal/SwipeMenuDemo | ||
PROJ_ISSUETRACKERURL=https://github.com/Brioal/SwipeMenuDemo/issues | ||
PROJ_VCSURL=https://github.com/Brioal/SwipeMenuDemo.git | ||
PROJ_DESCRIPTION=A SwipeMenu which contains much animation style for user | ||
PROJ_ARTIFACTID=SwipeMenu | ||
|
||
DEVELOPER_ID=Brioal | ||
DEVELOPER_NAME=JunHuang | ||
DEVELOPER_EMAIL=[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
group='com.github.Brioal' | ||
apply plugin: 'com.jfrog.bintray' | ||
group = 'com.brioal' | ||
version = '1.0' | ||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "24.0.1" | ||
|
@@ -10,8 +12,6 @@ android { | |
targetSdkVersion 24 | ||
versionCode 1 | ||
versionName "1.0" | ||
renderscriptTargetApi 21 | ||
renderscriptSupportModeEnabled true | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
|
@@ -28,3 +28,82 @@ dependencies { | |
compile 'com.android.support:appcompat-v7:24.1.1' | ||
} | ||
|
||
def siteUrl = 'https://github.com/Brioal/SwipeMenuDemo' // 项目的主页 这个是说明,可随便填 | ||
def gitUrl = 'https://github.com/Brioal/SwipeMenuDemo.git' // Git仓库的url 这个是说明,可随便填 | ||
group = "com.brioal" // 这里是groupId ,必须填写 一般填你唯一的包名 | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
// This generates POM.xml with proper parameters | ||
pom { | ||
project { | ||
packaging 'aar' | ||
// Add your description here | ||
name 'Android BounceProgressBar Widget' //项目描述 | ||
url siteUrl | ||
// Set your license | ||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id 'brioal' //填写开发者的一些基本信息 | ||
name 'JunHuang' //填写开发者的一些基本信息 | ||
email '[email protected]' //填写开发者的一些基本信息 | ||
} | ||
} | ||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
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 | ||
} | ||
|
||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
bintray { | ||
user = properties.getProperty("bintray.user") //读取 local.properties 文件里面的 bintray.user | ||
key = properties.getProperty("bintray.apikey") //读取 local.properties 文件里面的 bintray.apikey | ||
configurations = ['archives'] | ||
pkg { | ||
repo = "maven" | ||
name = "SwipeMenu" //发布到JCenter上的项目名字,必须填写 | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = ["Apache-2.0"] | ||
publish = true | ||
} | ||
} | ||
|
||
javadoc { | ||
options{ | ||
encoding "UTF-8" | ||
charSet 'UTF-8' | ||
author true | ||
version true | ||
links "http://docs.oracle.com/javase/7/docs/api" | ||
} | ||
} |