Skip to content

Commit

Permalink
release/v2.0.1 (#20)
Browse files Browse the repository at this point in the history
Resolve caching issue when campaigns are paused.
  • Loading branch information
hporter authored May 10, 2021
1 parent 3aee7d5 commit 56b3f1f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 28 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Installation of the QubitSDK, to provide event tracking and lookup. To make use

| VERSION | UPDATES |
|---|---|
| 2.0.1 | Resolve caching issue when campaigns are paused.
| 2.0.0 | Major release, bringing support for Placement API. Upgrade to 2.* to use this feature.
| 1.4.1 | Handle potential regression where /experiences endpoint does not return expected payload.
| 1.4.0 | Production release for A/B testing & data collection.
Expand All @@ -19,7 +20,7 @@ In `build.gradle` of your Android application module (usually *$projectRoot/app/

```
dependencies {
compile 'com.qubit:qubit-sdk-android:2.0.0'
compile 'com.qubit:qubit-sdk-android:2.0.1'
}
```

Expand Down
42 changes: 42 additions & 0 deletions publish-mavencentral.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'

ext["signing.keyId"] = ''
ext["signing.password"] = ''
ext["signing.secretKeyRingFile"] = ''
ext["ossrhUsername"] = ''
ext["ossrhPassword"] = ''

File secretPropsFile = project.rootProject.file('local.properties')
if (secretPropsFile.exists()) {
Properties p = new Properties()
new FileInputStream(secretPropsFile).withCloseable { is ->
p.load(is)
}
p.each { name, value ->
ext[name] = value
}
} else {
ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID')
ext["signing.password"] = System.getenv('SIGNING_PASSWORD')
ext["signing.secretKeyRingFile"] = System.getenv('SIGNING_SECRET_KEY_RING_FILE')
ext["ossrhUsername"] = System.getenv('OSSRH_USERNAME')
ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD')
}

publishing {
repositories {
maven {
name = "sonatype"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
}

signing {
sign publishing.publications
}
3 changes: 2 additions & 1 deletion qubit-sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

version = '2.0.0'
version = '2.0.1'

ext.retrofit_version = '2.4.0'

Expand Down Expand Up @@ -40,3 +40,4 @@ dependencies {
apply from: "$rootProject.projectDir/checkstyle-config.gradle"
apply from: "javadoc-config.gradle"
apply from: "publishing-config.gradle"
apply from: "${rootProject.projectDir}/publish-mavencentral.gradle"
26 changes: 0 additions & 26 deletions qubit-sdk/publishing-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,29 +67,3 @@ publishing {
}
}
}

// Bintray
apply plugin: 'com.jfrog.bintray'
bintray {
user = project.hasProperty('bintray.user') ? project.property('bintray.user') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintray.apiKey') ? project.property('bintray.apiKey') : System.getenv('BINTRAY_API_KEY')

publications = ['mavenAar']
publish = true
pkg {
repo = 'maven'
name = project.artifactId
desc = project.description
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = allLicenses
publicDownloadNumbers = true
githubRepo = 'qubitdigital/qubit-sdk-android'
githubReleaseNotesFile = 'README.md'
version {
name = project.version
released = new Date()
vcsTag = 'version-' + project.version
}
}
}

0 comments on commit 56b3f1f

Please sign in to comment.