-
Notifications
You must be signed in to change notification settings - Fork 162
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
Showing
4 changed files
with
38 additions
and
150 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
jdk: | ||
- openjdk11 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'maven-publish' | ||
|
||
def versionMajor = 4 | ||
def versionMinor = 1 | ||
def versionPatch = 2 | ||
def versionPatch = 4 | ||
def myVersionCode = versionMajor * 10000 + versionMinor * 100 + versionPatch | ||
def myVersionName = "${versionMajor}.${versionMinor}.${versionPatch}" | ||
|
||
|
@@ -14,6 +15,13 @@ android { | |
targetSdkVersion project.ext.globalTargetSdkVersion | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
testOptions.unitTests.includeAndroidResources = true | ||
} | ||
|
||
|
@@ -37,23 +45,6 @@ dependencies { | |
testImplementation 'org.robolectric:robolectric:4.3.1' | ||
} | ||
|
||
/** | ||
* JAR | ||
*/ | ||
task clearJar(type: Delete) { | ||
delete fileTree(dir: "jar", exclude: "dont_delete.txt") | ||
} | ||
|
||
task makeJar(type: Copy) { | ||
from('build/intermediates/bundles/release/') | ||
into('jar/') | ||
include('classes.jar') | ||
def fileName = 'MatomoAndroidSdk-' + 'git rev-parse --short HEAD'.execute().text.trim() + '.jar' | ||
rename('classes.jar', fileName) | ||
} | ||
|
||
makeJar.dependsOn(clearJar, build) | ||
|
||
/** | ||
* Coverage | ||
*/ | ||
|
@@ -91,37 +82,29 @@ android.libraryVariants.all { variant -> | |
} | ||
} | ||
|
||
def credentialsFile = new File(System.properties['user.home'], ".bintray/bintray.properties") | ||
ext { | ||
if (credentialsFile.canRead()) { | ||
Properties props = new Properties() | ||
props.load(new FileInputStream(credentialsFile)) | ||
bintrayUser = props['bintray.user'] | ||
bintrayApiKey = props['bintray.apikey'] | ||
afterEvaluate { | ||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
from components.release | ||
|
||
groupId = 'org.matomo.sdk' | ||
artifactId = 'tracker' | ||
version = myVersionName | ||
|
||
pom { | ||
name = 'Matomo SDK for Android' | ||
description = 'SDK for Android to measure your apps with Matomo' | ||
url = 'https://github.com/matomo-org/matomo-sdk-android' | ||
|
||
licenses { | ||
license { | ||
name = 'BSD-3 Clause' | ||
url = 'https://github.com/matomo-org/matomo-sdk-android/blob/master/LICENSE' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintrayRepo = 'maven' | ||
bintrayName = 'matomo-sdk-android' | ||
|
||
publishedGroupId = 'org.matomo.sdk' | ||
libraryName = 'Matomo SDK for Android' | ||
artifact = 'tracker' | ||
|
||
libraryDescription = 'SDK for Android to measure your apps with Matomo' | ||
|
||
siteUrl = 'https://github.com/matomo-org/matomo-sdk-android' | ||
gitUrl = 'https://github.com/matomo-org/matomo-sdk-android.git' | ||
|
||
libraryVersion = myVersionName | ||
|
||
developerId = 'darken' | ||
developerName = 'Matthias Urhahn' | ||
developerEmail = '[email protected]' | ||
|
||
licenseName = 'BSD-3 Clause' | ||
licenseUrl = 'https://github.com/matomo-org/matomo-sdk-android/blob/master/LICENSE' | ||
allLicenses = ["BSD 3-Clause"] | ||
} | ||
if (credentialsFile.canRead()) { | ||
apply from: '../publish-to-bintray.gradle' | ||
} | ||
} |