-
Notifications
You must be signed in to change notification settings - Fork 384
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
12 changed files
with
146 additions
and
76 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Jul 03 10:00:36 CST 2019 | ||
#Wed Aug 26 17:00:59 CST 2020 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip |
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
4 changes: 2 additions & 2 deletions
4
sample/src/androidTest/java/android/serialport/sample/ExampleInstrumentedTest.java
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/build | ||
.externalNativeBuild | ||
.cxx |
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
//在根build.gradle中加入 | ||
//classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' | ||
//classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
|
||
//在module的build.gradle末位加入 | ||
//apply from: './bintray.gradle' | ||
|
||
// 执行 ./gradlew clean bintrayUpload | ||
|
||
def toUpload = true // 配置是否上传 | ||
if (toUpload) { | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
// 定义参数 | ||
// 依赖信息 | ||
def groupIdDefined = "com.licheedev" | ||
def artifactIdDefined = "android-serialport" | ||
def versionDefined = rootProject.ext.versionName | ||
// 其他信息 | ||
def siteUrl = "https://github.com/licheedev" | ||
def gitUrl = "https://github.com/licheedev/Android-SerialPort-API.git" | ||
def libName = "$artifactIdDefined" | ||
|
||
// 待发布项目的groupId和version。android-maven-gradle-plugin插件需要这么配置。 | ||
group = "$groupIdDefined" | ||
version = "$versionDefined" | ||
|
||
// bintray平台信息配置 | ||
bintray { | ||
user = BINTRAY_USER | ||
key = BINTRAY_KEY | ||
|
||
println "user=${user},key=${key}" | ||
|
||
configurations = ['archives'] | ||
publish = true | ||
pkg { | ||
repo = "maven" | ||
name = libName | ||
licenses = [" Apache-2.0"] | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
version { | ||
name = "$versionDefined" | ||
} | ||
} | ||
} | ||
|
||
// pom文件信息配置 | ||
install { | ||
repositories.mavenInstaller { | ||
pom.project { | ||
groupId "$groupIdDefined" | ||
artifactId "$artifactIdDefined" | ||
version "$versionDefined" | ||
packaging 'aar' | ||
} | ||
} | ||
} | ||
|
||
// 生成sourceJar和javaDocJar | ||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
failOnError false | ||
source = android.sourceSets.main.java.sourceFiles | ||
options { | ||
encoding = "utf-8" | ||
} | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
classpath += configurations.compile | ||
} | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,4 @@ | ||
<manifest package="android.serialport" | ||
|
||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<application android:allowBackup="true" android:label="@string/app_name" | ||
android:supportsRtl="true"> | ||
|
||
</application> | ||
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="android.serialport"> | ||
|
||
</manifest> |
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