diff --git a/bubbletab/build.gradle b/bubbletab/build.gradle index 60e8820..c1c656e 100644 --- a/bubbletab/build.gradle +++ b/bubbletab/build.gradle @@ -1,18 +1,55 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 26 - buildToolsVersion "26.0.2" + compileSdkVersion project.sdk + buildToolsVersion project.buildTools + defaultConfig { - minSdkVersion 15 - targetSdkVersion 26 + minSdkVersion project.minSdk + targetSdkVersion project.sdk versionCode 1 versionName "1.0" } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:26.1.0' -} \ No newline at end of file + compile 'com.android.support:appcompat-v7:'+project.supportVersion +} + +version = project.libraryVersion + +ext { + bintrayRepo = 'maven' + bintrayName = 'BubbleTab' + orgName = 'florent37' + + publishedGroupId = 'com.github.florent37' + libraryName = 'BubbleTab' + artifact = 'bubbletab' + + libraryDescription = 'BubbleTab' + + siteUrl = 'https://github.com/florent37/BubbleTab' + gitUrl = 'https://github.com/florent37/BubbleTab.git' + + libraryVersion = rootProject.ext.libraryVersion + + developerId = 'florent37' + developerName = 'Florent Champigny' + developerEmail = 'champigny.florent@gmail.com' + + licenseName = 'The Apache Software License, Version 2.0' + licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' + allLicenses = ["Apache-2.0"] +} + +apply from: rootProject.file('gradle/install-v1.gradle') +apply from: rootProject.file('gradle/bintray-android-v1.gradle') diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..1c1ea31 --- /dev/null +++ b/publish.sh @@ -0,0 +1 @@ +./gradlew clean :bubbletab:assembleDebug :bubbletab:install :bubbletab:bintrayUpload \ No newline at end of file