Skip to content

Commit 80cb122

Browse files
authored
Add expo 44 (#389)
1 parent e242d04 commit 80cb122

File tree

73 files changed

+16595
-4
lines changed

Some content is hidden

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

73 files changed

+16595
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,14 @@ workflows:
348348
- test-expo-ios:
349349
matrix:
350350
parameters:
351-
expo-version: ['43']
351+
expo-version: ['43', '44']
352352
requires:
353353
- lint
354354
- test-js
355355
- test-expo-web:
356356
matrix:
357357
parameters:
358-
expo-version: ['43']
358+
expo-version: ['43', '44']
359359
requires:
360360
- lint
361361
- test-js

platforms/expo/43/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
"puppeteer": "^13.0.1"
3636
},
3737
"jest": {
38-
"preset": "jest-expo-puppeteer"
38+
"preset": "jest-expo-puppeteer",
39+
"projects": [
40+
"../../jest-puppeteer"
41+
]
3942
},
4043
"private": true
4144
}

platforms/expo/44/.buckconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
[android]
3+
target = Google Inc.:Google APIs:23
4+
5+
[maven_repositories]
6+
central = https://repo1.maven.org/maven2

platforms/expo/44/.detoxrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"testRunner": "jest",
3+
"runnerConfig": "../../detox/config.json",
4+
"skipLegacyWorkersInjection": true,
5+
"apps": {
6+
"ios": {
7+
"type": "ios.app",
8+
"binaryPath": "tmp/44.app"
9+
}
10+
},
11+
"devices": {
12+
"simulator": {
13+
"type": "ios.simulator",
14+
"device": {
15+
"type": "iPhone 11 Pro"
16+
}
17+
}
18+
},
19+
"configurations": {
20+
"ios": {
21+
"device": "simulator",
22+
"app": "ios"
23+
}
24+
}
25+
}

platforms/expo/44/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxproj -text

platforms/expo/44/.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
project.xcworkspace
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
*.hprof
33+
34+
# node.js
35+
#
36+
node_modules/
37+
npm-debug.log
38+
yarn-error.log
39+
40+
# BUCK
41+
buck-out/
42+
\.buckd/
43+
*.keystore
44+
!debug.keystore
45+
46+
# Bundle artifacts
47+
*.jsbundle
48+
49+
# CocoaPods
50+
/ios/Pods/
51+
52+
# Expo
53+
.expo/
54+
web-build/
55+
dist/

platforms/expo/44/App.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { StatusBar } from 'expo-status-bar';
2+
import React from 'react';
3+
import { StyleSheet, View } from 'react-native';
4+
5+
import TestPolyfill from '../../detox/TestPolyfill';
6+
7+
export default function App() {
8+
return (
9+
<View style={styles.container}>
10+
<TestPolyfill />
11+
<StatusBar style="auto" />
12+
</View>
13+
);
14+
}
15+
16+
const styles = StyleSheet.create({
17+
container: {
18+
flex: 1,
19+
backgroundColor: '#fff',
20+
alignItems: 'center',
21+
justifyContent: 'center',
22+
},
23+
});

platforms/expo/44/android/app/BUCK

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# To learn about Buck see [Docs](https://buckbuild.com/).
2+
# To run your application with Buck:
3+
# - install Buck
4+
# - `npm start` - to start the packager
5+
# - `cd android`
6+
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7+
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8+
# - `buck install -r android/app` - compile, install and run application
9+
#
10+
11+
load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12+
13+
lib_deps = []
14+
15+
create_aar_targets(glob(["libs/*.aar"]))
16+
17+
create_jar_targets(glob(["libs/*.jar"]))
18+
19+
android_library(
20+
name = "all-libs",
21+
exported_deps = lib_deps,
22+
)
23+
24+
android_library(
25+
name = "app-code",
26+
srcs = glob([
27+
"src/main/java/**/*.java",
28+
]),
29+
deps = [
30+
":all-libs",
31+
":build_config",
32+
":res",
33+
],
34+
)
35+
36+
android_build_config(
37+
name = "build_config",
38+
package = "com.44",
39+
)
40+
41+
android_resource(
42+
name = "res",
43+
package = "com.44",
44+
res = "src/main/res",
45+
)
46+
47+
android_binary(
48+
name = "app",
49+
keystore = "//android/keystores:debug",
50+
manifest = "src/main/AndroidManifest.xml",
51+
package_type = "debug",
52+
deps = [
53+
":app-code",
54+
],
55+
)

0 commit comments

Comments
 (0)