This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
florent champigny
committed
Mar 6, 2017
1 parent
0840e07
commit cb668fe
Showing
68 changed files
with
236 additions
and
41 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
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,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.
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.
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.
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.
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.
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
File renamed without changes
File renamed without changes.
File renamed without changes.
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,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' | ||
} | ||
} | ||
} | ||
} |
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,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 |
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,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 |
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
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 +1 @@ | ||
include ':original_app', ':original_app_modified', ':lib',':original_lib', ':sample' | ||
include ':depth', ':sample' //,':original_app', ':original_app_modified',':original_lib' |