Skip to content

Commit 9a7247a

Browse files
committed
🛠️⏫️ chore: update android build for Maven Central publishing
Added Maven publishing plugins and configuration for Android library, updated Gradle and Android Gradle Plugin versions, and parameterized build settings via gradle.properties. Updated .gitignore and README to reflect Android-only focus and Maven usage instructions.
1 parent 4d20750 commit 9a7247a

6 files changed

Lines changed: 141 additions & 84 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/prebuilt/
44
.DS_Store
55
.idea
6+
android/secring.gpg

README.md

Lines changed: 87 additions & 63 deletions
Large diffs are not rendered by default.

android/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ buildscript {
44
mavenCentral()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:8.1.0'
7+
classpath 'com.android.tools.build:gradle:8.7.3'
88
}
99
}
10-
10+
plugins {
11+
id 'com.vanniktech.maven.publish' version '0.34.0' apply false
12+
id("com.gradleup.nmcp") version "0.0.7" apply false
13+
}
1114
allprojects {
1215
repositories {
1316
google()

android/ffmpeg-kit-android-lib/build.gradle

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
apply plugin: 'com.android.library'
1+
plugins {
2+
id 'com.android.library'
3+
id 'com.vanniktech.maven.publish'
4+
id 'com.gradleup.nmcp'
5+
}
26

37
android {
4-
if (project.android.hasProperty("namespace")) {
5-
namespace 'com.arthenica.ffmpegkit'
6-
}
7-
compileSdk 35
8+
namespace 'com.moizhassan.ffmpeg.ffmpegkit'
9+
10+
compileSdk COMPILE_SDK_VERSION as int
811
ndkVersion "22.1.7171670"
912

1013
defaultConfig {
11-
minSdk 24
12-
targetSdk 35
13-
versionCode 240600
14-
versionName "6.0"
15-
project.archivesBaseName = "ffmpeg-kit"
14+
minSdk MIN_SDK_VERSION as int
15+
targetSdk TARGET_SDK_VERSION as int
16+
versionCode VERSION_NUMBER as int
17+
versionName VERSION_NAME as String
18+
project.archivesBaseName = "ffmpegkit"
1619
consumerProguardFiles "consumer-rules.pro"
1720
}
1821

@@ -40,14 +43,6 @@ android {
4043
systemProperty 'enable.ffmpeg.kit.test.mode', 'true'
4144
}
4245
}
43-
44-
45-
publishing {
46-
singleVariant('release') {
47-
withJavadocJar()
48-
withSourcesJar()
49-
}
50-
}
5146
}
5247

5348
task javadoc(type: Javadoc) {

android/gradle.properties

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,36 @@ org.gradle.jvmargs=-Xmx1536m
1717
# This option should only be used with decoupled projects. More details, visit
1818
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1919
# org.gradle.parallel=true
20+
21+
mavenCentralPublishing=true
22+
signAllPublications=true
23+
24+
COMPILE_SDK_VERSION=35
25+
GROUP=com.moizhassan.ffmpeg
26+
POM_ARTIFACT_ID=ffmpeg-kit-16kb
27+
MIN_SDK_VERSION=24
28+
TARGET_SDK_VERSION=35
29+
30+
POM_NAME=FFMPEG Android 16KB
31+
POM_PACKAGING=aar
32+
POM_DESCRIPTION=FFmpeg Kit for Android (Maven Package for https://github.com/arthenica/ffmpeg-kit).
33+
POM_INCEPTION_YEAR=2025
34+
POM_URL=https://github.com/moizhassankh/ffmpeg-kit-android-16KB
35+
36+
POM_LICENSE_NAME=GNU LESSER GENERAL PUBLIC LICENSE Version 3
37+
POM_LICENSE_URL=https://www.gnu.org/licenses/lgpl-3.0.txt
38+
POM_LICENSE_DIST=repo
39+
40+
POM_SCM_URL=https://github.com/moizhassankh/ffmpeg-kit-android-16KB
41+
POM_SCM_CONNECTION=scm:git@github.com:moizhassankh/ffmpeg-kit-android-16KB.git
42+
POM_SCM_DEV_CONNECTION=scm:git@github.com:moizhassankh/ffmpeg-kit-android-16KB.git
43+
44+
POM_DEVELOPER_ID=moizhassankh
45+
POM_DEVELOPER_NAME=Moiz Hassan Khan
46+
POM_DEVELOPER_URL=https://github.com/moizhassankh
47+
48+
VERSION_MAJOR=6
49+
VERSION_MINOR=0
50+
VERSION_PATCH=0
51+
VERSION_NAME=6.0.0
52+
VERSION_NUMBER=240600
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Sun Aug 10 01:49:52 CEST 2025
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)