Skip to content

Commit 2d2d212

Browse files
authored
Merge pull request #37 from rudderlabs/release/2.0.0
chore(release): pulling release/2.0.0 into master
2 parents 757f9bc + 99259fd commit 2d2d212

File tree

12 files changed

+80
-44
lines changed

12 files changed

+80
-44
lines changed

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## 2.0.0 (2025-04-24)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
* update braze sdk version to 35.0.0 (#36)
11+
12+
### Features
13+
14+
* add australia and united states regions support in braze sdk ([#35](https://github.com/rudderlabs/rudder-integration-braze-android/issues/35)) ([f0c9a35](https://github.com/rudderlabs/rudder-integration-braze-android/commit/f0c9a35007afbfeb6db58f33b6e214c44211f22c))
15+
* update braze sdk version to 35.0.0 ([#36](https://github.com/rudderlabs/rudder-integration-braze-android/issues/36)) ([cc1faab](https://github.com/rudderlabs/rudder-integration-braze-android/commit/cc1faab8ccbc161ed40d478395fd279195cb12bc))
16+
17+
18+
### Bug Fixes
19+
20+
* merging of anonymous with identified profile ([#33](https://github.com/rudderlabs/rudder-integration-braze-android/issues/33)) ([f7a3cc8](https://github.com/rudderlabs/rudder-integration-braze-android/commit/f7a3cc88a1eb6d6dde7c84e316d6127d4be5d6a3))
21+
522
## [1.3.0](https://github.com/rudderlabs/rudder-integration-braze-android/compare/v1.2.0...v1.3.0) (2023-08-28)
623

724

@@ -23,4 +40,4 @@ All notable changes to this project will be documented in this file. See [standa
2340
### Features
2441

2542
* add ci/cd pipeline ([e94987c](https://github.com/rudderlabs/rudder-integration-braze-android/commit/e94987cd0fb07daf9f6dd683f3712bca405b09a0))
26-
* deduplication feature for Braze device-mode ([d60e27a](https://github.com/rudderlabs/rudder-integration-braze-android/commit/d60e27aa9b91e4cce24702385b2b8567e839c2bf)), closes [#15](https://github.com/rudderlabs/rudder-integration-braze-android/issues/15) [#14](https://github.com/rudderlabs/rudder-integration-braze-android/issues/14) [#12](https://github.com/rudderlabs/rudder-integration-braze-android/issues/12)
43+
* deduplication feature for Braze device-mode ([d60e27a](https://github.com/rudderlabs/rudder-integration-braze-android/commit/d60e27aa9b91e4cce24702385b2b8567e839c2bf)), closes [#15](https://github.com/rudderlabs/rudder-integration-braze-android/issues/15) [#14](https://github.com/rudderlabs/rudder-integration-braze-android/issues/14) [#12](https://github.com/rudderlabs/rudder-integration-braze-android/issues/12)

braze/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 31
4+
compileSdk 34
5+
6+
buildFeatures {
7+
buildConfig = true
8+
}
59

610
defaultConfig {
7-
minSdkVersion 19
8-
targetSdkVersion 31
11+
minSdkVersion 25
912
buildConfigField("String", "VERSION_NAME", "\"${VERSION_NAME}\"")
1013
}
1114

@@ -15,10 +18,7 @@ android {
1518
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
1619
}
1720
}
18-
compileOptions {
19-
sourceCompatibility JavaVersion.VERSION_1_8
20-
targetCompatibility JavaVersion.VERSION_1_8
21-
}
21+
2222
namespace 'com.rudderstack.android.integration.braze'
2323
}
2424

@@ -29,7 +29,7 @@ dependencies {
2929
// RudderStack SDK
3030
compileOnly 'com.rudderstack.android.sdk:core:[1.12,2.0)'
3131
// Braze SDK
32-
implementation 'com.braze:android-sdk-ui:[27.0,28.0)'
32+
implementation 'com.braze:android-sdk-ui:35.0.0'
3333

3434
implementation 'com.google.code.gson:gson:2.8.9'
3535
testImplementation 'com.android.support.test:rules:1.0.2'
@@ -44,4 +44,4 @@ dependencies {
4444

4545

4646
apply from: rootProject.file('gradle/mvn-publish.gradle')
47-
apply from: rootProject.file('gradle/codecov.gradle')
47+
apply from: rootProject.file('gradle/codecov.gradle')

braze/src/main/java/com/rudderstack/android/integration/braze/BrazeIntegrationFactory.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ enum ConnectionMode {
133133
private static final List<String> RESERVED_KEY_SET = Arrays.asList(BIRTHDAY, EMAIL, FIRSTNAME,
134134
LASTNAME, GENDER, PHONE, ADDRESS);
135135

136+
private static final String RUDDER_LABEL = "rudder_id";
137+
136138
// Braze instance
137139
private Braze braze;
138140

@@ -148,7 +150,7 @@ enum ConnectionMode {
148150
public static final Factory FACTORY = new Factory() {
149151
@Override
150152
public RudderIntegration<?> create(Object settings, RudderClient client, RudderConfig rudderConfig) {
151-
return new BrazeIntegrationFactory(settings, rudderConfig);
153+
return new BrazeIntegrationFactory(settings, client, rudderConfig);
152154
}
153155

154156
@Override
@@ -157,7 +159,7 @@ public String key() {
157159
}
158160
};
159161

160-
private BrazeIntegrationFactory(Object config, RudderConfig rudderConfig) {
162+
private BrazeIntegrationFactory(Object config, RudderClient client, RudderConfig rudderConfig) {
161163
String apiKey = "";
162164
Map<String, Object> destinationConfig = (Map<String, Object>) config;
163165
if (destinationConfig == null) {
@@ -214,6 +216,9 @@ private BrazeIntegrationFactory(Object config, RudderConfig rudderConfig) {
214216
case "US-06":
215217
customEndPoint = "sdk.iad-06.braze.com";
216218
break;
219+
case "US-07":
220+
customEndPoint = "sdk.iad-07.braze.com";
221+
break;
217222
case "US-08":
218223
customEndPoint = "sdk.iad-08.braze.com";
219224
break;
@@ -223,6 +228,9 @@ private BrazeIntegrationFactory(Object config, RudderConfig rudderConfig) {
223228
case "EU-02":
224229
customEndPoint = "sdk.fra-02.braze.eu";
225230
break;
231+
case "AU-01":
232+
customEndPoint = "sdk.au-01.braze.com";
233+
break;
226234
}
227235
if (customEndPoint == null) {
228236
RudderLogger.logError("CustomEndPointUrl is blank or incorrect. Aborting Braze initialization.");
@@ -247,6 +255,7 @@ private BrazeIntegrationFactory(Object config, RudderConfig rudderConfig) {
247255
);
248256
Braze.configure(RudderClient.getApplication().getApplicationContext(), builder.build());
249257
this.braze = Braze.getInstance(RudderClient.getApplication());
258+
setUserAlias(client.getAnonymousId());
250259
RudderLogger.logInfo("Configured Braze + Rudder integration and initialized Braze.");
251260

252261
RudderClient.getApplication().registerActivityLifecycleCallbacks(new Application.ActivityLifecycleCallbacks() {
@@ -296,6 +305,10 @@ public void onActivityDestroyed(@NonNull Activity activity) {
296305
}
297306
}
298307

308+
private void setUserAlias(String anonymousId) {
309+
this.braze.getCurrentUser().addAlias(anonymousId, RUDDER_LABEL);
310+
}
311+
299312
private void processTrackEvent(RudderMessage element) {
300313
String event = element.getEventName();
301314
if (event == null) {

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ buildscript {
44
google()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:7.3.1'
8-
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20'
7+
classpath 'com.android.tools.build:gradle:8.6.1'
8+
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0'
99
}
1010
}
1111

@@ -25,4 +25,4 @@ task clean(type: Delete) {
2525
}
2626

2727
apply from: rootProject.file('gradle/promote.gradle')
28-
apply from: rootProject.file('gradle/codecov.gradle')
28+
apply from: rootProject.file('gradle/codecov.gradle')

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ POM_LICENCE_URL=http://opensource.org/licenses/MIT
77
org.gradle.jvmargs=-Xmx1536m
88
POM_DEVELOPER_ID=Rudderstack
99
POM_LICENCE_NAME=The MIT License (MIT)
10-
VERSION_CODE=4
10+
VERSION_CODE=5
1111
POM_DEVELOPER_NAME=Rudderstack, Inc.
1212
POM_LICENCE_DIST=repo
13-
VERSION_NAME=1.3.0
13+
VERSION_NAME=2.0.0
1414
POM_URL=https://github.com/rudderlabs/rudder-integration-braze-android
1515
POM_SCM_URL=https://github.com/rudderlabs/rudder-integration-braze-android/tree/master
1616
POM_SCM_CONNECTION=scm:git:git://github.com/rudderlabs/rudder-integration-braze-android.git

gradle/codecov.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ task codeCoverageReport(type: JacocoReport) {
2929
executionData.setFrom(execData)
3030

3131
reports {
32-
xml.enabled true
33-
xml.destination file("${buildDir}/reports/jacoco/report.xml")
34-
html.enabled true
35-
csv.enabled false
32+
xml.required.set true
33+
xml.outputLocation.set file("${buildDir}/reports/jacoco/report.xml")
34+
html.required.set true
35+
csv.required.set false
3636
}
37-
}
37+
}

gradle/mvn-publish.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ signing {
8383
sign publishing.publications
8484
}
8585

86+
if(POM_PACKAGING == "aar"){
87+
tasks.named("signReleasePublication").configure { dependsOn("bundleReleaseAar") }
88+
}else{
89+
tasks.named("signReleasePublication").configure { dependsOn("jar") }
90+
}
91+
8692
publish.dependsOn build
8793
publishToMavenLocal.dependsOn build
88-
publishToSonatype.dependsOn publish
94+
publishToSonatype.dependsOn publish
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Feb 21 19:29:08 IST 2022
1+
#Thu Apr 17 12:02:39 IST 2025
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.3.0",
2+
"version": "2.0.0",
33
"dependencies": {
44
"properties-reader": "^2.2.0"
55
}

0 commit comments

Comments
 (0)