Skip to content

Commit 16d1bd4

Browse files
author
KokorevJ
committed
update SdkVersion
1 parent bfc5fe4 commit 16d1bd4

7 files changed

Lines changed: 94 additions & 174 deletions

File tree

build.gradle

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
3-
buildscript {
4-
repositories {
5-
jcenter()
6-
}
7-
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.5.0'
9-
//classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
10-
//classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
11-
}
2+
plugins {
3+
id "com.android.application" version "8.12.2" apply false
4+
id "com.android.library" version "8.12.2" apply false
5+
id "org.jetbrains.kotlin.android" version "2.2.10" apply false
126
}
137

148
allprojects {
159
repositories {
16-
jcenter()
10+
google()
11+
mavenCentral()
1712
}
1813
}

gradle/gradle-maven.gradle

Lines changed: 49 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,63 @@
1-
apply plugin: 'maven'
2-
apply plugin: 'signing'
3-
4-
uploadArchives {
5-
repositories {
6-
mavenDeployer {
7-
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
8-
authentication(userName: System.getenv("OSSRH_USERNAME"), password: System.getenv("OSSRH_PASSWORD"))
9-
}
1+
apply plugin: "maven-publish"
2+
apply plugin: "signing"
3+
4+
afterEvaluate {
5+
def releaseComponent = components.findByName("release") ?: components.findByName("debug")
6+
if (releaseComponent == null) {
7+
throw new GradleException("No component found to publish! Make sure this is an Android Library module with a release build type.")
8+
}
109

11-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
10+
publishing {
11+
publications {
12+
release(MavenPublication) {
13+
from releaseComponent
1214

13-
pom.project {
14-
name 'OpusLib'
15-
description 'Re-publishing of OpusLib with no additional functionality.'
16-
url 'https://github.com/simla-tech/opus_android'
15+
groupId = "top.oply"
16+
artifactId = "opuslib"
17+
version = "1.0.0"
1718

18-
licenses {
19-
license {
20-
name 'The Apache License, Version 2.0'
21-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
22-
distribution 'repo'
19+
pom {
20+
name.set("OpusLib")
21+
description.set("Re-publishing of OpusLib with no additional functionality.")
22+
url.set("https://github.com/simla-tech/opus_android")
23+
24+
licenses {
25+
license {
26+
name.set("The Apache License, Version 2.0")
27+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
28+
distribution.set("repo")
29+
}
2330
}
24-
}
2531

26-
developers {
27-
developer {
28-
id 'SimlaTech'
29-
name 'Simla Mobile Dev Team'
30-
email System.getenv("SIMLA_TECH_EMAIL")
32+
developers {
33+
developer {
34+
id.set("SimlaTech")
35+
name.set("Simla Mobile Dev Team")
36+
email.set(System.getenv("SIMLA_TECH_EMAIL"))
37+
}
38+
}
39+
40+
scm {
41+
url.set("https://github.com/simla-tech/opus_android")
42+
connection.set("scm:git:git://github.com/simla-tech/opus_android.git")
43+
developerConnection.set("scm:git:ssh://github.com/simla-tech/opus_android.git")
3144
}
3245
}
46+
}
47+
}
3348

34-
scm {
35-
url 'https://github.com/simla-tech/opus_android'
36-
connection 'scm:git:git://github.com/simla-tech/opus_android.git'
37-
developerConnection 'scm:git:ssh://github.com/simla-tech/opus_android.git'
49+
repositories {
50+
maven {
51+
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
52+
credentials {
53+
username = System.getenv("OSSRH_USERNAME")
54+
password = System.getenv("OSSRH_PASSWORD")
3855
}
3956
}
4057
}
4158
}
42-
}
4359

44-
// Configure signing for all artifacts in 'archives' configuration
45-
signing {
46-
required { gradle.taskGraph.hasTask("uploadArchives") }
47-
sign configurations.archives
60+
signing {
61+
sign publishing.publications.release
62+
}
4863
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Apr 10 15:27:10 PDT 2013
1+
#Thu Sep 04 09:32:24 MSK 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip

oplayer/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
5-
compileSdkVersion 22
6-
buildToolsVersion "22.0.1"
4+
compileSdkVersion = 36
5+
buildToolsVersion "28.0.3"
76
defaultConfig {
87
applicationId "top.oply.oplayer"
98
minSdkVersion 15
10-
targetSdkVersion 22
9+
targetSdkVersion 36
1110
versionCode 2
1211
versionName '1.1'
1312
}

opuslib/build.gradle

Lines changed: 24 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,18 @@
1-
//import org.apache.tools.ant.taskdefs.condition.Os
2-
import org.gradle.plugins.signing.Sign
3-
apply plugin: 'com.android.library'
4-
//apply plugin: 'com.github.dcendents.android-maven'
5-
//apply plugin: 'com.jfrog.bintray'
1+
plugins {
2+
id 'com.android.library'
3+
id 'kotlin-android'
4+
}
65

7-
group = 'com.simla.android.opuslib'
8-
version = "1.0.3"
6+
apply from: "$rootDir/gradle/gradle-maven.gradle"
97

108
android {
11-
compileSdkVersion 22
12-
buildToolsVersion "22.0.1"
13-
resourcePrefix "ly__"
9+
namespace = "top.oply.opuslib"
10+
compileSdk = 36
1411

1512
defaultConfig {
16-
minSdkVersion 4
17-
targetSdkVersion 22
18-
versionCode 1
19-
versionName "1.0"
20-
}
21-
sourceSets.main {
22-
jni.srcDirs = [] // This prevents the auto generation of Android.mk
23-
jniLibs.srcDir 'src/main/libs' // This is not necessary unless you have precompiled libraries in your project.
24-
}
25-
26-
task ndkBuild(type: Exec) {
27-
//if (Os.isFamily(Os.FAMILY_WINDOWS)) {
28-
commandLine 'ndk-build.cmd', '-C', file('src/main/jni').absolutePath
29-
//} else {
30-
// commandLine 'ndk-build', '-C', file('src/main/jni').absolutePath
31-
//}
32-
}
33-
34-
tasks.withType(JavaCompile) {
35-
compileTask -> compileTask.dependsOn ndkBuild
13+
minSdk = 15
14+
targetSdkVersion 36
15+
version = "1.0.4"
3616
}
3717

3818
buildTypes {
@@ -50,93 +30,17 @@ android {
5030
}
5131

5232
dependencies {
53-
compile fileTree(include: ['*.jar'], dir: 'libs')
54-
}
55-
56-
/*
57-
def siteUrl = 'https://github.com/louisyonge/opus_android' // Project url
58-
def gitUrl = 'https://github.com/louisyonge/opus_android.git' // Git url
59-
group = "top.oply.opuslib" // Maven Group ID for the artifact,usually it's package name.
60-
install {
61-
repositories.mavenInstaller {
62-
// This generates POM.xml with proper parameters
63-
pom {
64-
project {
65-
packaging 'aar'
66-
// Add your description here
67-
name 'Opus library for Android' //Project description
68-
url siteUrl
69-
// Set your license
70-
licenses {
71-
license {
72-
name 'The Apache Software License, Version 2.0'
73-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
74-
}
75-
}
76-
developers {
77-
developer {
78-
id 'louis' //Some basic information
79-
name 'Louis'
80-
email 'ly.louisyoung@gmail.com'
81-
}
82-
}
83-
scm {
84-
connection gitUrl
85-
developerConnection gitUrl
86-
url siteUrl
87-
}
88-
}
89-
}
90-
}
91-
}
92-
// */
93-
94-
task sourcesJar(type: Jar) {
95-
from android.sourceSets.main.java.srcDirs
96-
classifier = 'sources'
97-
}
98-
task javadoc(type: Javadoc) {
99-
source = android.sourceSets.main.java.srcDirs
100-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
101-
}
102-
task javadocJar(type: Jar, dependsOn: javadoc) {
103-
classifier = 'javadoc'
104-
from javadoc.destinationDir
105-
}
106-
artifacts {
107-
archives javadocJar
108-
archives sourcesJar
109-
}
110-
111-
/*
112-
Properties properties = new Properties()
113-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
114-
bintray {
115-
user = properties.getProperty("bintray.user")
116-
key = properties.getProperty("bintray.apikey")
117-
configurations = ['archives']
118-
pkg {
119-
repo = "maven"
120-
name = "opus_andorid" //Name appeared on JCenter
121-
websiteUrl = siteUrl
122-
vcsUrl = gitUrl
123-
licenses = ["Apache-2.0"]
124-
publish = true
125-
}
126-
}
127-
// */
128-
129-
apply from: rootProject.file('gradle/gradle-maven.gradle')
130-
131-
gradle.taskGraph.whenReady { taskGraph ->
132-
if (taskGraph.allTasks.any { it instanceof Sign }) {
133-
134-
def id = "INSERT KEY ID HERE"
135-
def file = project.file('INSERT RELATIVE PATH TO GPG FILE HERE').absolutePath
136-
def password = "INSERT KEY PASSWORD HERE"
137-
138-
allprojects { ext."signing.keyId" = id }
139-
allprojects { ext."signing.secretKeyRingFile" = file }
140-
allprojects { ext."signing.password" = password }
141-
}
142-
}
33+
implementation fileTree(dir: "libs", include: ["*.jar"])
34+
}
35+
36+
//gradle.taskGraph.whenReady { taskGraph ->
37+
// if (taskGraph.allTasks.any { it.name.startsWith("sign") }) {
38+
// def keyId = "INSERT KEY ID HERE"
39+
// def secretKeyFile = file("INSERT RELATIVE PATH TO GPG FILE HERE").absolutePath
40+
// def keyPassword = "INSERT KEY PASSWORD HERE"
41+
//
42+
// ext["signing.keyId"] = keyId
43+
// ext["signing.secretKeyRingFile"] = secretKeyFile
44+
// ext["signing.password"] = keyPassword
45+
// }
46+
//}

sample1/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 22
5-
buildToolsVersion "22.0.1"
4+
compileSdkVersion = 36
5+
buildToolsVersion "28.0.3"
66

77
defaultConfig {
88
applicationId "top.oply.opusplayer"
99
minSdkVersion 15
10-
targetSdkVersion 22
10+
targetSdkVersion 36
1111
versionCode 1
1212
versionName "1.0"
1313
}

settings.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
google()
5+
}
6+
}
7+
18
include ':opuslib'

0 commit comments

Comments
 (0)