-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rcketscientist/bintray
Bintray and fixes
- Loading branch information
Showing
6 changed files
with
153 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Mon Dec 28 10:00:20 PST 2015 | ||
#Tue Jan 31 10:30:16 CET 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip |
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,25 @@ | ||
apply plugin: 'com.novoda.bintray-release' | ||
|
||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.novoda:bintray-release:0.4.0' | ||
} | ||
} | ||
|
||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
|
||
publish { | ||
groupId = 'com.anthonymandra' | ||
artifactId = 'ToggleButtons' | ||
licences = ['MIT'] | ||
publishVersion = libraryVersion | ||
desc = 'Android toggle buttons that adhere to the Material Design documentation.' | ||
website = 'https://github.com/rcketscientist/ToggleButtons' | ||
dryRun = false; | ||
bintrayUser = properties.getProperty('bintray.user') | ||
bintrayKey = properties.getProperty('bintray.apikey') | ||
} |
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,18 +1,37 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
ext { | ||
versionMajor = 1 | ||
versionMinor = 1 | ||
versionPatch = 0 | ||
|
||
libraryCode = versionMajor * 1000000 + versionMinor * 1000 + versionPatch | ||
libraryVersion = "${versionMajor}.${versionMinor}.${versionPatch}" | ||
} | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion "25.0.2" | ||
|
||
defaultConfig { | ||
minSdkVersion 21 | ||
targetSdkVersion 25 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
versionCode libraryCode | ||
versionName libraryVersion | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile 'com.android.support:appcompat-v7:25.1.0' | ||
compile 'com.android.support:cardview-v7:25.1.0' | ||
compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" | ||
compile "com.android.support:cardview-v7:${rootProject.ext.supportLibVersion}" | ||
} | ||
|
||
apply from: 'bintray.gradle' |
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.