Skip to content

Commit

Permalink
rename lib module to aina-ptt, bump to v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Jones committed Nov 2, 2018
1 parent 5d81606 commit 365e885
Show file tree
Hide file tree
Showing 15 changed files with 170 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
168 changes: 168 additions & 0 deletions aina-ptt/build.gradle
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.
41 changes: 0 additions & 41 deletions ptt/build.gradle

This file was deleted.

2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':app', ':ptt'
include ':app', ':aina-ptt'

0 comments on commit 365e885

Please sign in to comment.