parent
d06e2cde69
commit
5e8ca9f4ae
@ -1,10 +1,3 @@ |
|||||||
# Add project specific ProGuard rules here. |
|
||||||
# You can control the set of applied configuration files using the |
|
||||||
# proguardFiles setting in build.gradle. |
|
||||||
# |
|
||||||
# For more details, see |
|
||||||
# http://developer.android.com/guide/developing/tools/proguard.html |
|
||||||
|
|
||||||
-keep class com.arthenica.ffmpegkit.FFmpegKitConfig { |
-keep class com.arthenica.ffmpegkit.FFmpegKitConfig { |
||||||
native <methods>; |
native <methods>; |
||||||
void log(long, int, byte[]); |
void log(long, int, byte[]); |
@ -1 +1,3 @@ |
|||||||
<manifest package="com.arthenica.ffmpegkit" /> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
||||||
|
</manifest> |
@ -1,5 +1,5 @@ |
|||||||
distributionBase=GRADLE_USER_HOME |
distributionBase=GRADLE_USER_HOME |
||||||
distributionPath=wrapper/dists |
distributionPath=wrapper/dists |
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip |
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip |
||||||
zipStoreBase=GRADLE_USER_HOME |
zipStoreBase=GRADLE_USER_HOME |
||||||
zipStorePath=wrapper/dists |
zipStorePath=wrapper/dists |
||||||
|
@ -0,0 +1,114 @@ |
|||||||
|
task sourcesJar(type: Jar) { |
||||||
|
archiveClassifier.set('sources') |
||||||
|
from android.sourceSets.main.java.srcDirs |
||||||
|
} |
||||||
|
|
||||||
|
task javadocJar(type: Jar, dependsOn: javadoc) { |
||||||
|
archiveClassifier.set('javadoc') |
||||||
|
from javadoc.destinationDir |
||||||
|
} |
||||||
|
|
||||||
|
artifacts { |
||||||
|
archives javadocJar |
||||||
|
archives sourcesJar |
||||||
|
} |
||||||
|
|
||||||
|
apply plugin: 'maven-publish' |
||||||
|
apply plugin: 'signing' |
||||||
|
|
||||||
|
group = 'com.arthenica' |
||||||
|
archivesBaseName = releaseProject |
||||||
|
version = releaseVersionName |
||||||
|
|
||||||
|
File propertiesFile = project.rootProject.file('local.properties') |
||||||
|
if (propertiesFile.exists()) { |
||||||
|
Properties properties = new Properties() |
||||||
|
properties.load(new FileInputStream(propertiesFile)) |
||||||
|
properties.each { name, value -> |
||||||
|
ext[name] = value |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
ext { |
||||||
|
publishedGroupId = group |
||||||
|
artifact = releaseProject |
||||||
|
libraryName = releaseProject |
||||||
|
libraryVersion = version |
||||||
|
libraryDescription = releaseProjectDescription |
||||||
|
|
||||||
|
siteUrl = 'https://github.com/tanersener/ffmpeg-kit' |
||||||
|
gitUrl = 'https://github.com/tanersener/ffmpeg-kit.git' |
||||||
|
|
||||||
|
developerId = 'tanersener' |
||||||
|
developerName = 'Taner Sener' |
||||||
|
developerEmail = 'tanersener@gmail.com' |
||||||
|
|
||||||
|
if (Project.hasProperty('releaseGPL')) { |
||||||
|
licenseName = 'GNU General Public License version 3' |
||||||
|
licenseUrl = 'https://www.gnu.org/licenses/gpl-3.0.txt' |
||||||
|
} else { |
||||||
|
licenseName = 'GNU Lesser General Public License, Version 3' |
||||||
|
licenseUrl = 'https://www.gnu.org/licenses/lgpl-3.0.txt' |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
afterEvaluate { |
||||||
|
publishing { |
||||||
|
publications { |
||||||
|
release(MavenPublication) { |
||||||
|
|
||||||
|
groupId group |
||||||
|
artifactId = libraryName |
||||||
|
version = version |
||||||
|
|
||||||
|
from components.release |
||||||
|
|
||||||
|
artifact sourcesJar |
||||||
|
artifact javadocJar |
||||||
|
|
||||||
|
pom { |
||||||
|
packaging 'aar' |
||||||
|
name = libraryName |
||||||
|
description = libraryDescription |
||||||
|
url = siteUrl |
||||||
|
|
||||||
|
licenses { |
||||||
|
license { |
||||||
|
name = licenseName |
||||||
|
url = licenseUrl |
||||||
|
} |
||||||
|
} |
||||||
|
developers { |
||||||
|
developer { |
||||||
|
id = developerId |
||||||
|
name = developerName |
||||||
|
email = developerEmail |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
scm { |
||||||
|
connection = gitUrl |
||||||
|
developerConnection = gitUrl |
||||||
|
url = siteUrl |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
repositories { |
||||||
|
maven { |
||||||
|
var releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" |
||||||
|
var snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" |
||||||
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl |
||||||
|
credentials { |
||||||
|
username ossrhUsername |
||||||
|
password ossrhPassword |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
signing { |
||||||
|
sign publishing.publications |
||||||
|
} |
@ -1,99 +0,0 @@ |
|||||||
task sourcesJar(type: Jar) { |
|
||||||
archiveClassifier.set('sources') |
|
||||||
from android.sourceSets.main.java.srcDirs |
|
||||||
} |
|
||||||
|
|
||||||
task javadocJar(type: Jar, dependsOn: javadoc) { |
|
||||||
archiveClassifier.set('javadoc') |
|
||||||
from javadoc.destinationDir |
|
||||||
} |
|
||||||
|
|
||||||
artifacts { |
|
||||||
archives javadocJar |
|
||||||
archives sourcesJar |
|
||||||
} |
|
||||||
|
|
||||||
apply plugin: 'maven' |
|
||||||
apply plugin: 'signing' |
|
||||||
|
|
||||||
group = 'com.arthenica' |
|
||||||
archivesBaseName = releaseProject |
|
||||||
version = releaseVersionName |
|
||||||
|
|
||||||
File propertiesFile = project.rootProject.file('local.properties') |
|
||||||
if (propertiesFile.exists()) { |
|
||||||
Properties properties = new Properties() |
|
||||||
properties.load(new FileInputStream(propertiesFile)) |
|
||||||
properties.each { name, value -> |
|
||||||
ext[name] = value |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
ext { |
|
||||||
publishedGroupId = group |
|
||||||
artifact = releaseProject |
|
||||||
libraryName = releaseProject |
|
||||||
libraryVersion = version |
|
||||||
libraryDescription = releaseProjectDescription |
|
||||||
|
|
||||||
siteUrl = 'https://github.com/tanersener/ffmpeg-kit' |
|
||||||
gitUrl = 'https://github.com/tanersener/ffmpeg-kit.git' |
|
||||||
|
|
||||||
developerId = 'tanersener' |
|
||||||
developerName = 'Taner Sener' |
|
||||||
developerEmail = 'tanersener@gmail.com' |
|
||||||
|
|
||||||
if (Project.hasProperty('releaseGPL')) { |
|
||||||
licenseName = 'GNU General Public License version 3' |
|
||||||
licenseUrl = 'https://www.gnu.org/licenses/gpl-3.0.txt' |
|
||||||
} else { |
|
||||||
licenseName = 'GNU Lesser General Public License, Version 3' |
|
||||||
licenseUrl = 'https://www.gnu.org/licenses/lgpl-3.0.txt' |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
uploadArchives { |
|
||||||
repositories { |
|
||||||
mavenDeployer { |
|
||||||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } |
|
||||||
|
|
||||||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { |
|
||||||
authentication(userName: ossrhUsername, password: ossrhPassword) |
|
||||||
} |
|
||||||
|
|
||||||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { |
|
||||||
authentication(userName: ossrhUsername, password: ossrhPassword) |
|
||||||
} |
|
||||||
|
|
||||||
pom.project { |
|
||||||
packaging 'aar' |
|
||||||
name = libraryName |
|
||||||
description = libraryDescription |
|
||||||
url = siteUrl |
|
||||||
|
|
||||||
licenses { |
|
||||||
license { |
|
||||||
name = licenseName |
|
||||||
url = licenseUrl |
|
||||||
} |
|
||||||
} |
|
||||||
developers { |
|
||||||
developer { |
|
||||||
id developerId |
|
||||||
name developerName |
|
||||||
email developerEmail |
|
||||||
} |
|
||||||
} |
|
||||||
scm { |
|
||||||
connection gitUrl |
|
||||||
developerConnection gitUrl |
|
||||||
url siteUrl |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
signing { |
|
||||||
sign configurations.archives |
|
||||||
} |
|
Loading…
Reference in new issue