Skip to content

Commit 97a3e35

Browse files
authored
Merge pull request #410 from BranchMetrics/back-out-key-support
Back out key support
2 parents 73f64f8 + 7645d7b commit 97a3e35

File tree

21 files changed

+45
-33
lines changed

21 files changed

+45
-33
lines changed

android/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ android {
2222

2323
dependencies {
2424
implementation 'com.facebook.react:react-native:+' // From node_modules
25-
implementation files('libs/Branch-3.0.3.jar') // From node_modules
25+
implementation 'io.branch.sdk.android:library:+'
26+
// TODO: Resolve build issue with this jar.
27+
// implementation files('libs/Branch-3.0.3.jar') // From node_modules
2628
}

examples/browser_example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def enableProguardInReleaseBuilds = false
9595

9696
android {
9797
compileSdkVersion rootProject.ext.compileSdkVersion
98-
buildToolsVersion rootProject.ext.buildToolsVersion
9998

10099
defaultConfig {
101100
applicationId "com.browser_example"
@@ -139,7 +138,8 @@ android {
139138

140139
dependencies {
141140
implementation project(':react-native-branch')
142-
implementation fileTree(dir: "libs", include: ["*.jar"])
141+
// implementation fileTree(dir: "libs", include: ["*.jar"])
142+
implementation "io.branch.sdk.android:library:3+"
143143
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
144144
implementation "com.facebook.react:react-native:+" // From node_modules
145145
}

examples/browser_example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.browser_example" android:versionCode="1" android:versionName="1.0">
22
<uses-permission android:name="android.permission.INTERNET"/>
33
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
4-
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22"/>
4+
55
<application android:name=".MainApplication" android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:theme="@style/AppTheme">
66
<activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="adjustResize" android:launchMode="singleTask">
77
<intent-filter>

examples/browser_example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
jcenter()
1414
}
1515
dependencies {
16-
classpath 'com.android.tools.build:gradle:3.1.4'
16+
classpath 'com.android.tools.build:gradle:3.3.0'
1717

1818
// NOTE: Do not place your application dependencies here; they belong
1919
// in the individual module build.gradle files
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Sun Jan 27 20:48:54 PST 2019
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

examples/testbed_native_android/android/app/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 25
5-
buildToolsVersion "25.0.2"
65
defaultConfig {
76
applicationId "io.branch.testbed_native_android"
8-
buildToolsVersion = "27.0.3"
97
minSdkVersion = 16
108
compileSdkVersion = 27
119
targetSdkVersion = 26
@@ -33,7 +31,8 @@ android {
3331
}
3432

3533
dependencies {
36-
implementation fileTree(dir: 'libs', include: ['*.jar'])
34+
// implementation fileTree(dir: 'libs', include: ['*.jar'])
35+
implementation "io.branch.sdk.android:library:3+"
3736
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
3837
exclude group: 'com.android.support', module: 'support-annotations'
3938
})

examples/testbed_native_android/android/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ buildscript {
77
url 'https://maven.google.com/'
88
name 'Google'
99
}
10+
google()
1011
}
1112
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.1.4'
13+
classpath 'com.android.tools.build:gradle:3.3.0'
1314

1415
// NOTE: Do not place your application dependencies here; they belong
1516
// in the individual module build.gradle files
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jan 14 15:30:15 PST 2019
1+
#Sun Jan 27 21:08:44 PST 2019
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

examples/testbed_simple/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def enableProguardInReleaseBuilds = false
9595

9696
android {
9797
compileSdkVersion rootProject.ext.compileSdkVersion
98-
buildToolsVersion rootProject.ext.buildToolsVersion
9998

10099
defaultConfig {
101100
applicationId "com.testbed_simple"
@@ -139,7 +138,8 @@ android {
139138

140139
dependencies {
141140
implementation project(':react-native-branch')
142-
implementation fileTree(dir: "libs", include: ["*.jar"])
141+
// implementation fileTree(dir: "libs", include: ["*.jar"])
142+
implementation "io.branch.sdk.android:library:3+"
143143
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
144144
implementation "com.facebook.react:react-native:+" // From node_modules
145145
}

examples/testbed_simple/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.testbed_simple" android:versionCode="1" android:versionName="1.0">
22
<uses-permission android:name="android.permission.INTERNET"/>
33
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
4-
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22"/>
4+
55
<application android:name=".MainApplication" android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:theme="@style/AppTheme">
66
<activity android:name=".MainActivity" android:launchMode="singleTask" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="adjustResize">
77
<intent-filter>

0 commit comments

Comments
 (0)