Skip to content

Commit 3dcaeea

Browse files
committed
发布FFprobe-GitHubPackage脚本
1 parent d5ae0c0 commit 3dcaeea

File tree

8 files changed

+156
-100
lines changed

8 files changed

+156
-100
lines changed
Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
1-
apply plugin: 'com.android.library'
1+
apply from: 'https://gist.githubusercontent.com/VeiZhang/f703697d56fe717c3433f4218f296b36/raw/library.gradle'
22

3-
android {
4-
compileSdkVersion 31
5-
buildToolsVersion "30.0.3"
6-
7-
defaultConfig {
8-
minSdkVersion 15
9-
targetSdkVersion 31
10-
versionCode 1
11-
versionName "1.0"
12-
13-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
14-
consumerProguardFiles "consumer-rules.pro"
15-
}
16-
17-
buildTypes {
18-
release {
19-
minifyEnabled false
20-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21-
}
22-
}
23-
}
3+
def libs = rootProject.ext.dependencies
244

255
dependencies {
26-
implementation fileTree(dir: "libs", include: ["*.jar"])
27-
implementation 'com.android.support:appcompat-v7:28.0.0'
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
288
testImplementation 'junit:junit:4.12'
299
androidTestImplementation 'com.android.support.test:runner:1.0.2'
3010
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
11+
implementation libs["appcompat-v7"]
12+
}
3113

32-
}
14+
//apply from: 'bintray.gradle' /** gradle 3.5.0 <-> 5.4.1 使用 **/
15+
apply from: 'github_package_publish_usage.gradle'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply from: 'https://gist.githubusercontent.com/VeiZhang/aebbbd6d9d570dffac81eea80cdcda0a/raw/github_package_publish.gradle'
2+
3+
/**发布到GitHub Packages仓库**/
4+
def LIB_GROUP_ID = rootProject.groupId
5+
def LIB_ARTIFACT_ID = 'ffprobe-arm64-v8a'
6+
def LIB_VERSION = rootProject.publishVersion
7+
def LIB_DESC = 'android执行FFprobe可执行文件-arm64-v8a'
8+
def LIB_URL = rootProject.website
9+
10+
publishing {
11+
publications {
12+
maven(MavenPublication) {
13+
// Specify own groupId as package name of your library,
14+
// otherwise it would just use project's name (=name of the root directory) by default.
15+
groupId LIB_GROUP_ID
16+
17+
// Specify custom artifactId if needed,
18+
// otherwise it would use module's name by default.
19+
artifactId LIB_ARTIFACT_ID
20+
21+
// You can specify custom version,
22+
// otherwise it would use version from `android { defaultConfig { ... } }` by default.
23+
version = LIB_VERSION
24+
25+
pom {
26+
description = LIB_DESC
27+
url = LIB_URL
28+
}
29+
}
30+
}
31+
}
Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
1-
apply plugin: 'com.android.library'
1+
apply from: 'https://gist.githubusercontent.com/VeiZhang/f703697d56fe717c3433f4218f296b36/raw/library.gradle'
22

3-
android {
4-
compileSdkVersion 31
5-
buildToolsVersion "30.0.3"
6-
7-
defaultConfig {
8-
minSdkVersion 15
9-
targetSdkVersion 31
10-
versionCode 1
11-
versionName "1.0"
12-
13-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
14-
consumerProguardFiles "consumer-rules.pro"
15-
}
16-
17-
buildTypes {
18-
release {
19-
minifyEnabled false
20-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21-
}
22-
}
23-
}
3+
def libs = rootProject.ext.dependencies
244

255
dependencies {
26-
implementation fileTree(dir: "libs", include: ["*.jar"])
27-
implementation 'com.android.support:appcompat-v7:28.0.0'
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
288
testImplementation 'junit:junit:4.12'
299
androidTestImplementation 'com.android.support.test:runner:1.0.2'
3010
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
11+
implementation libs["appcompat-v7"]
12+
}
3113

32-
}
14+
//apply from: 'bintray.gradle' /** gradle 3.5.0 <-> 5.4.1 使用 **/
15+
apply from: 'github_package_publish_usage.gradle'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply from: 'https://gist.githubusercontent.com/VeiZhang/aebbbd6d9d570dffac81eea80cdcda0a/raw/github_package_publish.gradle'
2+
3+
/**发布到GitHub Packages仓库**/
4+
def LIB_GROUP_ID = rootProject.groupId
5+
def LIB_ARTIFACT_ID = 'ffprobe-armv7a'
6+
def LIB_VERSION = rootProject.publishVersion
7+
def LIB_DESC = 'android执行FFprobe可执行文件-armv7a'
8+
def LIB_URL = rootProject.website
9+
10+
publishing {
11+
publications {
12+
maven(MavenPublication) {
13+
// Specify own groupId as package name of your library,
14+
// otherwise it would just use project's name (=name of the root directory) by default.
15+
groupId LIB_GROUP_ID
16+
17+
// Specify custom artifactId if needed,
18+
// otherwise it would use module's name by default.
19+
artifactId LIB_ARTIFACT_ID
20+
21+
// You can specify custom version,
22+
// otherwise it would use version from `android { defaultConfig { ... } }` by default.
23+
version = LIB_VERSION
24+
25+
pom {
26+
description = LIB_DESC
27+
url = LIB_URL
28+
}
29+
}
30+
}
31+
}

