Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Apptimize 2.12.3 #1

Open
wants to merge 123 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
1e086ec
Change package name segment->apptimize
honeybeep Jun 10, 2016
18d84e2
Prepare for release 1.0.1
honeybeep Jun 14, 2016
ddec38a
Prepare next dev version
honeybeep Jun 20, 2016
5b307ad
Update to Apptimize 2.12.3
tlundeen Jan 23, 2017
2bbee86
Update to snapshot version 1.0.3
tlundeen Jan 23, 2017
c0ce615
Prepare for release 1.0.3
Feb 17, 2017
6dd1338
Prepare next development version.
Feb 17, 2017
f78bd30
Prepare for release 1.0.4
Mar 8, 2017
ca428fb
Prepare next development version.
Mar 8, 2017
0c118c4
Prepare for release 1.0.5
Apr 5, 2017
c208f24
Prepare next development version.
Apr 5, 2017
f4e6ab0
Revert "Prepare next development version."
Apr 5, 2017
1554dcf
Prepare for release 1.0.5
Apr 5, 2017
64aad3a
Prepare next development version.
Mar 8, 2017
2dd184f
Prepare for release 1.0.6
Apr 7, 2017
c1c8811
Prepare next development version.
Apr 7, 2017
889a662
Prepare for release 1.0.7
Jun 14, 2017
53d86c7
Prepare next development version.
Jun 14, 2017
b87b452
RET-1585 - Ensure we only log a participation event for the first par…
Jun 30, 2017
61811fc
Prepare for release 1.0.8.
Jul 7, 2017
e812071
Prepare next development version
Jul 7, 2017
223c31d
Prepare for release 1.0.9
Jul 7, 2017
8a0fb03
Prepare next development version
Jul 7, 2017
f284489
Prepare for release 1.10.0
Jul 17, 2017
89ff118
Prepare next development version.
Jul 17, 2017
589a55f
Prepare for release 1.11.1
Mar 1, 2018
87ea299
Prepare next development version.
Mar 1, 2018
8dae406
Prepare for release 1.11.1
Jun 11, 2018
315dedc
RET-2619 Fix version numbers
Jul 6, 2018
a2c7776
Prepare for release 1.11.2.
Sep 5, 2018
fa255ac
Prepare next development version.
Sep 5, 2018
4d32826
Merge branch 'master' of https://github.com/Apptimize/analytics-andro…
Sep 5, 2018
f89c2b3
Prepare next development version.
Sep 5, 2018
4ddaa04
Prepare for release 1.0.12.
Sep 5, 2018
dc676c5
Prepare next development version.
Sep 5, 2018
6930120
Prepare for release 1.13.0.
Sep 5, 2018
d1a9035
Prepare next development version.
Sep 5, 2018
f43c16d
Prepare for release 1.13.0.
Sep 6, 2018
85ebf8d
Prepare next development version.
Sep 6, 2018
9c1315b
Prepare for release 1.0.16.
Sep 6, 2018
ff1a648
Prepare next development version.
Sep 6, 2018
ab54371
Prepare for release 1.0.X.
Sep 12, 2018
e4ad8fc
Prepare next development version.
Sep 13, 2018
f6cd7be
Prepare for release 1.0.X.
Nov 30, 2018
2a8a3f4
Prepare next development version.
Nov 30, 2018
9f703c6
Prepare for release 1.0.19.
Dec 13, 2018
15b0492
Prepare next development version.
Dec 13, 2018
fd1788c
Prepare for release 1.0.20.
Jan 24, 2019
35038e7
Prepare next development version.
Jan 24, 2019
ffcb812
Prepare for release 1.0.21.
Jan 30, 2019
ad1c566
Prepare next development version.
Jan 30, 2019
9236030
Prepare for release 1.0.22.
May 9, 2019
3e9f537
Prepare next development version.
May 9, 2019
e43e73e
Prepare for release 1.0.23.
Jun 12, 2019
891f5b7
Prepare next development version.
Jun 12, 2019
9d164ea
Prepare for release 1.0.24.
Aug 6, 2019
a4f0eb9
Prepare next development version.
Aug 6, 2019
7704714
Prepare for release 1.25.1.
Aug 6, 2019
228bc2a
Prepare next development version.
Aug 6, 2019
ece779e
Prepare for release 1.25.2.
Sep 23, 2019
d5ceb36
Prepare next development version.
Sep 23, 2019
b08a3b7
RET-3753 Android should use the same segment (maven) version ID as in…
Oct 21, 2019
0d1a143
Update master with ret-3753
tlundeen Mar 24, 2020
1b1341d
Prepare for release 3.6.2.
Mar 24, 2020
254f661
Prepare for release 3.6.3.
Apr 2, 2020
cfa3307
Prepare for release 3.6.4.
Apr 10, 2020
49419fb
Prepare for release 3.6.5.
Apr 16, 2020
39381b8
Prepare for release 3.6.6.
May 1, 2020
5983d20
Prepare for release 3.6.7.
May 18, 2020
913f8e0
Prepare for release 3.6.8.
May 27, 2020
fa10e73
Prepare for release 3.6.9.
May 29, 2020
a5c838e
Prepare for release 3.6.10.
Jun 8, 2020
8d4c264
Prepare for release 3.6.11.
Jul 14, 2020
52980b6
Prepare for release 3.7.0.
Jul 16, 2020
6096936
Prepare for release 3.7.1.
Jul 21, 2020
c7f0e1d
Prepare for release 3.7.4.
Sep 15, 2020
8d6ec5c
Prepare for release 3.7.6.
Oct 19, 2020
481a722
Prepare for release 3.7.7
Oct 21, 2020
cc99a22
Prepare for release 3.7.9.
Nov 9, 2020
077a255
Prepare for release 3.7.10.
Nov 24, 2020
e5cd80b
Prepare for release 3.7.13.
Dec 17, 2020
f30e107
Prepare for release 3.7.14.
Jan 11, 2021
bedc234
Add option to use EU Cloud Site
vshldc Jan 14, 2021
208f9c3
Prepare for release 3.7.15
Jan 18, 2021
4825238
Prepare for release 3.7.15.
Jan 21, 2021
0878e48
Prepare for release 3.7.16.
Jan 21, 2021
2d153ae
Fixes for release 3.7.16.
Jan 21, 2021
c56e277
Prepare for release 3.7.18.
Feb 24, 2021
2e229c7
Update RELEASING.md to use a github token
Feb 25, 2021
4f5c45d
Update files
May 7, 2021
1b143f3
Prepare for release 3.7.23.
May 14, 2021
8b54c63
Prepare for release 3.7.24.
Jun 10, 2021
2192be0
Prepare for release 3.7.25.
Jun 11, 2021
125fd52
Prepare for release 3.7.26.
Jun 26, 2021
b4f1e35
Prepare for release 3.7.27.
Jul 13, 2021
dc4bb5b
Prepare for release 3.8.0.
Jul 13, 2021
df2818c
Prepare for release 3.8.1.
Jul 20, 2021
a644b51
Prepare for release 3.8.2
Aug 3, 2021
7c3c361
Prepare for release 3.9.0.
Aug 17, 2021
c768753
Prepare for release 3.9.2.
Sep 23, 2021
901a617
Prepare for release 3.9.6.
Nov 3, 2021
d2ea907
Prepare for release 3.9.7.
Nov 19, 2021
8395ae3
Prepare for release 3.10.0.
Dec 1, 2021
0ca47ba
Prepare for release 3.10.1.
Dec 7, 2021
5da3765
Prepare for release 3.10.2.
Dec 22, 2021
ad25d74
Prepare for release 3.10.5.
Mar 8, 2022
8d4fe65
Prepare for release 3.10.6.
Mar 21, 2022
27fc67d
Prepare for release 3.10.7
Mar 23, 2022
588829b
Prepare for release 3.10.8.
Mar 28, 2022
d58cabd
Prepare for release 3.10.9
May 5, 2022
07d3d1e
Prepare for release 3.10.10
May 18, 2022
a8830c0
Prepare for release 3.10.11.
Jun 2, 2022
3ca976d
Prepare for release 3.10.12.
Jul 21, 2022
4ba68db
Prepare for release 3.10.13.
Jul 22, 2022
b5a00af
Prepare for release 3.10.14.
Sep 12, 2022
1d1ed1c
added template files
Sep 14, 2022
7b6a27f
Prepare for release 3.10.15
Sep 16, 2022
e0ee6b6
Prepare for release 3.10.16
Nov 15, 2022
7b071e7
Prepare for release 3.10.17
Nov 18, 2022
1874a16
Prepare for release 3.10.18
Nov 23, 2022
e647d46
Prepare for release 3.11.0
Sep 5, 2023
12ae8f4
Prepare for release 3.12.0
May 10, 2024
e2f9b64
Prepare for release 3.12.1
Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
410 changes: 410 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

