Skip to content

Commit 859f4d7

Browse files
Release 5.0.2 (#853)
Release 5.0.2
1 parent b06e01c commit 859f4d7

File tree

14 files changed

+13
-773
lines changed

14 files changed

+13
-773
lines changed

Branch-SDK-TestBed/src/main/java/io/branch/branchandroiddemo/CustomBranchApp.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33

44
//import com.squareup.leakcanary.LeakCanary;
55

6+
import io.branch.referral.Branch;
67
import io.branch.referral.BranchApp;
78

89
public final class CustomBranchApp extends BranchApp {
910
@Override
1011
public void onCreate() {
12+
Branch.enableLogging();
1113
super.onCreate();
1214
// Uncomment to test memory leak
1315
// LeakCanary.install(this);

Branch-SDK/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
2323

2424
// Unit tests with Google Ads
25-
androidTestImplementation 'com.google.android.gms:play-services-ads:16.0.0'
25+
androidTestImplementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
2626
}
2727

2828
android {

Branch-SDK/src/androidTest/java/io/branch/indexing/HashHelperTest.java

Lines changed: 0 additions & 52 deletions
This file was deleted.

Branch-SDK/src/main/java/io/branch/indexing/ContentDiscoverer.java

Lines changed: 0 additions & 369 deletions
This file was deleted.

Branch-SDK/src/main/java/io/branch/indexing/ContentDiscoveryManifest.java

Lines changed: 0 additions & 232 deletions
This file was deleted.

Branch-SDK/src/main/java/io/branch/indexing/HashHelper.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

Branch-SDK/src/main/java/io/branch/referral/BranchActivityLifecycleObserver.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
import java.util.HashSet;
1313
import java.util.Set;
1414

15-
import io.branch.indexing.ContentDiscoverer;
16-
1715
/**
1816
* <p>Class that observes activity life cycle events and determines when to start and stop
1917
* session.</p>
@@ -50,13 +48,6 @@ public void onActivityStarted(@NonNull Activity activity) {
5048
branch.currentActivityReference_ = new WeakReference<>(activity);
5149

5250
branch.setIntentState(Branch.INTENT_STATE.PENDING);
53-
// If configured on dashboard, trigger content discovery runnable
54-
if (branch.getInitState() == Branch.SESSION_STATE.INITIALISED) {
55-
try {
56-
ContentDiscoverer.getInstance().discoverContent(activity, branch.getSessionReferredLink());
57-
} catch (Exception ignore) {
58-
}
59-
}
6051
activityCnt_++;
6152

6253
maybeRefreshAdvertisingID(activity);
@@ -108,7 +99,6 @@ public void onActivityStopped(@NonNull Activity activity) {
10899
Branch branch = Branch.getInstance();
109100
if (branch == null) return;
110101

111-
ContentDiscoverer.getInstance().onActivityStopped(activity);
112102
activityCnt_--; // Check if this is the last activity. If so, stop the session.
113103
if (activityCnt_ < 1) {
114104
branch.setInstantDeepLinkPossible(false);

Branch-SDK/src/main/java/io/branch/referral/Defines.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ public enum Jsonkey {
147147
ContentData("content_data"),
148148
ContentEvents("events"),
149149
ContentAnalyticsMode("content_analytics_mode"),
150-
ContentDiscovery("cd"),
151150
Environment("environment"),
152151
InstantApp("INSTANT_APP"),
153152
NativeApp("FULL_APP"),

0 commit comments

Comments
 (0)