library/ffprobe/x86/build.gradle

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
1-
apply plugin: 'com.android.library'
1+
apply from: 'https://gist.githubusercontent.com/VeiZhang/f703697d56fe717c3433f4218f296b36/raw/library.gradle'
22

3-
android {
4-
compileSdkVersion 31
5-
buildToolsVersion "30.0.3"
6-
7-
defaultConfig {
8-
minSdkVersion 15
9-
targetSdkVersion 31
10-
versionCode 1
11-
versionName "1.0"
12-
13-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
14-
consumerProguardFiles "consumer-rules.pro"
15-
}
16-
17-
buildTypes {
18-
release {
19-
minifyEnabled false
20-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21-
}
22-
}
23-
}
3+
def libs = rootProject.ext.dependencies
244

255
dependencies {
26-
implementation fileTree(dir: "libs", include: ["*.jar"])
27-
implementation 'com.android.support:appcompat-v7:28.0.0'
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
288
testImplementation 'junit:junit:4.12'
299
androidTestImplementation 'com.android.support.test:runner:1.0.2'
3010
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
11+
implementation libs["appcompat-v7"]
12+
}
3113

32-
}
14+
//apply from: 'bintray.gradle' /** gradle 3.5.0 <-> 5.4.1 使用 **/
15+
apply from: 'github_package_publish_usage.gradle'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply from: 'https://gist.githubusercontent.com/VeiZhang/aebbbd6d9d570dffac81eea80cdcda0a/raw/github_package_publish.gradle'
2+
3+
/**发布到GitHub Packages仓库**/
4+
def LIB_GROUP_ID = rootProject.groupId
5+
def LIB_ARTIFACT_ID = 'ffprobe-x86'
6+
def LIB_VERSION = rootProject.publishVersion
7+
def LIB_DESC = 'android执行FFprobe可执行文件-x86'
8+
def LIB_URL = rootProject.website
9+
10+
publishing {
11+
publications {
12+
maven(MavenPublication) {
13+
// Specify own groupId as package name of your library,
14+
// otherwise it would just use project's name (=name of the root directory) by default.
15+
groupId LIB_GROUP_ID
16+
17+
// Specify custom artifactId if needed,
18+
// otherwise it would use module's name by default.
19+
artifactId LIB_ARTIFACT_ID
20+
21+
// You can specify custom version,
22+
// otherwise it would use version from `android { defaultConfig { ... } }` by default.
23+
version = LIB_VERSION
24+
25+
pom {
26+
description = LIB_DESC
27+
url = LIB_URL
28+
}
29+
}
30+
}
31+
}
Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
1-
apply plugin: 'com.android.library'
1+
apply from: 'https://gist.githubusercontent.com/VeiZhang/f703697d56fe717c3433f4218f296b36/raw/library.gradle'
22

3-
android {
4-
compileSdkVersion 31
5-
buildToolsVersion "30.0.3"
6-
7-
defaultConfig {
8-
minSdkVersion 15
9-
targetSdkVersion 31
10-
versionCode 1
11-
versionName "1.0"
12-
13-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
14-
consumerProguardFiles "consumer-rules.pro"
15-
}
16-
17-
buildTypes {
18-
release {
19-
minifyEnabled false
20-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21-
}
22-
}
23-
}
3+
def libs = rootProject.ext.dependencies
244

255
dependencies {
26-
implementation fileTree(dir: "libs", include: ["*.jar"])
27-
implementation 'com.android.support:appcompat-v7:28.0.0'
6+
implementation fileTree(dir: 'libs', include: ['*.jar'])
7+
288
testImplementation 'junit:junit:4.12'
299
androidTestImplementation 'com.android.support.test:runner:1.0.2'
3010
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
11+
implementation libs["appcompat-v7"]
12+
}
3113

32-
}
14+
//apply from: 'bintray.gradle' /** gradle 3.5.0 <-> 5.4.1 使用 **/
15+
apply from: 'github_package_publish_usage.gradle'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply from: 'https://gist.githubusercontent.com/VeiZhang/aebbbd6d9d570dffac81eea80cdcda0a/raw/github_package_publish.gradle'
2+
3+
/**发布到GitHub Packages仓库**/
4+
def LIB_GROUP_ID = rootProject.groupId
5+
def LIB_ARTIFACT_ID = 'ffprobe-x86_64'
6+
def LIB_VERSION = rootProject.publishVersion
7+
def LIB_DESC = 'android执行FFprobe可执行文件-x86_64'
8+
def LIB_URL = rootProject.website
9+
10+
publishing {
11+
publications {
12+
maven(MavenPublication) {
13+
// Specify own groupId as package name of your library,
14+
// otherwise it would just use project's name (=name of the root directory) by default.
15+
groupId LIB_GROUP_ID
16+
17+
// Specify custom artifactId if needed,
18+
// otherwise it would use module's name by default.
19+
artifactId LIB_ARTIFACT_ID
20+
21+
// You can specify custom version,
22+
// otherwise it would use version from `android { defaultConfig { ... } }` by default.
23+
version = LIB_VERSION
24+
25+
pom {
26+
description = LIB_DESC
27+
url = LIB_URL
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)