48 changes: 39 additions & 9 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,42 @@
Releasing
========

1. Change the version in `gradle.properties` to a non-SNAPSHOT version.
2. Update the `CHANGELOG.md` for the impending release.
3. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version)
4. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version)
5. `./gradlew clean uploadArchives`
6. Update the `gradle.properties` to the next SNAPSHOT version.
7. `git commit -am "Prepare next development version."`
8. `git push && git push --tags`
9. Visit [Sonatype Nexus](https://oss.sonatype.org/) and promote the artifact.
1. Change gradle.properties for VERSION_CODE and VERSION_NAME:

VERSION_CODE=muupp
VERSION_NAME=m.u.p

where "m" is the major version
"u" is the minor version ("uu" is 2 digits with a leading zero when u is 0..9)
"p" is the patch level ("pp" is a 2 digits with a leading zero when p is 0..9)

2. Update CHANGELOG.md for the impending release. This has the format:

Version m.u.p (dd Mmm, yyyy)
==================================
...the change-log.txt entry from android lib/change-log.txt,
...with any internal lines removed.

For example,

Version 3.4.14 (18 Oct, 2019)
==================================
* Remove obfuscation of Android.OnApptimizeInitializedListener

3. Update build.gradle with the new build number:

compile 'com.apptimize:apptimize-android:m.u.p@aar'

4. git commit -am "Prepare for release m.u.p."

5. git tag -a m.u.p -m "Version m.u.p"

6. ./gradlew clean uploadArchives

7. Make sure you have a github token to authenticate the push. You use a token
instead of your password. You can get a token by logging into github
and using the Settings > Developer Settings > Personal Access Tokens menu.

git push && git push --tags

8. Visit [Sonatype Nexus](https://oss.sonatype.org/) and promote the artifact.
13 changes: 8 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Please do not change this file
// This file is autogenerated from build.gradle.template

buildscript {
repositories {
mavenCentral()
Expand All @@ -14,13 +17,13 @@ apply plugin: 'checkstyle'
apply plugin: 'com.f2prateek.checkstyle'

android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
compileSdkVersion 22
buildToolsVersion '23.0.3'

defaultConfig {
minSdkVersion 14
targetSdkVersion 23
compileSdkVersion 23
targetSdkVersion 22
compileSdkVersion 22
}

compileOptions {
Expand All @@ -41,7 +44,7 @@ dependencies {

provided 'com.segment.analytics.android:analytics:4.0.9'

compile 'com.apptimize:apptimize-android:2.10.8'
compile 'com.apptimize:apptimize-android:3.12.1@aar'

testCompile 'junit:junit:4.12'
testCompile('org.robolectric:robolectric:3.0') {
Expand Down
65 changes: 65 additions & 0 deletions build.gradle.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
classpath 'com.f2prateek.checkstyle:checkstyle:1.0.1'
}
}

apply plugin: 'com.android.library'
apply plugin: 'checkstyle'
apply plugin: 'com.f2prateek.checkstyle'

android {
compileSdkVersion 22
buildToolsVersion '23.0.3'

defaultConfig {
minSdkVersion 14
targetSdkVersion 22
compileSdkVersion 22
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}

checkstyle {
configFile rootProject.file('gradle/checkstyle.xml')
}

dependencies {
repositories {
mavenCentral()
maven { url 'http://maven.apptimize.com/artifactory/repo' }
}

provided 'com.segment.analytics.android:analytics:4.0.9'

compile 'com.apptimize:apptimize-android:${VERSION}@aar'

testCompile 'junit:junit:4.12'
testCompile('org.robolectric:robolectric:3.0') {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}

testCompile 'com.segment.analytics.android:analytics-tests:4.0.9'

testCompile 'org.assertj:assertj-core:1.7.1'

testCompile 'org.mockito:mockito-core:1.10.19'

testCompile 'org.powermock:powermock:1.6.2'
testCompile 'org.powermock:powermock-module-junit4:1.6.2'
testCompile 'org.powermock:powermock-module-junit4-rule:1.6.2'
testCompile 'org.powermock:powermock-api-mockito:1.6.2'
testCompile 'org.powermock:powermock-classloading-xstream:1.6.2'
}

apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
25 changes: 14 additions & 11 deletions gradle.properties
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
GROUP=com.segment.analytics.android.integrations
# Please do not change this file
# This file is autogenerated from gradle.properties.template

VERSION_CODE=101
VERSION_NAME=1.0.1-SNAPSHOT
GROUP=com.apptimize.segment

POM_ARTIFACT_ID=apptimize
VERSION_CODE=31201
VERSION_NAME=3.12.1

POM_ARTIFACT_ID=apptimize-segment-integration
POM_PACKAGING=aar

POM_NAME=Apptimize Integration
POM_NAME=Apptimize Segment Integration
POM_DESCRIPTION=Apptimize Integration for Segment Android Analytics

POM_URL=http://github.com/segment-integrations/analytics-android-integration-apptimize
POM_SCM_URL=http://github.com/segment-integrations/analytics-android-integration-apptimize
POM_SCM_CONNECTION=scm:git:git://github.com/segment-integrations/analytics-android-integration-apptimize.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/segment-integrations/analytics-android-integration-apptimize.git
POM_URL=http://github.com/Apptimize/analytics-android-integration-apptimize/
POM_SCM_URL=https://github.com/Apptimize/analytics-android-integration-apptimize/
POM_SCM_CONNECTION=scm:git:git://github.com/Apptimize/analytics-android-integration-apptimize.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/Apptimize/analytics-android-integration-apptimize.git

POM_LICENCE_NAME=The MIT License (MIT)
POM_LICENCE_URL=http://opensource.org/licenses/MIT
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=segmentio
POM_DEVELOPER_NAME=Segment, Inc.
POM_DEVELOPER_ID=apptimize
POM_DEVELOPER_NAME=Apptimize, Inc.
22 changes: 22 additions & 0 deletions gradle.properties.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
GROUP=com.apptimize.segment

VERSION_CODE=${VERSION-CODE}
VERSION_NAME=${VERSION-NAME}

POM_ARTIFACT_ID=apptimize-segment-integration
POM_PACKAGING=aar

POM_NAME=Apptimize Segment Integration
POM_DESCRIPTION=Apptimize Integration for Segment Android Analytics

POM_URL=http://github.com/Apptimize/analytics-android-integration-apptimize/
POM_SCM_URL=https://github.com/Apptimize/analytics-android-integration-apptimize/
POM_SCM_CONNECTION=scm:git:git://github.com/Apptimize/analytics-android-integration-apptimize.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/Apptimize/analytics-android-integration-apptimize.git

POM_LICENCE_NAME=The MIT License (MIT)
POM_LICENCE_URL=http://opensource.org/licenses/MIT
POM_LICENCE_DIST=repo

POM_DEVELOPER_ID=apptimize
POM_DEVELOPER_NAME=Apptimize, Inc.
2 changes: 1 addition & 1 deletion src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<manifest package="com.segment.analytics.android.integrations.apptimize"/>
<manifest package="com.apptimize.segment"/>
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.segment.analytics.android.integrations.apptimize;
package com.apptimize.segment;

import com.apptimize.Apptimize;
import com.apptimize.Apptimize.OnExperimentRunListener;
import com.apptimize.ApptimizeOptions;
import com.segment.analytics.Analytics;
import com.segment.analytics.Properties;
import com.segment.analytics.ValueMap;
Expand All @@ -25,7 +26,8 @@ public class ApptimizeIntegration extends Integration<Void> implements OnExperim
@Override public Integration<?> create(ValueMap settings, Analytics analytics) {
String appkey = settings.getString("appkey");
boolean listen = settings.getBoolean("listen", false);
return new ApptimizeIntegration(analytics, appkey, listen, analytics.logger(APPTIMIZE_KEY));
boolean eucs = settings.getBoolean("apptimizeEuDataCenter", false);
return new ApptimizeIntegration(analytics, appkey, listen, eucs, analytics.logger(APPTIMIZE_KEY));
}

@Override public String key() {
Expand All @@ -39,11 +41,15 @@ public class ApptimizeIntegration extends Integration<Void> implements OnExperim
final Analytics analytics;
final Logger logger;

ApptimizeIntegration(Analytics analytics, String appKey, boolean listen, Logger logger)
ApptimizeIntegration(Analytics analytics, String appKey, boolean listen, boolean eucs, Logger logger)
throws IllegalStateException {
this.analytics = analytics;
this.logger = logger;
Apptimize.setup(analytics.getApplication(), appKey);
ApptimizeOptions apptimizeOptions = new ApptimizeOptions();
if(eucs) {
apptimizeOptions.setServerRegion(ApptimizeOptions.ServerRegion.EUCS);
}
Apptimize.setup(analytics.getApplication(), appKey, apptimizeOptions);
this.logger.verbose("Apptimize.setup(context, %s)", appKey);
if (listen) {
Apptimize.setOnExperimentRunListener(this);
Expand Down Expand Up @@ -89,7 +95,11 @@ public class ApptimizeIntegration extends Integration<Void> implements OnExperim

@Override
public void onExperimentRun(String experimentName, String variantName, boolean firstRun) {
analytics.track("Experiment Viewed", new Properties().putValue("experimentName", experimentName)
.putValue("variationName", variantName));
if (firstRun) {
analytics.track(
"Experiment Viewed",
new Properties().putValue("experimentName", experimentName)
.putValue("variationName", variantName));
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.segment.analytics.android.integrations.apptimize;
package com.apptimize.segment;

import android.app.Activity;
import android.app.Application;
Expand Down