-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
415 additions
and
644 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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,14 +2,12 @@ apply plugin: 'com.android.library' | |
apply plugin: 'kotlin-android' | ||
apply plugin: 'kotlin-android-extensions' | ||
|
||
|
||
android { | ||
compileSdkVersion 29 | ||
|
||
compileSdkVersion 30 | ||
|
||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 29 | ||
targetSdkVersion 30 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
|
@@ -29,70 +27,20 @@ android { | |
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation 'androidx.appcompat:appcompat:1.2.0' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'androidx.test:runner:1.3.0' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' | ||
implementation "androidx.core:core-ktx:1.3.2" | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.4.21" | ||
implementation 'androidx.appcompat:appcompat:1.3.1' | ||
testImplementation 'junit:junit:4.13.2' | ||
androidTestImplementation 'androidx.test:runner:1.4.0' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' | ||
implementation "androidx.core:core-ktx:1.6.0" | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.5.10" | ||
|
||
} | ||
|
||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
// PUBLISH | ||
|
||
def artifact = new Properties() | ||
artifact.load(new FileInputStream("deploy.settings")) | ||
|
||
version=artifact.version | ||
group=artifact.groupId | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom.project { | ||
packaging 'aar' | ||
groupId artifact.groupId | ||
artifactId artifact.id | ||
version artifact.version | ||
name artifact.id // pom.project.name must be same as bintray.pkg.name | ||
url artifact.siteUrl | ||
inceptionYear '2020' // HARDCODED | ||
licenses { | ||
license { // HARDCODED | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
scm { | ||
connection artifact.gitUrl | ||
developerConnection artifact.gitUrl | ||
url artifact.siteUrl | ||
} | ||
} | ||
} | ||
} | ||
|
||
def properties = new Properties() | ||
properties.load(new FileInputStream("local.properties")) | ||
|
||
bintray { | ||
user = properties.getProperty("bintray.user") | ||
key = properties.getProperty("bintray.apikey") | ||
|
||
configurations = ['archives'] | ||
pkg { | ||
repo = "Aghajari" | ||
name = artifact.id | ||
websiteUrl = artifact.siteUrl | ||
vcsUrl = artifact.gitUrl | ||
licenses = artifact.licenses | ||
publish = true | ||
version { | ||
name = artifact.version | ||
} | ||
} | ||
} | ||
apply plugin: 'maven' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
|
@@ -107,16 +55,72 @@ task javadoc(type: Javadoc) { | |
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
// options.encoding = 'UTF-8' | ||
//./gradlew javadocJar --stacktrace | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
repositories { | ||
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } | ||
mavenCentral() | ||
|
||
signing { | ||
useInMemoryPgpKeys( | ||
rootProject.ext["signing.keyId"], | ||
rootProject.ext["signing.key"], | ||
rootProject.ext["signing.password"], | ||
) | ||
sign publishing.publications | ||
} | ||
|
||
tasks.withType(Javadoc) { | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
options.addStringOption('encoding', 'UTF-8') | ||
options.addStringOption('charSet', 'UTF-8') | ||
} | ||
|
||
def artifact = new Properties() | ||
artifact.load(new FileInputStream(rootProject.rootDir.getAbsolutePath() + "/deploy.settings")) | ||
|
||
version = artifact.version | ||
group = artifact.groupId | ||
archivesBaseName = artifact.id | ||
|
||
afterEvaluate { | ||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
groupId artifact.groupId | ||
artifactId artifact.id | ||
version artifact.version | ||
from components.release | ||
|
||
pom { | ||
name = artifact.id | ||
packaging = 'aar' | ||
description = 'ZoomHelper will make any view to be zoomable just like Instagram pinch-to-zoom' | ||
url = artifact.siteUrl | ||
|
||
scm { | ||
connection = artifact.gitUrl | ||
developerConnection = artifact.gitUrl | ||
url = artifact.siteUrl | ||
} | ||
|
||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = 'Aghajari' | ||
name = 'AmirHossein Aghajari' | ||
email = '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Oops, something went wrong.