-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support of Android 11 (API Level 30)
- Loading branch information
1 parent
1f51e60
commit 17bc686
Showing
8 changed files
with
143 additions
and
110 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
Binary file not shown.
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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 |
---|---|---|
|
@@ -17,26 +17,59 @@ | |
group = 'com.kirich1409' | ||
version = rootProject.ext.strictModeCompatKotlinVersionName | ||
|
||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'maven-publish' | ||
|
||
def siteUrl = 'https://github.com/kirich1409/StrictModeCompat' | ||
def gitRepoUrl = 'https://github.com/kirich1409/StrictModeCompat.git' | ||
|
||
def sourcesJar = tasks.register("sourcesJar", Jar) { | ||
tasks.register("sourcesJar", Jar) { | ||
archiveClassifier.set('sources') | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
afterEvaluate { | ||
publishing { | ||
publications { | ||
releaseAar(MavenPublication) { | ||
from components.release | ||
artifact sourcesJar | ||
|
||
groupId = 'com.kirich1409' | ||
artifactId = 'strict-mode-compat-kotlin' | ||
version = rootProject.ext.versionName | ||
|
||
pom { | ||
name = 'Strict Mode Compat Kotlin Extensions' | ||
description = 'Android Strict Mode Compat on Kotlin' | ||
url = siteUrl | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'kirich1409' | ||
name = 'Kirill Rozov' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
url = gitRepoUrl | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user = project.hasProperty('user') ? project.property('user') : System.getenv('BINTRAY_USER') | ||
key = project.hasProperty('apiKey') ? project.property('apiKey') : System.getenv('BINTRAY_API_KEY') | ||
|
||
configurations = ['archives'] | ||
publications = ["releaseAar"] | ||
|
||
pkg { | ||
repo = 'maven' | ||
|
@@ -60,33 +93,3 @@ bintray { | |
} | ||
} | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom { | ||
project { | ||
packaging 'aar' | ||
name 'Kotlin Android Strict Mode Compat' | ||
url siteUrl | ||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id 'kirich1409' | ||
name 'Kirill Rozov' | ||
email '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection gitRepoUrl | ||
developerConnection gitRepoUrl | ||
url siteUrl | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.