Skip to content

Commit 9863e24

Browse files
authored
Merge pull request #1 from a7urag/dev
Android build fix
2 parents ef9dd6a + e443e6d commit 9863e24

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

android/app/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,14 @@ android {
139139
}
140140

141141
dependencies {
142-
// implementation fileTree(dir: "libs", include: ["*.jar"])
143-
// implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
144-
// implementation "com.facebook.react:react-native:+" // From node_modules
145142
implementation fileTree(dir: "libs", include: ["*.jar"])
146143
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
147-
implementation "com.facebook.react:react-native:+" // From node_modules
144+
implementation "com.facebook.react:react-native:0.57.8" // From node_modules
148145
implementation project(':react-native-navigation')
146+
147+
implementation "com.android.support:design:${rootProject.ext.supportLibVersion}"
148+
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
149+
implementation "com.android.support:support-v4:${rootProject.ext.supportLibVersion}"
149150
}
150151

151152
// Run this once to be able to run the application with BUCK
@@ -161,7 +162,7 @@ subprojects { subproject ->
161162
android {
162163
variantFilter { variant ->
163164
def names = variant.flavors*.name
164-
if (names.contains("reactNative51") || names.contains("reactNative57")) {
165+
if (names.contains("reactNative51") || names.contains("reactNative55")) {
165166
setIgnore(true)
166167
}
167168
}

android/build.gradle

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ buildscript {
44
ext {
55
buildToolsVersion = "27.0.3"
66
minSdkVersion = 19
7-
compileSdkVersion = 26
7+
compileSdkVersion = 28
88
targetSdkVersion = 26
9-
supportLibVersion = "26.1.0"
9+
supportLibVersion = "28.0.0"
1010
}
1111
repositories {
1212
google()
@@ -36,6 +36,21 @@ allprojects {
3636
}
3737
}
3838

39+
subprojects { subproject ->
40+
afterEvaluate {
41+
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
42+
android {
43+
variantFilter { variant ->
44+
def names = variant.flavors*.name
45+
if (names.contains("reactNative51") || names.contains("reactNative55")) {
46+
setIgnore(true)
47+
}
48+
}
49+
}
50+
}
51+
}
52+
}
53+
3954

4055
task wrapper(type: Wrapper) {
4156
gradleVersion = '4.7'

android/settings.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
rootProject.name = 'FridayApp'
2-
3-
include ':app'
4-
52
include ':react-native-navigation'
63
project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/lib/android/app/')
4+
include ':app'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"dependencies": {
3333
"react": "16.6.3",
34-
"react-native": "0.58.1",
34+
"react-native": "0.57.8",
3535
"react-native-navigation": "^2.8.0",
3636
"react-redux": "^6.0.0",
3737
"redux": "^4.0.1",

0 commit comments

Comments
 (0)