Skip to content

Commit 839b61d

Browse files
author
Dick Smith
committed
Fix for demo build
1 parent 262c0bd commit 839b61d

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

demo/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"*": [
2626
"./node_modules/*"
2727
]
28-
}
28+
},
29+
"skipLibCheck": true
2930
},
3031
"exclude": [
3132
"node_modules",

src/platforms/android/include.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ repositories {
1313
maven { url "https://jitpack.io" }
1414
}
1515

16+
// https://github.com/NativeScript/android-runtime/blob/master/test-app/app/build.gradle#L206
17+
def supportVersion = project.hasProperty("supportVersion") ? project.supportVersion : "27.0.1"
18+
1619
dependencies {
20+
configurations.all {
21+
resolutionStrategy.eachDependency { details ->
22+
def requested = details.requested
23+
if (requested.group == 'com.android.support') {
24+
// com.android.support major version should match buildToolsVersion
25+
details.useVersion "$supportVersion"
26+
}
27+
}
28+
}
1729
compile 'com.github.yalantis:ucrop:2.2.2-native'
1830
}

src/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"noImplicitAny": false,
1818
"noImplicitReturns": true,
1919
"noImplicitUseStrict": false,
20-
"noFallthroughCasesInSwitch": true
20+
"noFallthroughCasesInSwitch": true,
21+
"skipLibCheck": true
2122
},
2223
"exclude": [
2324
"node_modules"

0 commit comments

Comments
 (0)