-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename lib module to aina-ptt, bump to v0.0.2
- Loading branch information
Jeff Jones
committed
Nov 2, 2018
1 parent
5d81606
commit 365e885
Showing
15 changed files
with
170 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,168 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' | ||
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.17" | ||
} | ||
} | ||
|
||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android-extensions' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'org.jetbrains.dokka-android' | ||
|
||
ext { | ||
bintrayRepo = 'maven' | ||
bintrayName = 'aina-android' | ||
publishedGroupId = 'com.masterjefferson' | ||
libraryName = 'aina-android' | ||
artifact = 'aina-ptt' | ||
|
||
libraryDescription = 'An Android framework for Aina PTT accessories, written in Kotlin.' | ||
|
||
siteUrl = 'https://github.com/masterjefferson/aina-android' | ||
gitUrl = 'https://github.com/masterjefferson/aina-android.git' | ||
|
||
libraryVersion = '0.0.2' | ||
|
||
developerId = 'masterjefferson' | ||
developerName = 'Jefferson Jones' | ||
developerEmail = 'jeff@beartooth.com' | ||
|
||
licenseName = 'The Apache Software License, Version 2.0' | ||
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
allLicenses = ["Apache-2.0"] | ||
|
||
} | ||
|
||
|
||
android { | ||
compileSdkVersion 28 | ||
|
||
defaultConfig { | ||
minSdkVersion 24 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
implementation "io.reactivex.rxjava2:rxjava:2.2.0" | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
} | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
group = publishedGroupId | ||
version = libraryVersion | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom.project { | ||
packaging 'aar' | ||
groupId publishedGroupId | ||
artifactId artifact | ||
|
||
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 | ||
} | ||
} | ||
} | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) { | ||
outputFormat = 'javadoc' | ||
outputDirectory = "$buildDir/javadoc" | ||
|
||
includeNonPublic = false | ||
reportUndocumented = true | ||
|
||
packageOptions { | ||
prefix = "android" | ||
suppress = true | ||
} | ||
} | ||
|
||
task dokkaJar(type: Jar, dependsOn: dokkaJavadoc) { | ||
classifier = 'javadoc' | ||
from dokkaJavadoc.outputDirectory | ||
} | ||
|
||
artifacts { | ||
archives dokkaJar | ||
archives sourcesJar | ||
} | ||
|
||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
|
||
bintray { | ||
user = properties.getProperty("bintray.user") | ||
key = properties.getProperty("bintray.apikey") | ||
|
||
configurations = ['archives'] | ||
pkg { | ||
repo = bintrayRepo | ||
name = bintrayName | ||
desc = libraryDescription | ||
websiteUrl = siteUrl | ||
vcsUrl = gitUrl | ||
licenses = allLicenses | ||
dryRun = false | ||
publish = true | ||
override = false | ||
publicDownloadNumbers = true | ||
version { | ||
desc = libraryDescription | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1 +1 @@ | ||
include ':app', ':ptt' | ||
include ':app', ':aina-ptt' |