Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
florent champigny committed Mar 6, 2017
1 parent 0840e07 commit cb668fe
Show file tree
Hide file tree
Showing 68 changed files with 236 additions and 41 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -17,3 +19,11 @@ allprojects {
jcenter()
}
}

ext {
sdk = 25
buildTools = "24.0.2"
minSdk = 14
libraryVersion = "1.0.0"
supportVersion = "25.0.0"
}
File renamed without changes.
49 changes: 49 additions & 0 deletions depth/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion project.sdk
buildToolsVersion project.buildTools

defaultConfig {
minSdkVersion project.minSdk
targetSdkVersion project.sdk
versionCode 1
versionName "1.0"
}
}

dependencies {
compile 'com.android.support:appcompat-v7:'+ project.supportVersion
compile 'com.android.support:support-annotations:' + project.supportVersion
}



ext {
bintrayRepo = 'maven'
bintrayName = 'depth'
orgName = 'florent37'

publishedGroupId = 'com.github.florent37'
libraryName = 'Depth'
artifact = 'depth'

libraryDescription = ''

siteUrl = 'https://github.com/florent37/Depth'
gitUrl = 'https://github.com/florent37/Depth.git'

libraryVersion = rootProject.ext.libraryVersion

developerId = 'florent37'
developerName = 'florent37'
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')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
63 changes: 63 additions & 0 deletions gradle/bintray-android-v1.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
apply plugin: 'com.jfrog.bintray'

version = libraryVersion

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}

def _user = System.getenv("BINTRAY_USER")
def _key = System.getenv("BINTRAY_API_KEY")
def _passphrase = System.getenv("BINTRAY_PASSPHRASE")

if(project.rootProject.file('local.properties').exists() && (_user == null || _user.isEmpty())){
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

_user = properties.getProperty("bintray.user")
_key = properties.getProperty("bintray.apikey");
_passphrase = properties.getProperty("bintray.gpg.password")
}

// Bintray

bintray {
user = _user
key = _key

configurations = ['archives']
pkg {
repo = bintrayRepo
name = bintrayName
desc = libraryDescription
userOrg = orgName
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = allLicenses
publish = true
publicDownloadNumbers = true
version {
desc = libraryDescription
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = _passphrase
//Optional. The passphrase for GPG signing'
}
}
}
}
60 changes: 60 additions & 0 deletions gradle/bintray-java-v1.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apply plugin: 'com.jfrog.bintray'

version = libraryVersion

task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}

// Bintray

def _user = System.getenv("BINTRAY_USER")
def _key = System.getenv("BINTRAY_API_KEY")
def _passphrase = System.getenv("BINTRAY_PASSPHRASE")

if(project.rootProject.file('local.properties').exists() && (_user == null || _user.isEmpty())){
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

_user = properties.getProperty("bintray.user")
_key = properties.getProperty("bintray.apikey");
_passphrase = properties.getProperty("bintray.gpg.password")
}

bintray {
user = _user
key = _key

configurations = ['archives']
pkg {
repo = bintrayRepo
name = bintrayName
desc = libraryDescription
userOrg = orgName
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ['Apache-2.0']
publish = true
publicDownloadNumbers = true
version {
desc = libraryDescription
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = _passphrase
//Optional. The passphrase for GPG signing'
}
}
}
}

//from https://github.com/workarounds/bundler/blob/master/gradle/bintray-java-v1.gradle
44 changes: 44 additions & 0 deletions gradle/install-v1.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apply plugin: 'com.github.dcendents.android-maven'

group = publishedGroupId // Maven Group ID for the artifact

install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'aar'
groupId publishedGroupId
artifactId artifact

// Add your description here
name libraryName
description libraryDescription
url siteUrl

// Set your license
licenses {
license {
name licenseName
url licenseUrl
}
}
developers {
developer {
id developerId
name developerName
email developerEmail
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl

}
}
}
}
}

//from https://github.com/workarounds/bundler/blob/master/gradle/install-v1.gradle
24 changes: 0 additions & 24 deletions lib/build.gradle

This file was deleted.

2 changes: 1 addition & 1 deletion original_lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ dependencies {
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:support-annotations:25.2.0'

compile project(":lib")
compile project(':depth')
}
23 changes: 8 additions & 15 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
compileSdkVersion project.sdk
buildToolsVersion project.buildTools

defaultConfig {
minSdkVersion project.minSdk
targetSdkVersion project.sdk
applicationId "com.gihub.florent37.depth.sample"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

lintOptions {
abortOnError false
Expand All @@ -25,11 +19,10 @@ android {

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:cardview-v7:25.2.0'
compile 'com.android.support:design:25.2.0'
compile project(':lib')
compile 'com.android.support:cardview-v7:'+ project.supportVersion
compile 'com.android.support:design:'+ project.supportVersion
compile project(':depth')
compile 'com.jakewharton:butterknife:7.0.1'

compile 'com.github.florent37:awesomebar:1.0.2'

}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':original_app', ':original_app_modified', ':lib',':original_lib', ':sample'
include ':depth', ':sample' //,':original_app', ':original_app_modified',':original_lib'

0 comments on commit cb668fe

Please sign in to comment.