lucy-cli 2.0.0-alpha.9 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursorignore +4 -0
- package/.wix/debug.log +10 -0
- package/.yarnrc.yml +0 -1
- package/README.md +117 -102
- package/dist/args.d.ts +1 -6
- package/dist/args.js +102 -7
- package/dist/args.js.map +1 -0
- package/dist/commands/checks.d.ts +7 -0
- package/dist/commands/checks.js +47 -0
- package/dist/commands/checks.js.map +1 -0
- package/dist/commands/cleanup.d.ts +4 -0
- package/dist/commands/cleanup.js +10 -0
- package/dist/commands/cleanup.js.map +1 -0
- package/dist/commands/copy.d.ts +6 -0
- package/dist/commands/copy.js +20 -0
- package/dist/commands/copy.js.map +1 -0
- package/dist/commands/edit.d.ts +10 -0
- package/dist/commands/edit.js +67 -0
- package/dist/commands/edit.js.map +1 -0
- package/dist/commands/exec.d.ts +7 -0
- package/dist/commands/exec.js +69 -0
- package/dist/commands/exec.js.map +1 -0
- package/dist/commands/git.d.ts +8 -0
- package/dist/commands/git.js +104 -0
- package/dist/commands/git.js.map +1 -0
- package/dist/commands/home.d.ts +4 -0
- package/dist/commands/home.js +41 -0
- package/dist/commands/home.js.map +1 -0
- package/dist/commands/install.d.ts +9 -0
- package/dist/commands/install.js +178 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/read.d.ts +6 -0
- package/dist/commands/read.js +40 -0
- package/dist/commands/read.js.map +1 -0
- package/dist/commands/write.d.ts +7 -0
- package/dist/commands/write.js +28 -0
- package/dist/commands/write.js.map +1 -0
- package/dist/commands.js +1 -0
- package/dist/commands.js.map +1 -0
- package/dist/config.d.ts +29 -7
- package/dist/config.js +90 -26
- package/dist/config.js.map +1 -0
- package/dist/error.d.ts +1 -9
- package/dist/error.js +1 -2
- package/dist/error.js.map +1 -0
- package/dist/helpers.d.ts +9 -0
- package/dist/helpers.js +76 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +80 -10
- package/dist/index.js.map +1 -0
- package/dist/init/blocks.d.ts +5 -0
- package/dist/init/blocks.js +62 -0
- package/dist/init/blocks.js.map +1 -0
- package/dist/init/cargo.d.ts +2 -0
- package/dist/init/cargo.js +21 -0
- package/dist/init/cargo.js.map +1 -0
- package/dist/init/expo.d.ts +5 -0
- package/dist/init/expo.js +52 -0
- package/dist/init/expo.js.map +1 -0
- package/dist/init/gitModules.d.ts +2 -0
- package/dist/init/gitModules.js +13 -0
- package/dist/init/gitModules.js.map +1 -0
- package/dist/init/index.d.ts +3 -0
- package/dist/init/index.js +86 -0
- package/dist/init/index.js.map +1 -0
- package/dist/init/monorepo.d.ts +4 -0
- package/dist/init/monorepo.js +48 -0
- package/dist/init/monorepo.js.map +1 -0
- package/dist/init/prepareVelo.d.ts +2 -0
- package/dist/init/prepareVelo.js +16 -0
- package/dist/init/prepareVelo.js.map +1 -0
- package/dist/init/tauri.d.ts +5 -0
- package/dist/init/tauri.js +32 -0
- package/dist/init/tauri.js.map +1 -0
- package/dist/init/templates.d.ts +5 -0
- package/dist/init/templates.js +93 -0
- package/dist/init/templates.js.map +1 -0
- package/dist/init/velo.d.ts +5 -0
- package/dist/init/velo.js +61 -0
- package/dist/init/velo.js.map +1 -0
- package/dist/policy.js +1 -0
- package/dist/policy.js.map +1 -0
- package/dist/prepare.js +1 -0
- package/dist/prepare.js.map +1 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -0
- package/dist/runtime.js.map +1 -0
- package/dist/schemas/gulp.d.ts +25 -0
- package/dist/schemas/gulp.js +8 -0
- package/dist/schemas/gulp.js.map +1 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.js +10 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/lucy.d.ts +29 -0
- package/dist/schemas/lucy.js +42 -0
- package/dist/schemas/lucy.js.map +1 -0
- package/dist/schemas/tsconfig.js +2 -0
- package/dist/schemas/tsconfig.js.map +1 -0
- package/dist/schemas/types.d.ts +33 -0
- package/dist/schemas/types.js +5 -1
- package/dist/schemas/types.js.map +1 -0
- package/dist/states.js +1 -0
- package/dist/states.js.map +1 -0
- package/dist/tasks/Gulpfile.d.ts +4 -0
- package/dist/tasks/Gulpfile.js +111 -0
- package/dist/tasks/Gulpfile.js.map +1 -0
- package/dist/tasks/gulp/backend.d.ts +4 -0
- package/dist/tasks/gulp/backend.js +92 -0
- package/dist/tasks/gulp/backend.js.map +1 -0
- package/dist/tasks/gulp/checks.d.ts +4 -0
- package/dist/tasks/gulp/checks.js +203 -0
- package/dist/tasks/gulp/checks.js.map +1 -0
- package/dist/tasks/gulp/clean.d.ts +3 -0
- package/dist/tasks/gulp/clean.js +33 -0
- package/dist/tasks/gulp/clean.js.map +1 -0
- package/dist/tasks/gulp/copy.d.ts +3 -0
- package/dist/tasks/gulp/copy.js +34 -0
- package/dist/tasks/gulp/copy.js.map +1 -0
- package/dist/tasks/gulp/helpers.d.ts +3 -0
- package/dist/tasks/gulp/helpers.js +19 -0
- package/dist/tasks/gulp/helpers.js.map +1 -0
- package/dist/tasks/gulp/pages.d.ts +2 -0
- package/dist/tasks/gulp/pages.js +39 -0
- package/dist/tasks/gulp/pages.js.map +1 -0
- package/dist/tasks/gulp/pipeline.d.ts +1 -0
- package/dist/tasks/gulp/pipeline.js +29 -0
- package/dist/tasks/gulp/pipeline.js.map +1 -0
- package/dist/tasks/gulp/public.d.ts +3 -0
- package/dist/tasks/gulp/public.js +50 -0
- package/dist/tasks/gulp/public.js.map +1 -0
- package/dist/tasks/gulp/styles.d.ts +3 -0
- package/dist/tasks/gulp/styles.js +40 -0
- package/dist/tasks/gulp/styles.js.map +1 -0
- package/dist/tasks/gulp/templates.d.ts +2 -0
- package/dist/tasks/gulp/templates.js +45 -0
- package/dist/tasks/gulp/templates.js.map +1 -0
- package/dist/tasks/gulp/types.d.ts +4 -0
- package/dist/tasks/gulp/types.js +293 -0
- package/dist/tasks/gulp/types.js.map +1 -0
- package/dist/tasks/gulp/watchers.d.ts +3 -0
- package/dist/tasks/gulp/watchers.js +59 -0
- package/dist/tasks/gulp/watchers.js.map +1 -0
- package/dist/tasks/index.d.ts +4 -0
- package/dist/tasks/index.js +23 -0
- package/dist/tasks/index.js.map +1 -0
- package/dist/tasks/syncSettings.d.ts +3 -0
- package/dist/tasks/syncSettings.js +18 -0
- package/dist/tasks/syncSettings.js.map +1 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/logger.d.ts +17 -0
- package/dist/utils/logger.js +37 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/wix-sdk/check.d.ts +4 -0
- package/dist/wix-sdk/check.js +23 -0
- package/dist/wix-sdk/check.js.map +1 -0
- package/dist/wix-sdk/client.d.ts +10 -0
- package/dist/wix-sdk/client.js +18 -0
- package/dist/wix-sdk/client.js.map +1 -0
- package/dist/wix-sdk/index.d.ts +4 -0
- package/dist/wix-sdk/index.js +15 -0
- package/dist/wix-sdk/index.js.map +1 -0
- package/dist/wix-sdk/init.d.ts +4 -0
- package/dist/wix-sdk/init.js +51 -0
- package/dist/wix-sdk/init.js.map +1 -0
- package/dist/wix-sdk/run.d.ts +4 -0
- package/dist/wix-sdk/run.js +53 -0
- package/dist/wix-sdk/run.js.map +1 -0
- package/dist/wix-sync/client.d.ts +3 -0
- package/dist/wix-sync/client.js +5 -0
- package/dist/wix-sync/client.js.map +1 -0
- package/dist/wix-sync/export.d.ts +4 -0
- package/dist/wix-sync/export.js +15 -0
- package/dist/wix-sync/export.js.map +1 -0
- package/dist/wix-sync/import.d.ts +4 -0
- package/dist/wix-sync/import.js +26 -0
- package/dist/wix-sync/import.js.map +1 -0
- package/dist/wix-sync/index.d.ts +4 -0
- package/dist/wix-sync/index.js +35 -0
- package/dist/wix-sync/index.js.map +1 -0
- package/dist/wix-sync/init.d.ts +4 -0
- package/dist/wix-sync/init.js +74 -0
- package/dist/wix-sync/init.js.map +1 -0
- package/dist/wix-sync/is-alive.d.ts +4 -0
- package/dist/wix-sync/is-alive.js +23 -0
- package/dist/wix-sync/is-alive.js.map +1 -0
- package/dist/wix-sync/migrate.d.ts +4 -0
- package/dist/wix-sync/migrate.js +21 -0
- package/dist/wix-sync/migrate.js.map +1 -0
- package/dist/wix-sync/sync.d.ts +4 -0
- package/dist/wix-sync/sync.js +26 -0
- package/dist/wix-sync/sync.js.map +1 -0
- package/files/sync-data/data/test.csv +17 -0
- package/files/sync-data/files/lucy.jpg +0 -0
- package/files/sync-data/schema/test.json +11 -0
- package/files/templates/block[D]/files/.cursorignore +4 -0
- package/files/templates/block[D]/files/.stylelintrc.js +8 -0
- package/files/templates/block[D]/lucy.json +9 -0
- package/files/templates/cargo[D]/files/.cursorignore +4 -0
- package/files/templates/cargo[D]/files/.env +1 -0
- package/files/templates/cargo[D]/files/Cargo.toml +238 -0
- package/files/templates/cargo[D]/files/Makefile.toml +4 -0
- package/files/templates/cargo[D]/files/build/main.rs +35 -0
- package/files/templates/cargo[D]/files/config/beta.json +19 -0
- package/files/templates/cargo[D]/files/config/ci.json +15 -0
- package/files/templates/cargo[D]/files/config/default.json +71 -0
- package/files/templates/cargo[D]/files/config/development.json +10 -0
- package/files/templates/cargo[D]/files/config/produktion.json +5 -0
- package/files/templates/cargo[D]/files/config/stage.json +4 -0
- package/files/templates/cargo[D]/files/locales/todo.yml +3 -0
- package/files/templates/cargo[D]/files/public/index.html +1 -0
- package/files/templates/cargo[D]/lucy.json +15 -0
- package/files/templates/expo verse[D]/files/.stylelintrc.json +8 -0
- package/files/templates/expo verse[D]/files/.vscode/extensions.json +10 -0
- package/files/templates/expo verse[D]/files/.vscode/launch.json +54 -0
- package/files/templates/expo verse[D]/files/.vscode/settings.json +30 -0
- package/files/templates/expo verse[D]/files/.yarnrc.yml +8 -0
- package/files/templates/expo verse[D]/files/App.tsx +63 -0
- package/files/templates/expo verse[D]/files/DEBUGGING.md +126 -0
- package/files/templates/expo verse[D]/files/android/app/build.gradle +177 -0
- package/files/templates/expo verse[D]/files/android/app/debug.keystore +0 -0
- package/files/templates/expo verse[D]/files/android/app/proguard-rules.pro +14 -0
- package/files/templates/expo verse[D]/files/android/app/src/debug/AndroidManifest.xml +7 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/AndroidManifest.xml +33 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +65 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +57 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/colors.xml +6 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/strings.xml +7 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values/styles.xml +12 -0
- package/files/templates/expo verse[D]/files/android/app/src/main/res/values-night/colors.xml +3 -0
- package/files/templates/expo verse[D]/files/android/build.gradle +37 -0
- package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/files/templates/expo verse[D]/files/android/gradle.properties +59 -0
- package/files/templates/expo verse[D]/files/android/gradlew +251 -0
- package/files/templates/expo verse[D]/files/android/gradlew.bat +94 -0
- package/files/templates/expo verse[D]/files/android/settings.gradle +39 -0
- package/files/templates/expo verse[D]/files/app.config.ts +77 -0
- package/files/templates/expo verse[D]/files/assets/data/de.csv +949 -0
- package/files/templates/expo verse[D]/files/assets/data/en.csv +949 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
- package/files/{expo → templates/expo verse[D]/files}/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo verse[D]/files/assets/images/andorid/background.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/android-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/android-light.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/background.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-light.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/ios-tinted.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/splash-icon-dark.png +0 -0
- package/files/templates/expo verse[D]/files/assets/images/splash-icon-light.png +0 -0
- package/files/templates/expo verse[D]/files/components/MainScreen.tsx +299 -0
- package/files/templates/expo verse[D]/files/components/Share.tsx +132 -0
- package/files/templates/expo verse[D]/files/components/ui/dev.tsx +48 -0
- package/files/templates/expo verse[D]/files/constants/config.ts +30 -0
- package/files/templates/expo verse[D]/files/data/de.csv +219 -0
- package/files/templates/expo verse[D]/files/data/en.csv +219 -0
- package/files/templates/expo verse[D]/files/data/version.json +4 -0
- package/files/templates/expo verse[D]/files/eas.json +47 -0
- package/files/templates/expo verse[D]/files/eslint.config.mjs +185 -0
- package/files/templates/expo verse[D]/files/index.ts +28 -0
- package/files/templates/expo verse[D]/files/lib/content.ts +31 -0
- package/files/templates/expo verse[D]/files/lib/data.ts +180 -0
- package/files/templates/expo verse[D]/files/lib/helper.ts +54 -0
- package/files/templates/expo verse[D]/files/lib/index.ts +21 -0
- package/files/templates/expo verse[D]/files/lib/state.ts +128 -0
- package/files/templates/expo verse[D]/files/lib/storage.ts +17 -0
- package/files/templates/expo verse[D]/files/lib/taskManager/index.ts +38 -0
- package/files/templates/expo verse[D]/files/lib/taskManager/loadData.ts +14 -0
- package/files/templates/expo verse[D]/files/lib/utils/screenshot.ts +77 -0
- package/files/templates/expo verse[D]/files/metro.config.js +81 -0
- package/files/templates/expo verse[D]/files/models/index.ts +28 -0
- package/files/templates/expo verse[D]/files/package.json +102 -0
- package/files/templates/expo verse[D]/files/pnpm-workspace.yaml +3 -0
- package/files/templates/expo verse[D]/files/scripts/convert-verses.ts +309 -0
- package/files/templates/expo verse[D]/files/scripts/move-artifacts.ts +83 -0
- package/files/{expo → templates/expo verse[D]/files}/scripts/reset-project.ts +0 -0
- package/files/templates/expo verse[D]/files/tsconfig.json +45 -0
- package/files/templates/expo verse[D]/files/types/index.ts +4 -0
- package/files/templates/expo verse[D]/files/types/reset.d.ts +1 -0
- package/files/templates/expo verse[D]/lucy.json +86 -0
- package/files/templates/expo[D]/files/.cursorignore +4 -0
- package/files/templates/expo[D]/files/.nvmrc +1 -0
- package/files/templates/expo[D]/files/.prettierignore +23 -0
- package/files/templates/expo[D]/files/.prettierrc.js +16 -0
- package/files/templates/expo[D]/files/.stylelintrc.js +8 -0
- package/files/templates/expo[D]/files/.yarnrc +1 -0
- package/files/templates/expo[D]/files/README.md +45 -0
- package/files/templates/expo[D]/files/app.config.ts +69 -0
- package/files/templates/expo[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo[D]/files/babel.config.js +10 -0
- package/files/templates/expo[D]/files/constants/theme.ts +18 -0
- package/files/{expo → templates/expo[D]/files}/eas.json +9 -3
- package/files/templates/expo[D]/files/global.css +47 -0
- package/files/templates/expo[D]/files/hooks/useColorScheme.ts +17 -0
- package/files/templates/expo[D]/files/lib/data.ts +197 -0
- package/files/templates/expo[D]/files/lib/utils/index.ts +11 -0
- package/files/templates/expo[D]/files/lib/utils/polyfills.ts +29 -0
- package/files/{expo → templates/expo[D]/files}/metro.config.js +6 -0
- package/files/templates/expo[D]/files/nativewind-env.d.ts +1 -0
- package/files/templates/expo[D]/files/pnpm-workspace.yaml +3 -0
- package/files/templates/expo[D]/files/scripts/reset-project.ts +116 -0
- package/files/templates/expo[D]/files/tailwind.config.js +63 -0
- package/files/templates/expo[D]/lucy.json +86 -0
- package/files/templates/monorepo[D]/files/.cursorignore +4 -0
- package/files/templates/monorepo[D]/files/.editorconfig +10 -0
- package/files/templates/monorepo[D]/files/.nvmrc +1 -0
- package/files/templates/monorepo[D]/files/.prettierignore +23 -0
- package/files/templates/monorepo[D]/files/.prettierrc.json +15 -0
- package/files/templates/monorepo[D]/files/.stylelintrc.js +8 -0
- package/files/templates/monorepo[D]/files/.yarnrc +1 -0
- package/files/{velo → templates/monorepo[D]/files}/.yarnrc.yml +1 -1
- package/files/templates/monorepo[D]/files/README.md +109 -0
- package/files/templates/monorepo[D]/files/currents.config.ts +5 -0
- package/files/templates/monorepo[D]/files/nx.json +25 -0
- package/files/templates/monorepo[D]/files/pnpm-workspace.yaml +11 -0
- package/files/templates/monorepo[D]/files/tsconfig.json +6 -0
- package/files/templates/monorepo[D]/files/typedoc.json +25 -0
- package/files/templates/monorepo[D]/files/vitest.config.ts +27 -0
- package/files/templates/monorepo[D]/lucy.json +69 -0
- package/files/templates/tauri[D]/files/.cursorignore +4 -0
- package/files/templates/tauri[D]/lucy.json +9 -0
- package/files/templates/velo[D]/files/.cursorignore +4 -0
- package/files/templates/velo[D]/files/.prettierignore +23 -0
- package/files/templates/velo[D]/files/.prettierrc.js +16 -0
- package/files/templates/velo[D]/files/.yarnrc.yml +2 -0
- package/files/{velo → templates/velo[D]/files}/local.tsconfig.json +6 -5
- package/files/templates/velo[D]/files/typescript/backend/config/authz.ts +47 -0
- package/files/templates/velo[D]/files/typescript/backend/config/env.ts +8 -0
- package/files/templates/velo[D]/files/typescript/backend/config/index.ts +26 -0
- package/files/templates/velo[D]/files/typescript/backend/config/mail.ts +10 -0
- package/files/templates/velo[D]/files/typescript/backend/config/nats.ts +6 -0
- package/files/templates/velo[D]/files/typescript/public/config/env.ts +9 -0
- package/files/templates/velo[D]/files/typescript/public/config/index.ts +76 -0
- package/files/templates/velo[D]/files/typescript/public/config/locales.ts +30 -0
- package/files/templates/velo[D]/files/typescript/public/config/theme.ts +110 -0
- package/files/templates/velo[D]/files/typescript/public/i18n/default.ts +123 -0
- package/files/templates/velo[D]/files/typescript/public/i18n/en.ts +117 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts +21 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts +38 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/plan.model.ts +94 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/stage.model.ts +14 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts +80 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/tag.model.ts +15 -0
- package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts +16 -0
- package/files/templates/velo[D]/files/typescript/public/models/modules/authz.model.ts +31 -0
- package/files/templates/velo[D]/files/typescript/public/models/modules/organization.ts +20 -0
- package/files/templates/velo[D]/files/typescript/public/models/splitwise.model.ts +18 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/local.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/memory.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/store/session.model.ts +10 -0
- package/files/templates/velo[D]/files/typescript/public/models/wix/ecom/payment.ts +236 -0
- package/files/templates/velo[D]/files/typescript/styles/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/styles/global.scss +0 -0
- package/files/templates/velo[D]/lucy.json +137 -0
- package/lucy +4 -0
- package/lucy.jpg +0 -0
- package/mitarbeiter-login.html +188 -0
- package/old/Gulpfile.d.ts +34 -0
- package/old/Gulpfile.js +116 -0
- package/old/Gulpfile.js.map +1 -0
- package/old/gulp/backend.d.ts +3 -0
- package/old/gulp/backend.js +92 -0
- package/old/gulp/backend.js.map +1 -0
- package/old/gulp/checks.d.ts +3 -0
- package/old/gulp/checks.js +205 -0
- package/old/gulp/checks.js.map +1 -0
- package/old/gulp/clean.d.ts +3 -0
- package/old/gulp/clean.js +29 -0
- package/old/gulp/clean.js.map +1 -0
- package/old/gulp/copy.d.ts +2 -0
- package/old/gulp/copy.js +34 -0
- package/old/gulp/copy.js.map +1 -0
- package/old/gulp/helpers.d.ts +2 -0
- package/old/gulp/helpers.js +25 -0
- package/old/gulp/helpers.js.map +1 -0
- package/old/gulp/pages.d.ts +2 -0
- package/old/gulp/pages.js +37 -0
- package/old/gulp/pages.js.map +1 -0
- package/old/gulp/pipeline.d.ts +1 -0
- package/old/gulp/pipeline.js +29 -0
- package/old/gulp/pipeline.js.map +1 -0
- package/old/gulp/public.d.ts +2 -0
- package/old/gulp/public.js +50 -0
- package/old/gulp/public.js.map +1 -0
- package/old/gulp/styles.d.ts +2 -0
- package/old/gulp/styles.js +40 -0
- package/old/gulp/styles.js.map +1 -0
- package/old/gulp/templates.d.ts +2 -0
- package/old/gulp/templates.js +33 -0
- package/old/gulp/templates.js.map +1 -0
- package/old/gulp/types.d.ts +4 -0
- package/old/gulp/types.js +289 -0
- package/old/gulp/types.js.map +1 -0
- package/old/gulp/watchers.d.ts +9 -0
- package/old/gulp/watchers.js +59 -0
- package/old/gulp/watchers.js.map +1 -0
- package/old/helpers.d.ts +32 -0
- package/old/helpers.js +267 -0
- package/old/helpers.js.map +1 -0
- package/{src copy/helpers.ts → old/helpers.ts} +1 -1
- package/old/index.d.ts +59 -0
- package/old/index.js +288 -0
- package/old/index.js.map +1 -0
- package/{src copy → old}/index.ts +0 -0
- package/old/init.d.ts +8 -0
- package/old/init.js +165 -0
- package/old/init.js.map +1 -0
- package/old/models.d.ts +37 -0
- package/old/models.js +2 -0
- package/old/models.js.map +1 -0
- package/old/prepare.d.ts +8 -0
- package/old/prepare.js +20 -0
- package/old/prepare.js.map +1 -0
- package/old/schemas/index.d.ts +0 -0
- package/old/schemas/index.js +2 -0
- package/old/schemas/index.js.map +1 -0
- package/old/schemas/index.ts +0 -0
- package/old/schemas/types.d.ts +0 -0
- package/old/schemas/types.js +2 -0
- package/old/schemas/types.js.map +1 -0
- package/old/schemas/types.ts +0 -0
- package/old/sync.d.ts +2 -0
- package/old/sync.js +88 -0
- package/old/sync.js.map +1 -0
- package/package.json +28 -28
- package/patches/velo-sync+0.0.9.patch +13 -0
- package/pnpm-workspace.yaml +6 -0
- package/src/args.ts +102 -17
- package/src/commands/checks.ts +51 -0
- package/src/commands/cleanup.ts +11 -0
- package/src/commands/copy.ts +28 -0
- package/src/commands/edit.ts +81 -0
- package/src/commands/exec.ts +73 -0
- package/src/commands/git.ts +113 -0
- package/src/commands/home.ts +56 -0
- package/src/commands/install.ts +269 -0
- package/src/commands/read.ts +45 -0
- package/src/commands/write.ts +45 -0
- package/src/config.ts +116 -35
- package/src/error.ts +1 -2
- package/src/helpers.ts +84 -0
- package/src/index.ts +91 -14
- package/src/init/blocks.ts +85 -0
- package/src/init/cargo.ts +25 -0
- package/src/init/expo.ts +69 -0
- package/src/init/gitModules.ts +15 -0
- package/src/init/index.ts +89 -0
- package/src/init/monorepo.ts +72 -0
- package/src/init/prepareVelo.ts +19 -0
- package/src/init/tauri.ts +42 -0
- package/src/init/templates.ts +98 -0
- package/src/init/velo.ts +66 -0
- package/src/runtime.ts +1 -0
- package/src/schemas/gulp.ts +31 -0
- package/src/schemas/index.ts +15 -1
- package/src/schemas/lucy.ts +43 -0
- package/src/schemas/types.ts +40 -0
- package/src/tasks/Gulpfile.ts +207 -0
- package/src/tasks/gulp/backend.ts +113 -0
- package/src/tasks/gulp/checks.ts +219 -0
- package/src/tasks/gulp/clean.ts +38 -0
- package/src/tasks/gulp/copy.ts +38 -0
- package/src/tasks/gulp/helpers.ts +18 -0
- package/src/tasks/gulp/pages.ts +43 -0
- package/src/tasks/gulp/pipeline.ts +31 -0
- package/src/tasks/gulp/public.ts +61 -0
- package/src/tasks/gulp/styles.ts +47 -0
- package/src/tasks/gulp/templates.ts +53 -0
- package/src/tasks/gulp/types.ts +310 -0
- package/src/tasks/gulp/watchers.ts +97 -0
- package/src/tasks/index.ts +24 -0
- package/src/tasks/syncSettings.ts +21 -0
- package/src/types.d.ts +1 -1
- package/src/utils/index.ts +0 -0
- package/src/utils/logger.ts +40 -0
- package/src/wix-sdk/check.ts +24 -0
- package/src/wix-sdk/client.ts +18 -0
- package/src/wix-sdk/index.ts +17 -0
- package/src/wix-sdk/init.ts +54 -0
- package/src/wix-sdk/run.ts +56 -0
- package/src/wix-sync/client.ts +6 -0
- package/src/wix-sync/export.ts +19 -0
- package/src/wix-sync/import.ts +27 -0
- package/src/wix-sync/index.ts +36 -0
- package/src/wix-sync/init.ts +77 -0
- package/src/wix-sync/is-alive.ts +25 -0
- package/src/wix-sync/migrate.ts +23 -0
- package/src/wix-sync/sync.ts +27 -0
- package/tsconfig.json +6 -5
- package/dist/init.d.ts +0 -4
- package/dist/init.js +0 -275
- package/dist/models.js +0 -1
- package/dist/params.d.ts +0 -7
- package/dist/params.js +0 -23
- package/files/expo/lib/data.ts +0 -48
- package/src/init.ts +0 -392
- /package/dist/{models.d.ts → schemas/tsconfig.d.ts} +0 -0
- /package/{files/expo/components/.gitkeep → dist/utils/index.d.ts} +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/.nvmrc +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/.prettierignore +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/.prettierrc.js +0 -0
- /package/files/{expo/components/ui/.gitkeep → templates/expo verse[D]/files/.vscode/tasks.json} +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/.yarnrc +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/README.md +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/babel.config.js +0 -0
- /package/files/{velo/typescript/__mocks__ → templates/expo verse[D]/files/components}/.gitkeep +0 -0
- /package/files/{velo/typescript/pages → templates/expo verse[D]/files/components/ui}/.gitkeep +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/constants/theme.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/global.css +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/hooks/useColorScheme.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/lib/utils/index.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/lib/utils/polyfills.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/lucy.json +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/nativewind-env.d.ts +0 -0
- /package/files/{expo → templates/expo verse[D]/files}/tailwind.config.js +0 -0
- /package/files/{expo → templates/expo[D]/files}/.yarnrc.yml +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/adaptive-icon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/favicon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/icon.png +0 -0
- /package/files/{expo → templates/expo[D]/files}/assets/images/splash-icon.png +0 -0
- /package/files/{velo/typescript/public → templates/expo[D]/files/components}/.gitkeep +0 -0
- /package/files/{velo/typescript/styles → templates/expo[D]/files/components/ui}/.gitkeep +0 -0
- /package/files/{expo → templates/expo[D]/files}/eslint.config.mjs +0 -0
- /package/files/{expo → templates/expo[D]/files}/index.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/client.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/error.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/lib/wix/index.ts +0 -0
- /package/files/{expo → templates/expo[D]/files}/tsconfig.json +0 -0
- /package/files/{expo → templates/expo[D]/files}/types/reset.d.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/.gitmodules +0 -0
- /package/files/{velo → templates/velo[D]/files}/.madgerc +0 -0
- /package/files/{velo → templates/velo[D]/files}/.nvmrc +0 -0
- /package/files/{velo → templates/velo[D]/files}/.stylelintrc.js +0 -0
- /package/files/{velo → templates/velo[D]/files}/currents.config.js +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/e2e/base/base.cy.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/fixtures/example.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/support/commands.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/support/e2e.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress/tsconfig.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/cypress.config.mjs +0 -0
- /package/files/{velo → templates/velo[D]/files}/eslint.config.mjs +0 -0
- /package/files/{velo → templates/velo[D]/files}/typedoc.json +0 -0
- /package/files/{velo/typescript/backend/data.ts → templates/velo[D]/files/typescript/__mocks__/.gitkeep} +0 -0
- /package/files/{velo/typescript/backend/events.ts → templates/velo[D]/files/typescript/backend/data.ts} +0 -0
- /package/files/{velo/typescript/public/scss/app.scss → templates/velo[D]/files/typescript/backend/events.ts} +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/http-functions.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/lib/http-functions/sync.ts +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/backend/permissions.json +0 -0
- /package/files/{velo/typescript/styles/global.scss → templates/velo[D]/files/typescript/pages/.gitkeep} +0 -0
- /package/{src copy/schemas/index.ts → files/templates/velo[D]/files/typescript/public/.gitkeep} +0 -0
- /package/{src copy/schemas/types.ts → files/templates/velo[D]/files/typescript/public/scss/app.scss} +0 -0
- /package/files/{velo → templates/velo[D]/files}/typescript/tsconfig.json +0 -0
- /package/files/{velo → templates/velo[D]/files}/vitest.config.ts +0 -0
- /package/{src copy → old}/Gulpfile.ts +0 -0
- /package/{src copy → old}/gulp/backend.ts +0 -0
- /package/{src copy → old}/gulp/checks.ts +0 -0
- /package/{src copy → old}/gulp/clean.ts +0 -0
- /package/{src copy → old}/gulp/copy.ts +0 -0
- /package/{src copy → old}/gulp/helpers.ts +0 -0
- /package/{src copy → old}/gulp/pages.ts +0 -0
- /package/{src copy → old}/gulp/pipeline.ts +0 -0
- /package/{src copy → old}/gulp/public.ts +0 -0
- /package/{src copy → old}/gulp/styles.ts +0 -0
- /package/{src copy → old}/gulp/templates.ts +0 -0
- /package/{src copy → old}/gulp/types.ts +0 -0
- /package/{src copy → old}/gulp/watchers.ts +0 -0
- /package/{src copy → old}/init.ts +0 -0
- /package/{src copy → old}/models.ts +0 -0
- /package/{src copy → old}/prepare.ts +0 -0
- /package/{src copy → old}/settings.json +0 -0
- /package/{src copy → old}/sync.ts +0 -0
- /package/{src copy → old}/types.d.ts +0 -0
- /package/src/{models.ts → schemas/tsconfig.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
OK
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modules": {
|
|
3
|
+
"lucy-rust-lib": {
|
|
4
|
+
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-rust-lib.git",
|
|
5
|
+
"branch": "1.0.0",
|
|
6
|
+
"path": "lib"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"devDependencies": {},
|
|
10
|
+
"dependencies": {},
|
|
11
|
+
"scripts": {},
|
|
12
|
+
"initialized": false,
|
|
13
|
+
"type": "cargo",
|
|
14
|
+
"packageManager": "pnpm"
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "Debug Expo (Development Build)",
|
|
6
|
+
"type": "expo",
|
|
7
|
+
"request": "attach",
|
|
8
|
+
"projectRoot": "${workspaceFolder}",
|
|
9
|
+
"bundlerPort": "8081",
|
|
10
|
+
"bundlerHost": "127.0.0.1",
|
|
11
|
+
"sourceMaps": true,
|
|
12
|
+
"sourceMapPathOverrides": {
|
|
13
|
+
"webpack:///./*": "${workspaceFolder}/*",
|
|
14
|
+
"webpack:///src/*": "${workspaceFolder}/*",
|
|
15
|
+
"webpack:///*": "*"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "Debug Expo Web",
|
|
20
|
+
"type": "node",
|
|
21
|
+
"request": "launch",
|
|
22
|
+
"program": "${workspaceFolder}/node_modules/.bin/expo",
|
|
23
|
+
"args": ["start", "--web"],
|
|
24
|
+
"cwd": "${workspaceFolder}",
|
|
25
|
+
"console": "integratedTerminal",
|
|
26
|
+
"sourceMaps": true,
|
|
27
|
+
"skipFiles": ["<node_internals>/**"]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "Attach to Hermes (React Native Direct)",
|
|
31
|
+
"request": "attach",
|
|
32
|
+
"type": "reactnativedirect",
|
|
33
|
+
"cwd": "${workspaceFolder}",
|
|
34
|
+
"address": "localhost",
|
|
35
|
+
"port": 8082,
|
|
36
|
+
"sourceMaps": true,
|
|
37
|
+
"sourceMapPathOverrides": {
|
|
38
|
+
"webpack:///./*": "${workspaceFolder}/*",
|
|
39
|
+
"webpack:///src/*": "${workspaceFolder}/*"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Debug TypeScript Scripts",
|
|
44
|
+
"type": "node",
|
|
45
|
+
"request": "launch",
|
|
46
|
+
"program": "${workspaceFolder}/node_modules/.bin/tsx",
|
|
47
|
+
"args": ["${file}"],
|
|
48
|
+
"cwd": "${workspaceFolder}",
|
|
49
|
+
"console": "integratedTerminal",
|
|
50
|
+
"sourceMaps": true,
|
|
51
|
+
"skipFiles": ["<node_internals>/**"]
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"typescript.preferences.includePackageJsonAutoImports": "on",
|
|
3
|
+
"typescript.suggest.autoImports": true,
|
|
4
|
+
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
5
|
+
"editor.codeActionsOnSave": {
|
|
6
|
+
"source.fixAll.eslint": "explicit"
|
|
7
|
+
},
|
|
8
|
+
"eslint.validate": [
|
|
9
|
+
"javascript",
|
|
10
|
+
"javascriptreact",
|
|
11
|
+
"typescript",
|
|
12
|
+
"typescriptreact"
|
|
13
|
+
],
|
|
14
|
+
"debug.javascript.usePreview": true,
|
|
15
|
+
"debug.javascript.breakOnConditionalError": true,
|
|
16
|
+
"debug.node.autoAttach": "disabled",
|
|
17
|
+
"debug.terminal.clearBeforeReusing": true,
|
|
18
|
+
"files.exclude": {
|
|
19
|
+
"**/.expo": true,
|
|
20
|
+
"**/.expo-shared": true,
|
|
21
|
+
"**/node_modules": true
|
|
22
|
+
},
|
|
23
|
+
"search.exclude": {
|
|
24
|
+
"**/.expo": true,
|
|
25
|
+
"**/.expo-shared": true,
|
|
26
|
+
"**/node_modules": true,
|
|
27
|
+
"**/build": true,
|
|
28
|
+
"**/dist": true
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { useFonts } from 'expo-font';
|
|
2
|
+
import * as SplashScreen from 'expo-splash-screen';
|
|
3
|
+
import { StatusBar } from 'expo-status-bar';
|
|
4
|
+
import { useEffect, useRef } from 'react';
|
|
5
|
+
import { StyleSheet, View } from 'react-native';
|
|
6
|
+
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
7
|
+
|
|
8
|
+
import MainScreen from './components/MainScreen';
|
|
9
|
+
import Dev from './components/ui/dev';
|
|
10
|
+
import { appLoadedResolver } from './lib/taskManager';
|
|
11
|
+
|
|
12
|
+
void SplashScreen.preventAutoHideAsync();
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This is the main entry point for the app.
|
|
16
|
+
* It is used to initialize the app and to hide the splash screen.
|
|
17
|
+
* It also calls the resolver function to indicate that the app has mounted.
|
|
18
|
+
* @returns The main app component.
|
|
19
|
+
*/
|
|
20
|
+
export default function App() {
|
|
21
|
+
const [loaded, error] = useFonts({
|
|
22
|
+
'Playfair-Bold': require('@/assets/fonts/PlayfairDisplay-Bold.ttf'),
|
|
23
|
+
'Playfair-Regular': require('@/assets/fonts/PlayfairDisplay-Regular.ttf'),
|
|
24
|
+
'Playfair-Italic': require('@/assets/fonts/PlayfairDisplay-Italic.ttf'),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const hasResolvedOnceRef = useRef(false);
|
|
28
|
+
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (__DEV__ && appLoadedResolver && !hasResolvedOnceRef.current) {
|
|
31
|
+
hasResolvedOnceRef.current = true;
|
|
32
|
+
appLoadedResolver();
|
|
33
|
+
// eslint-disable-next-line no-console
|
|
34
|
+
console.log('Resolver called');
|
|
35
|
+
}
|
|
36
|
+
if (loaded || error) {
|
|
37
|
+
void SplashScreen.hideAsync();
|
|
38
|
+
}
|
|
39
|
+
}, [loaded, error]);
|
|
40
|
+
|
|
41
|
+
if (!loaded && !error) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<SafeAreaProvider>
|
|
47
|
+
<View style={styles.container}>
|
|
48
|
+
<MainScreen />
|
|
49
|
+
<StatusBar style="auto" />
|
|
50
|
+
<Dev />
|
|
51
|
+
</View>
|
|
52
|
+
</SafeAreaProvider>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const styles = StyleSheet.create({
|
|
57
|
+
container: {
|
|
58
|
+
flex: 1,
|
|
59
|
+
backgroundColor: '#fff',
|
|
60
|
+
alignItems: 'center',
|
|
61
|
+
justifyContent: 'center',
|
|
62
|
+
},
|
|
63
|
+
});
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# TypeScript Debugging Guide for Daily Verse
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
This guide explains how to properly debug your React Native/Expo TypeScript application using VS Code.
|
|
5
|
+
|
|
6
|
+
## Prerequisites
|
|
7
|
+
1. **VS Code Extensions** (install these):
|
|
8
|
+
- Expo Tools (`expo.vscode-expo-tools`)
|
|
9
|
+
- TypeScript and JavaScript Language Features
|
|
10
|
+
- ESLint
|
|
11
|
+
- Prettier
|
|
12
|
+
|
|
13
|
+
2. **Development Setup**:
|
|
14
|
+
- Ensure you have `expo-dev-client` installed (✅ already in package.json)
|
|
15
|
+
- Source maps are enabled (✅ configured in tsconfig.json and metro.config.js)
|
|
16
|
+
|
|
17
|
+
## Debugging Configurations
|
|
18
|
+
|
|
19
|
+
### 1. Debug Expo (Development Build) - **RECOMMENDED**
|
|
20
|
+
**Use this for**: Debugging React Native app on device/simulator
|
|
21
|
+
**Steps**:
|
|
22
|
+
1. Start Expo development server: `pnpm dev`
|
|
23
|
+
2. Open your app on device/simulator
|
|
24
|
+
3. In VS Code: Run & Debug → "Debug Expo (Development Build)"
|
|
25
|
+
4. Set breakpoints in your TypeScript files
|
|
26
|
+
5. Interact with your app to hit breakpoints
|
|
27
|
+
|
|
28
|
+
### 2. Debug Expo Web
|
|
29
|
+
**Use this for**: Debugging web version of your app
|
|
30
|
+
**Steps**:
|
|
31
|
+
1. In VS Code: Run & Debug → "Debug Expo Web"
|
|
32
|
+
2. This will start the web server and open browser
|
|
33
|
+
3. Set breakpoints in your TypeScript files
|
|
34
|
+
4. Interact with web app to hit breakpoints
|
|
35
|
+
|
|
36
|
+
### 3. Attach to Hermes (React Native Direct)
|
|
37
|
+
**Use this for**: Advanced debugging with Hermes engine
|
|
38
|
+
**Steps**:
|
|
39
|
+
1. Start your app with Hermes debugging enabled
|
|
40
|
+
2. In VS Code: Run & Debug → "Attach to Hermes (React Native Direct)"
|
|
41
|
+
3. Set breakpoints and debug
|
|
42
|
+
|
|
43
|
+
### 4. Debug TypeScript Scripts
|
|
44
|
+
**Use this for**: Debugging standalone TypeScript files (like scripts/)
|
|
45
|
+
**Steps**:
|
|
46
|
+
1. Open the TypeScript file you want to debug
|
|
47
|
+
2. In VS Code: Run & Debug → "Debug TypeScript Scripts"
|
|
48
|
+
3. This will run the current file with tsx
|
|
49
|
+
|
|
50
|
+
## Setting Breakpoints
|
|
51
|
+
|
|
52
|
+
### ✅ DO:
|
|
53
|
+
- Set breakpoints in `.ts` and `.tsx` files
|
|
54
|
+
- Use conditional breakpoints for specific scenarios
|
|
55
|
+
- Set breakpoints in component methods, hooks, and utility functions
|
|
56
|
+
- Use logpoints for non-intrusive debugging
|
|
57
|
+
|
|
58
|
+
### ❌ DON'T:
|
|
59
|
+
- Set breakpoints in `node_modules` files
|
|
60
|
+
- Set breakpoints in generated/compiled files
|
|
61
|
+
- Set breakpoints in files without source maps
|
|
62
|
+
|
|
63
|
+
## Common Issues & Solutions
|
|
64
|
+
|
|
65
|
+
### Issue: Breakpoints not hitting
|
|
66
|
+
**Solutions**:
|
|
67
|
+
1. Ensure source maps are enabled (✅ already configured)
|
|
68
|
+
2. Make sure you're using the correct debug configuration
|
|
69
|
+
3. Verify the development server is running
|
|
70
|
+
4. Check that you're debugging the right platform (web vs mobile)
|
|
71
|
+
5. Restart the debug session
|
|
72
|
+
|
|
73
|
+
### Issue: "Cannot connect to runtime process"
|
|
74
|
+
**Solutions**:
|
|
75
|
+
1. Ensure Expo development server is running (`pnpm dev`)
|
|
76
|
+
2. Make sure your app is open and connected to the development server
|
|
77
|
+
3. Check that ports 8081 and 8082 are not blocked
|
|
78
|
+
4. Try restarting both the Expo server and debug session
|
|
79
|
+
|
|
80
|
+
### Issue: Source maps not working
|
|
81
|
+
**Solutions**:
|
|
82
|
+
1. Clear Metro cache: `pnpm dev --clear`
|
|
83
|
+
2. Restart TypeScript server in VS Code: Cmd+Shift+P → "TypeScript: Restart TS Server"
|
|
84
|
+
3. Check that `sourceMap: true` is in tsconfig.json (✅ already set)
|
|
85
|
+
|
|
86
|
+
## Best Practices
|
|
87
|
+
|
|
88
|
+
1. **Use Development Builds**: Always debug with development builds, not production
|
|
89
|
+
2. **Clear Cache**: When in doubt, clear Metro cache with `--clear` flag
|
|
90
|
+
3. **Restart Services**: Restart both Expo server and VS Code debug session if issues persist
|
|
91
|
+
4. **Check Console**: Monitor both VS Code Debug Console and Expo development tools
|
|
92
|
+
5. **Use Logpoints**: For quick debugging without stopping execution
|
|
93
|
+
|
|
94
|
+
## File Structure for Debugging
|
|
95
|
+
```
|
|
96
|
+
.vscode/
|
|
97
|
+
├── launch.json # Debug configurations
|
|
98
|
+
├── settings.json # VS Code workspace settings
|
|
99
|
+
└── extensions.json # Recommended extensions
|
|
100
|
+
|
|
101
|
+
metro.config.js # Metro bundler config (source maps enabled)
|
|
102
|
+
tsconfig.json # TypeScript config (source maps enabled)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Quick Start
|
|
106
|
+
1. Install recommended VS Code extensions
|
|
107
|
+
2. Run `pnpm dev` to start Expo development server
|
|
108
|
+
3. Open your app on device/simulator
|
|
109
|
+
4. In VS Code: F5 or Run & Debug → "Debug Expo (Development Build)"
|
|
110
|
+
5. Set breakpoints in your TypeScript code
|
|
111
|
+
6. Interact with your app to trigger breakpoints
|
|
112
|
+
|
|
113
|
+
## Troubleshooting Commands
|
|
114
|
+
```bash
|
|
115
|
+
# Clear Metro cache
|
|
116
|
+
pnpm dev --clear
|
|
117
|
+
|
|
118
|
+
# Reset Expo
|
|
119
|
+
expo r -c
|
|
120
|
+
|
|
121
|
+
# Check Expo doctor
|
|
122
|
+
pnpm doctor
|
|
123
|
+
|
|
124
|
+
# Restart TypeScript server in VS Code
|
|
125
|
+
# Cmd+Shift+P → "TypeScript: Restart TS Server"
|
|
126
|
+
```
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
apply plugin: "com.android.application"
|
|
2
|
+
apply plugin: "org.jetbrains.kotlin.android"
|
|
3
|
+
apply plugin: "com.facebook.react"
|
|
4
|
+
|
|
5
|
+
def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This is the configuration block to customize your React Native Android app.
|
|
9
|
+
* By default you don't need to apply any configuration, just uncomment the lines you need.
|
|
10
|
+
*/
|
|
11
|
+
react {
|
|
12
|
+
entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim())
|
|
13
|
+
reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
|
|
14
|
+
hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
|
|
15
|
+
codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
|
|
16
|
+
|
|
17
|
+
enableBundleCompression = (findProperty('android.enableBundleCompression') ?: false).toBoolean()
|
|
18
|
+
// Use Expo CLI to bundle the app, this ensures the Metro config
|
|
19
|
+
// works correctly with Expo projects.
|
|
20
|
+
cliFile = new File(["node", "--print", "require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })"].execute(null, rootDir).text.trim())
|
|
21
|
+
bundleCommand = "export:embed"
|
|
22
|
+
|
|
23
|
+
/* Folders */
|
|
24
|
+
// The root of your project, i.e. where "package.json" lives. Default is '../..'
|
|
25
|
+
// root = file("../../")
|
|
26
|
+
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
|
|
27
|
+
// reactNativeDir = file("../../node_modules/react-native")
|
|
28
|
+
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
|
|
29
|
+
// codegenDir = file("../../node_modules/@react-native/codegen")
|
|
30
|
+
|
|
31
|
+
/* Variants */
|
|
32
|
+
// The list of variants to that are debuggable. For those we're going to
|
|
33
|
+
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
|
|
34
|
+
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
|
|
35
|
+
// debuggableVariants = ["liteDebug", "prodDebug"]
|
|
36
|
+
|
|
37
|
+
/* Bundling */
|
|
38
|
+
// A list containing the node command and its flags. Default is just 'node'.
|
|
39
|
+
// nodeExecutableAndArgs = ["node"]
|
|
40
|
+
|
|
41
|
+
//
|
|
42
|
+
// The path to the CLI configuration file. Default is empty.
|
|
43
|
+
// bundleConfig = file(../rn-cli.config.js)
|
|
44
|
+
//
|
|
45
|
+
// The name of the generated asset file containing your JS bundle
|
|
46
|
+
// bundleAssetName = "MyApplication.android.bundle"
|
|
47
|
+
//
|
|
48
|
+
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
|
|
49
|
+
// entryFile = file("../js/MyApplication.android.js")
|
|
50
|
+
//
|
|
51
|
+
// A list of extra flags to pass to the 'bundle' commands.
|
|
52
|
+
// See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
|
|
53
|
+
// extraPackagerArgs = []
|
|
54
|
+
|
|
55
|
+
/* Hermes Commands */
|
|
56
|
+
// The hermes compiler command to run. By default it is 'hermesc'
|
|
57
|
+
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
|
|
58
|
+
//
|
|
59
|
+
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
|
|
60
|
+
// hermesFlags = ["-O", "-output-source-map"]
|
|
61
|
+
|
|
62
|
+
/* Autolinking */
|
|
63
|
+
autolinkLibrariesWithApp()
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
|
|
68
|
+
*/
|
|
69
|
+
def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean()
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The preferred build flavor of JavaScriptCore (JSC)
|
|
73
|
+
*
|
|
74
|
+
* For example, to use the international variant, you can use:
|
|
75
|
+
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
|
|
76
|
+
*
|
|
77
|
+
* The international variant includes ICU i18n library and necessary data
|
|
78
|
+
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
|
|
79
|
+
* give correct results when using with locales other than en-US. Note that
|
|
80
|
+
* this variant is about 6MiB larger per architecture than default.
|
|
81
|
+
*/
|
|
82
|
+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
|
|
83
|
+
|
|
84
|
+
android {
|
|
85
|
+
ndkVersion rootProject.ext.ndkVersion
|
|
86
|
+
|
|
87
|
+
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
88
|
+
compileSdk rootProject.ext.compileSdkVersion
|
|
89
|
+
|
|
90
|
+
namespace 'so.sunnysideup.daily_verse'
|
|
91
|
+
defaultConfig {
|
|
92
|
+
applicationId 'so.sunnysideup.daily_verse'
|
|
93
|
+
minSdkVersion rootProject.ext.minSdkVersion
|
|
94
|
+
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
95
|
+
versionCode 1
|
|
96
|
+
versionName "1.0.0"
|
|
97
|
+
}
|
|
98
|
+
signingConfigs {
|
|
99
|
+
debug {
|
|
100
|
+
storeFile file('debug.keystore')
|
|
101
|
+
storePassword 'android'
|
|
102
|
+
keyAlias 'androiddebugkey'
|
|
103
|
+
keyPassword 'android'
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
buildTypes {
|
|
107
|
+
debug {
|
|
108
|
+
signingConfig signingConfigs.debug
|
|
109
|
+
}
|
|
110
|
+
release {
|
|
111
|
+
// Caution! In production, you need to generate your own keystore file.
|
|
112
|
+
// see https://reactnative.dev/docs/signed-apk-android.
|
|
113
|
+
signingConfig signingConfigs.debug
|
|
114
|
+
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
|
|
115
|
+
minifyEnabled enableProguardInReleaseBuilds
|
|
116
|
+
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
117
|
+
crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
packagingOptions {
|
|
121
|
+
jniLibs {
|
|
122
|
+
useLegacyPackaging (findProperty('expo.useLegacyPackaging')?.toBoolean() ?: false)
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
androidResources {
|
|
126
|
+
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Apply static values from `gradle.properties` to the `android.packagingOptions`
|
|
131
|
+
// Accepts values in comma delimited lists, example:
|
|
132
|
+
// android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini
|
|
133
|
+
["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop ->
|
|
134
|
+
// Split option: 'foo,bar' -> ['foo', 'bar']
|
|
135
|
+
def options = (findProperty("android.packagingOptions.$prop") ?: "").split(",");
|
|
136
|
+
// Trim all elements in place.
|
|
137
|
+
for (i in 0..<options.size()) options[i] = options[i].trim();
|
|
138
|
+
// `[] - ""` is essentially `[""].filter(Boolean)` removing all empty strings.
|
|
139
|
+
options -= ""
|
|
140
|
+
|
|
141
|
+
if (options.length > 0) {
|
|
142
|
+
println "android.packagingOptions.$prop += $options ($options.length)"
|
|
143
|
+
// Ex: android.packagingOptions.pickFirsts += '**/SCCS/**'
|
|
144
|
+
options.each {
|
|
145
|
+
android.packagingOptions[prop] += it
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
dependencies {
|
|
151
|
+
// The version of react-native is set by the React Native Gradle Plugin
|
|
152
|
+
implementation("com.facebook.react:react-android")
|
|
153
|
+
|
|
154
|
+
def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
|
|
155
|
+
def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
|
|
156
|
+
def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
|
|
157
|
+
|
|
158
|
+
if (isGifEnabled) {
|
|
159
|
+
// For animated gif support
|
|
160
|
+
implementation("com.facebook.fresco:animated-gif:${expoLibs.versions.fresco.get()}")
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (isWebpEnabled) {
|
|
164
|
+
// For webp support
|
|
165
|
+
implementation("com.facebook.fresco:webpsupport:${expoLibs.versions.fresco.get()}")
|
|
166
|
+
if (isWebpAnimatedEnabled) {
|
|
167
|
+
// Animated webp support
|
|
168
|
+
implementation("com.facebook.fresco:animated-webp:${expoLibs.versions.fresco.get()}")
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (hermesEnabled.toBoolean()) {
|
|
173
|
+
implementation("com.facebook.react:hermes-android")
|
|
174
|
+
} else {
|
|
175
|
+
implementation jscFlavor
|
|
176
|
+
}
|
|
177
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Add project specific ProGuard rules here.
|
|
2
|
+
# By default, the flags in this file are appended to flags specified
|
|
3
|
+
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
|
|
4
|
+
# You can edit the include path and order by changing the proguardFiles
|
|
5
|
+
# directive in build.gradle.
|
|
6
|
+
#
|
|
7
|
+
# For more details, see
|
|
8
|
+
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
9
|
+
|
|
10
|
+
# react-native-reanimated
|
|
11
|
+
-keep class com.swmansion.reanimated.** { *; }
|
|
12
|
+
-keep class com.facebook.react.turbomodule.** { *; }
|
|
13
|
+
|
|
14
|
+
# Add any project specific keep options here:
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
xmlns:tools="http://schemas.android.com/tools">
|
|
3
|
+
|
|
4
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
5
|
+
|
|
6
|
+
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
|
|
7
|
+
</manifest>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
3
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
4
|
+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
|
5
|
+
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
6
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
7
|
+
<queries>
|
|
8
|
+
<intent>
|
|
9
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
10
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
11
|
+
<data android:scheme="https"/>
|
|
12
|
+
</intent>
|
|
13
|
+
</queries>
|
|
14
|
+
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:supportsRtl="true">
|
|
15
|
+
<meta-data android:name="expo.modules.updates.ENABLED" android:value="true"/>
|
|
16
|
+
<meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="@string/expo_runtime_version"/>
|
|
17
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
|
|
18
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
|
|
19
|
+
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://u.expo.dev/314ea1f7-8fd3-4748-8c27-c8b04616f6c2"/>
|
|
20
|
+
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode|locale|layoutDirection" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">
|
|
21
|
+
<intent-filter>
|
|
22
|
+
<action android:name="android.intent.action.MAIN"/>
|
|
23
|
+
<category android:name="android.intent.category.LAUNCHER"/>
|
|
24
|
+
</intent-filter>
|
|
25
|
+
<intent-filter>
|
|
26
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
27
|
+
<category android:name="android.intent.category.DEFAULT"/>
|
|
28
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
29
|
+
<data android:scheme="exp+daily-verse"/>
|
|
30
|
+
</intent-filter>
|
|
31
|
+
</activity>
|
|
32
|
+
</application>
|
|
33
|
+
</manifest>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
package so.sunnysideup.daily_verse
|
|
2
|
+
import expo.modules.splashscreen.SplashScreenManager
|
|
3
|
+
|
|
4
|
+
import android.os.Build
|
|
5
|
+
import android.os.Bundle
|
|
6
|
+
|
|
7
|
+
import com.facebook.react.ReactActivity
|
|
8
|
+
import com.facebook.react.ReactActivityDelegate
|
|
9
|
+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
|
|
10
|
+
import com.facebook.react.defaults.DefaultReactActivityDelegate
|
|
11
|
+
|
|
12
|
+
import expo.modules.ReactActivityDelegateWrapper
|
|
13
|
+
|
|
14
|
+
class MainActivity : ReactActivity() {
|
|
15
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
16
|
+
// Set the theme to AppTheme BEFORE onCreate to support
|
|
17
|
+
// coloring the background, status bar, and navigation bar.
|
|
18
|
+
// This is required for expo-splash-screen.
|
|
19
|
+
// setTheme(R.style.AppTheme);
|
|
20
|
+
// @generated begin expo-splashscreen - expo prebuild (DO NOT MODIFY) sync-f3ff59a738c56c9a6119210cb55f0b613eb8b6af
|
|
21
|
+
SplashScreenManager.registerOnActivity(this)
|
|
22
|
+
// @generated end expo-splashscreen
|
|
23
|
+
super.onCreate(null)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns the name of the main component registered from JavaScript. This is used to schedule
|
|
28
|
+
* rendering of the component.
|
|
29
|
+
*/
|
|
30
|
+
override fun getMainComponentName(): String = "main"
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
|
|
34
|
+
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
|
|
35
|
+
*/
|
|
36
|
+
override fun createReactActivityDelegate(): ReactActivityDelegate {
|
|
37
|
+
return ReactActivityDelegateWrapper(
|
|
38
|
+
this,
|
|
39
|
+
BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,
|
|
40
|
+
object : DefaultReactActivityDelegate(
|
|
41
|
+
this,
|
|
42
|
+
mainComponentName,
|
|
43
|
+
fabricEnabled
|
|
44
|
+
){})
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Align the back button behavior with Android S
|
|
49
|
+
* where moving root activities to background instead of finishing activities.
|
|
50
|
+
* @see <a href="https://developer.android.com/reference/android/app/Activity#onBackPressed()">onBackPressed</a>
|
|
51
|
+
*/
|
|
52
|
+
override fun invokeDefaultOnBackPressed() {
|
|
53
|
+
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
|
|
54
|
+
if (!moveTaskToBack(false)) {
|
|
55
|
+
// For non-root activities, use the default implementation to finish them.
|
|
56
|
+
super.invokeDefaultOnBackPressed()
|
|
57
|
+
}
|
|
58
|
+
return
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Use the default back button implementation on Android S
|
|
62
|
+
// because it's doing more than [Activity.moveTaskToBack] in fact.
|
|
63
|
+
super.invokeDefaultOnBackPressed()
|
|
64
|
+
}
|
|
65
|
+
}
|