Skip to content

Commit 6c4ac2a

Browse files
committed
feat: update example version
1 parent b080661 commit 6c4ac2a

16 files changed

Lines changed: 5728 additions & 5691 deletions

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.gradle/
77
.idea/
88
.vs/
9+
.xcode.env
910
Pods/
1011
build/
1112
dist/

example/android/build.gradle

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
buildscript {
22
def androidTestAppDir = "../node_modules/react-native-test-app/android"
33
apply(from: "${androidTestAppDir}/dependencies.gradle")
4-
apply(from: "${androidTestAppDir}/test-app-util.gradle")
54

65
repositories {
76
mavenCentral()
87
google()
98
}
109

1110
dependencies {
12-
classpath("com.android.tools.build:gradle:${androidPluginVersion}")
13-
14-
if (isNewArchitectureEnabled(project)) {
15-
classpath("com.facebook.react:react-native-gradle-plugin")
16-
classpath("de.undercouch:gradle-download-task:5.1.2")
11+
getReactNativeDependencies().each { dependency ->
12+
classpath(dependency)
1713
}
1814
}
1915
}

example/android/gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ android.enableJetifier=true
2929

3030
# Version of Flipper to use with React Native. Default value is whatever React
3131
# Native defaults to. To disable Flipper, set it to `false`.
32-
#FLIPPER_VERSION=0.125.0
32+
#FLIPPER_VERSION=0.182.0
3333

3434
# Enable Fabric at runtime.
3535
#USE_FABRIC=1
@@ -39,7 +39,7 @@ android.enableJetifier=true
3939
#newArchEnabled=true
4040

4141
# Uncomment the line below if building react-native from source
42-
#ANDROID_NDK_VERSION=21.4.7075529
42+
#ANDROID_NDK_VERSION=23.1.7779620
4343

4444
# Version of Kotlin to build against.
45-
#KOTLIN_VERSION=1.7.10
45+
#KOTLIN_VERSION=1.7.22
1.29 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

example/android/gradlew

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/android/gradlew.bat

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/app.json

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@
44
"components": [
55
{
66
"appKey": "MaskedViewExample",
7-
"displayName": "Base example"
8-
},
9-
{
10-
"appKey": "MaskedViewImageExample",
11-
"displayName": "Image example"
12-
},
13-
{
14-
"appKey": "MaskedViewTextExample",
15-
"displayName": "Text example"
7+
"displayName": "MaskedViewExample"
168
}
179
],
1810
"resources": {
19-
"android": ["dist/res", "dist/main.android.jsbundle"],
20-
"ios": ["dist/assets", "dist/main.ios.jsbundle"],
21-
"macos": ["dist/assets", "dist/main.macos.jsbundle"],
22-
"windows": ["dist/assets", "dist/main.windows.bundle"]
11+
"android": [
12+
"dist/res",
13+
"dist/main.android.jsbundle"
14+
],
15+
"ios": [
16+
"dist/assets",
17+
"dist/main.ios.jsbundle"
18+
],
19+
"macos": [
20+
"dist/assets",
21+
"dist/main.macos.jsbundle"
22+
],
23+
"windows": [
24+
"dist/assets",
25+
"dist/main.windows.bundle"
26+
]
2327
}
2428
}

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require_relative '../node_modules/react-native-test-app/test_app'
22

3-
use_flipper!
3+
use_flipper! false if ENV['USE_FLIPPER'] == '0'
44

55
workspace 'MaskedViewExample.xcworkspace'
66

0 commit comments

Comments
 (0)