Skip to content

Commit 6a6ec03

Browse files
Merge pull request #760 from BranchMetrics/Staging
Release v4.1.2
2 parents ae31289 + 1d5527f commit 6a6ec03

File tree

122 files changed

+584
-806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+584
-806
lines changed

Branch-SDK-TestBed/.classpath

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

Branch-SDK-TestBed/.project

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

Branch-SDK-TestBed/build.gradle

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies {
99
exclude module: 'support-v4'
1010
}
1111

12-
testImplementation 'junit:junit:4.12'
12+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
1313
androidTestImplementation 'androidx.test:runner:1.2.0'
1414
androidTestImplementation 'androidx.test:rules:1.2.0'
1515
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
@@ -36,31 +36,6 @@ android {
3636
signingConfig signingConfigs.release
3737
}
3838
}
39-
40-
sourceSets {
41-
main {
42-
manifest.srcFile 'AndroidManifest.xml'
43-
java.srcDirs = ['src']
44-
resources.srcDirs = ['src']
45-
aidl.srcDirs = ['src']
46-
renderscript.srcDirs = ['src']
47-
res.srcDirs = ['res']
48-
assets.srcDirs = ['assets']
49-
50-
androidTest {
51-
java.srcDirs = ['androidTest']
52-
}
53-
}
54-
55-
// Move the build types to build-types/<type>
56-
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
57-
// This moves them out of them default location under src/<type>/... which would
58-
// conflict with src/ being used by the main source set.
59-
// Adding new build types or product flavors should be accompanied
60-
// by a similar customization.
61-
debug.setRoot('build-types/debug')
62-
release.setRoot('build-types/release')
63-
}
6439
}
6540

6641
File propFile = file('signing.properties');

Branch-SDK-TestBed/androidTest/io/branch/branchandroiddemo/BUOTestRoutines.java renamed to Branch-SDK-TestBed/src/androidTest/java/io/branch/branchandroiddemo/BUOTestRoutines.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private static boolean doLinkCreationTest(Context context, BranchUniversalObject
102102
boolean isLinkTestPassed = false;
103103
String url = buo.getShortUrl(context, new LinkProperties());
104104
try {
105-
JSONObject linkdata = new URLContentViewer().execute(url, PrefHelper.getInstance(context).readBranchKey(!BranchUtil.isTestModeEnabled(context))).get();
105+
JSONObject linkdata = new URLContentViewer().execute(url, BranchUtil.readBranchKey(context)).get();
106106
isLinkTestPassed = checkIfIdenticalJson(buo.convertToJson(), linkdata.optJSONObject("data"), true);
107107
if (isLinkTestPassed) {
108108
isLinkTestPassed = checkIfIdenticalJson(BranchUniversalObject.createInstance(linkdata).convertToJson(), linkdata.optJSONObject("data"), true);

Branch-SDK-TestBed/androidTest/io/branch/branchandroiddemo/BranchSDKTests.java renamed to Branch-SDK-TestBed/src/androidTest/java/io/branch/branchandroiddemo/BranchSDKTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import android.content.Context;
44
import androidx.test.InstrumentationRegistry;
5-
import androidx.test.runner.AndroidJUnit4;
5+
import androidx.test.ext.junit.runners.AndroidJUnit4;
66

77
import org.json.JSONException;
88
import org.json.JSONObject;
@@ -32,7 +32,7 @@ public class BranchSDKTests {
3232

3333
@Before
3434
public void setUp() {
35-
mContext = InstrumentationRegistry.getTargetContext();
35+
mContext = InstrumentationRegistry.getContext();
3636
branch = Branch.getInstance(mContext);
3737
prefHelper = PrefHelper.getInstance(mContext);
3838
}

Branch-SDK-TestBed/androidTest/io/branch/branchandroiddemo/TrackingControlTestRoutines.java renamed to Branch-SDK-TestBed/src/androidTest/java/io/branch/branchandroiddemo/TrackingControlTestRoutines.java

File renamed without changes.
File renamed without changes.

Branch-SDK-TestBed/src/io/branch/branchandroiddemo/AutoDeepLinkTestActivity.java renamed to Branch-SDK-TestBed/src/main/java/io/branch/branchandroiddemo/AutoDeepLinkTestActivity.java

File renamed without changes.

Branch-SDK-TestBed/src/io/branch/branchandroiddemo/CreditHistoryActivity.java renamed to Branch-SDK-TestBed/src/main/java/io/branch/branchandroiddemo/CreditHistoryActivity.java

File renamed without changes.

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

File renamed without changes.

0 commit comments

Comments
 (0)