Repository navigation
Expand file tree
/
Copy pathdevbox.json
More file actions
65 lines (65 loc) · 2.63 KB
/
Copy pathdevbox.json
File metadata and controls
65 lines (65 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.2/.schema/devbox.schema.json",
"include": [
"github:segment-integrations/devbox-plugins?dir=plugins/android",
"github:segment-integrations/devbox-plugins?dir=plugins/ios"
],
"packages": {
"flutter": "3.41.9-sdk-links",
"jdk17": "latest",
"gradle": "latest"
},
"env": {
"IOS_APP_ARTIFACT": "example/build/DerivedData/Build/Products/Debug-iphonesimulator/Runner.app",
"ANDROID_APP_ID": "com.segment.analytics_example",
"ANDROID_APP_APK": "example/android/app/build/outputs/apk/debug/app-debug.apk",
"ANDROID_LOCAL_SDK": "1"
},
"shell": {
"init_hook": [
"export PROJECT_ROOT=\"$(git rev-parse --show-toplevel 2>/dev/null || echo $DEVBOX_PROJECT_ROOT)\"",
"export ANDROID_SDK_ROOT=\"${ANDROID_SDK_ROOT:-$HOME/Library/Android/sdk}\"",
"export PATH=\"$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/emulator:$ANDROID_SDK_ROOT/platform-tools:$PATH\""
],
"scripts": {
"get": ["cd \"$PROJECT_ROOT/packages/core\" && flutter pub get"],
"analyze": ["cd \"$PROJECT_ROOT/packages/core\" && flutter analyze"],
"test": ["cd \"$PROJECT_ROOT/packages/core\" && flutter test --coverage"],
"check": [
"devbox run get",
"devbox run analyze",
"devbox run test"
],
"codegen": ["cd \"$PROJECT_ROOT/packages/core\" && bash build_json_models.sh"],
"pigeon": ["cd \"$PROJECT_ROOT/packages/core\" && bash build_pigeon_plugins.sh"],
"build:ios": [
"cd \"$PROJECT_ROOT/example\" && flutter pub get",
"cd \"$PROJECT_ROOT/example/ios\" && pod install",
"chmod -R u+w \"$PROJECT_ROOT/example/build/DerivedData\" 2>/dev/null || true",
"xcodebuild -workspace \"$PROJECT_ROOT/example/ios/Runner.xcworkspace\" -scheme Runner -configuration Debug -destination 'generic/platform=iOS Simulator' -derivedDataPath \"$PROJECT_ROOT/example/build/DerivedData\" build CODE_SIGNING_ALLOWED=NO STRIP_INSTALLED_PRODUCT=NO DEPLOYMENT_POSTPROCESSING=NO"
],
"build:android": [
"cd \"$PROJECT_ROOT/example\" && flutter pub get",
"cd \"$PROJECT_ROOT/example\" && flutter build apk --debug"
],
"start:emu": [
"android.sh emulator start \"${1:-}\""
],
"stop:emu": [
"android.sh emulator stop"
],
"start:android": [
"android.sh run ${1:-${ANDROID_DEFAULT_DEVICE:-max}}"
],
"start:sim": [
"ios.sh simulator start \"${1:-}\""
],
"stop:sim": [
"ios.sh simulator stop"
],
"start:app": [
"ios.sh run \"${1:-}\""
]
}
}
}