Skip to content

Commit

Permalink
Release 5.0.2 (#853)
Browse files Browse the repository at this point in the history
Release 5.0.2
  • Loading branch information
bklastaitis-branch committed Jul 23, 2020
1 parent b06e01c commit 859f4d7
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 773 deletions.
Expand Up @@ -3,11 +3,13 @@

//import com.squareup.leakcanary.LeakCanary;

import io.branch.referral.Branch;
import io.branch.referral.BranchApp;

public final class CustomBranchApp extends BranchApp {
@Override
public void onCreate() {
Branch.enableLogging();
super.onCreate();
// Uncomment to test memory leak
// LeakCanary.install(this);
Expand Down
2 changes: 1 addition & 1 deletion Branch-SDK/build.gradle
Expand Up @@ -22,7 +22,7 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

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

android {
Expand Down

This file was deleted.

369 changes: 0 additions & 369 deletions Branch-SDK/src/main/java/io/branch/indexing/ContentDiscoverer.java

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions Branch-SDK/src/main/java/io/branch/indexing/HashHelper.java

This file was deleted.

Expand Up @@ -12,8 +12,6 @@
import java.util.HashSet;
import java.util.Set;

import io.branch.indexing.ContentDiscoverer;

/**
* <p>Class that observes activity life cycle events and determines when to start and stop
* session.</p>
Expand Down Expand Up @@ -50,13 +48,6 @@ public void onActivityStarted(@NonNull Activity activity) {
branch.currentActivityReference_ = new WeakReference<>(activity);

branch.setIntentState(Branch.INTENT_STATE.PENDING);
// If configured on dashboard, trigger content discovery runnable
if (branch.getInitState() == Branch.SESSION_STATE.INITIALISED) {
try {
ContentDiscoverer.getInstance().discoverContent(activity, branch.getSessionReferredLink());
} catch (Exception ignore) {
}
}
activityCnt_++;

maybeRefreshAdvertisingID(activity);
Expand Down Expand Up @@ -108,7 +99,6 @@ public void onActivityStopped(@NonNull Activity activity) {
Branch branch = Branch.getInstance();
if (branch == null) return;

ContentDiscoverer.getInstance().onActivityStopped(activity);
activityCnt_--; // Check if this is the last activity. If so, stop the session.
if (activityCnt_ < 1) {
branch.setInstantDeepLinkPossible(false);
Expand Down
1 change: 0 additions & 1 deletion Branch-SDK/src/main/java/io/branch/referral/Defines.java
Expand Up @@ -147,7 +147,6 @@ public enum Jsonkey {
ContentData("content_data"),
ContentEvents("events"),
ContentAnalyticsMode("content_analytics_mode"),
ContentDiscovery("cd"),
Environment("environment"),
InstantApp("INSTANT_APP"),
NativeApp("FULL_APP"),
Expand Down

0 comments on commit 859f4d7

Please sign in to comment.