lucy-cli 2.0.0-beta.11 → 2.0.0-beta.12
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/dist/commands/copy.js.map +1 -1
- package/dist/commands/git.d.ts +3 -2
- package/dist/commands/git.js +34 -0
- package/dist/commands/git.js.map +1 -1
- package/dist/commands/home.d.ts +1 -1
- package/dist/commands/home.js +2 -25
- package/dist/commands/home.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/init/cargo.d.ts +1 -1
- package/dist/init/git.d.ts +2 -0
- package/dist/init/git.js +13 -0
- package/dist/init/git.js.map +1 -0
- package/dist/init/gitModules.d.ts +1 -1
- package/dist/init/index.d.ts +2 -1
- package/dist/init/index.js +0 -1
- package/dist/init/index.js.map +1 -1
- package/dist/init/monorepo.d.ts +1 -1
- package/dist/init/prepareVelo.d.ts +1 -1
- package/dist/init/tauri.d.ts +1 -1
- package/dist/init/templates.d.ts +1 -1
- package/dist/init/templates.js +1 -1
- package/dist/init/templates.js.map +1 -1
- package/dist/init/velo.d.ts +1 -1
- package/package.json +1 -1
- package/src/commands/copy.ts +1 -0
- package/src/commands/git.ts +39 -0
- package/src/commands/home.ts +2 -38
- package/src/index.ts +1 -1
- package/src/init/index.ts +0 -1
- package/src/init/templates.ts +1 -1
- package/files/templates/Default[B]/files/.cursorignore +0 -4
- package/files/templates/Default[B]/files/.stylelintrc.js +0 -8
- package/files/templates/Default[B]/lucy.json +0 -9
- package/files/templates/Default[C]/files/.cursorignore +0 -4
- package/files/templates/Default[C]/files/.env +0 -1
- package/files/templates/Default[C]/files/Cargo.toml +0 -238
- package/files/templates/Default[C]/files/Makefile.toml +0 -4
- package/files/templates/Default[C]/files/build/main.rs +0 -35
- package/files/templates/Default[C]/files/config/beta.json +0 -19
- package/files/templates/Default[C]/files/config/ci.json +0 -15
- package/files/templates/Default[C]/files/config/default.json +0 -71
- package/files/templates/Default[C]/files/config/development.json +0 -10
- package/files/templates/Default[C]/files/config/produktion.json +0 -5
- package/files/templates/Default[C]/files/config/stage.json +0 -4
- package/files/templates/Default[C]/files/locales/todo.yml +0 -3
- package/files/templates/Default[C]/files/public/index.html +0 -1
- package/files/templates/Default[C]/lucy.json +0 -15
- package/files/templates/Default[E]/files/.cursorignore +0 -4
- package/files/templates/Default[E]/files/.nvmrc +0 -1
- package/files/templates/Default[E]/files/.prettierignore +0 -23
- package/files/templates/Default[E]/files/.prettierrc.js +0 -16
- package/files/templates/Default[E]/files/.stylelintrc.js +0 -8
- package/files/templates/Default[E]/files/.yarnrc +0 -1
- package/files/templates/Default[E]/files/.yarnrc.yml +0 -3
- package/files/templates/Default[E]/files/README.md +0 -45
- package/files/templates/Default[E]/files/app.config.ts +0 -69
- package/files/templates/Default[E]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/Default[E]/files/assets/images/adaptive-icon.png +0 -0
- package/files/templates/Default[E]/files/assets/images/favicon.png +0 -0
- package/files/templates/Default[E]/files/assets/images/icon.png +0 -0
- package/files/templates/Default[E]/files/assets/images/splash-icon.png +0 -0
- package/files/templates/Default[E]/files/babel.config.js +0 -10
- package/files/templates/Default[E]/files/components/.gitkeep +0 -0
- package/files/templates/Default[E]/files/components/ui/.gitkeep +0 -0
- package/files/templates/Default[E]/files/constants/theme.ts +0 -18
- package/files/templates/Default[E]/files/eas.json +0 -32
- package/files/templates/Default[E]/files/eslint.config.mjs +0 -181
- package/files/templates/Default[E]/files/global.css +0 -47
- package/files/templates/Default[E]/files/hooks/useColorScheme.ts +0 -17
- package/files/templates/Default[E]/files/index.ts +0 -11
- package/files/templates/Default[E]/files/lib/data.ts +0 -197
- package/files/templates/Default[E]/files/lib/utils/index.ts +0 -11
- package/files/templates/Default[E]/files/lib/utils/polyfills.ts +0 -29
- package/files/templates/Default[E]/files/lib/wix/client.ts +0 -12
- package/files/templates/Default[E]/files/lib/wix/error.ts +0 -3
- package/files/templates/Default[E]/files/lib/wix/index.ts +0 -2
- package/files/templates/Default[E]/files/metro.config.js +0 -63
- package/files/templates/Default[E]/files/nativewind-env.d.ts +0 -1
- package/files/templates/Default[E]/files/pnpm-workspace.yaml +0 -3
- package/files/templates/Default[E]/files/scripts/reset-project.ts +0 -116
- package/files/templates/Default[E]/files/tailwind.config.js +0 -63
- package/files/templates/Default[E]/files/tsconfig.json +0 -46
- package/files/templates/Default[E]/files/types/reset.d.ts +0 -1
- package/files/templates/Default[E]/lucy.json +0 -86
- package/files/templates/Default[M]/files/.cursorignore +0 -4
- package/files/templates/Default[M]/files/.editorconfig +0 -10
- package/files/templates/Default[M]/files/.nvmrc +0 -1
- package/files/templates/Default[M]/files/.prettierignore +0 -23
- package/files/templates/Default[M]/files/.prettierrc.json +0 -15
- package/files/templates/Default[M]/files/.stylelintrc.js +0 -8
- package/files/templates/Default[M]/files/.yarnrc +0 -1
- package/files/templates/Default[M]/files/.yarnrc.yml +0 -3
- package/files/templates/Default[M]/files/README.md +0 -109
- package/files/templates/Default[M]/files/currents.config.ts +0 -5
- package/files/templates/Default[M]/files/nx.json +0 -25
- package/files/templates/Default[M]/files/pnpm-workspace.yaml +0 -11
- package/files/templates/Default[M]/files/tsconfig.json +0 -6
- package/files/templates/Default[M]/files/typedoc.json +0 -25
- package/files/templates/Default[M]/files/vitest.config.ts +0 -27
- package/files/templates/Default[M]/lucy.json +0 -69
- package/files/templates/Default[T]/files/.cursorignore +0 -4
- package/files/templates/Default[T]/lucy.json +0 -9
- package/files/templates/expo verse[E]/files/.nvmrc +0 -1
- package/files/templates/expo verse[E]/files/.prettierignore +0 -23
- package/files/templates/expo verse[E]/files/.prettierrc.js +0 -16
- package/files/templates/expo verse[E]/files/.stylelintrc.json +0 -8
- package/files/templates/expo verse[E]/files/.vscode/extensions.json +0 -10
- package/files/templates/expo verse[E]/files/.vscode/launch.json +0 -54
- package/files/templates/expo verse[E]/files/.vscode/settings.json +0 -30
- package/files/templates/expo verse[E]/files/.vscode/tasks.json +0 -0
- package/files/templates/expo verse[E]/files/.yarnrc +0 -1
- package/files/templates/expo verse[E]/files/.yarnrc.yml +0 -8
- package/files/templates/expo verse[E]/files/App.tsx +0 -63
- package/files/templates/expo verse[E]/files/DEBUGGING.md +0 -126
- package/files/templates/expo verse[E]/files/README.md +0 -45
- package/files/templates/expo verse[E]/files/android/app/build.gradle +0 -177
- package/files/templates/expo verse[E]/files/android/app/debug.keystore +0 -0
- package/files/templates/expo verse[E]/files/android/app/proguard-rules.pro +0 -14
- package/files/templates/expo verse[E]/files/android/app/src/debug/AndroidManifest.xml +0 -7
- package/files/templates/expo verse[E]/files/android/app/src/main/AndroidManifest.xml +0 -33
- package/files/templates/expo verse[E]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +0 -65
- package/files/templates/expo verse[E]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +0 -57
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -6
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -6
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -6
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/colors.xml +0 -6
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/strings.xml +0 -7
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values/styles.xml +0 -12
- package/files/templates/expo verse[E]/files/android/app/src/main/res/values-night/colors.xml +0 -3
- package/files/templates/expo verse[E]/files/android/build.gradle +0 -37
- package/files/templates/expo verse[E]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/files/templates/expo verse[E]/files/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/files/templates/expo verse[E]/files/android/gradle.properties +0 -59
- package/files/templates/expo verse[E]/files/android/gradlew +0 -251
- package/files/templates/expo verse[E]/files/android/gradlew.bat +0 -94
- package/files/templates/expo verse[E]/files/android/settings.gradle +0 -39
- package/files/templates/expo verse[E]/files/app.config.ts +0 -77
- package/files/templates/expo verse[E]/files/assets/data/de.csv +0 -949
- package/files/templates/expo verse[E]/files/assets/data/en.csv +0 -949
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/templates/expo verse[E]/files/assets/images/andorid/background.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/android-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/android-light.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/background.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-light.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/ios-tinted.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/splash-icon-dark.png +0 -0
- package/files/templates/expo verse[E]/files/assets/images/splash-icon-light.png +0 -0
- package/files/templates/expo verse[E]/files/babel.config.js +0 -10
- package/files/templates/expo verse[E]/files/components/.gitkeep +0 -0
- package/files/templates/expo verse[E]/files/components/MainScreen.tsx +0 -299
- package/files/templates/expo verse[E]/files/components/Share.tsx +0 -132
- package/files/templates/expo verse[E]/files/components/ui/.gitkeep +0 -0
- package/files/templates/expo verse[E]/files/components/ui/dev.tsx +0 -48
- package/files/templates/expo verse[E]/files/constants/config.ts +0 -30
- package/files/templates/expo verse[E]/files/constants/theme.ts +0 -18
- package/files/templates/expo verse[E]/files/data/de.csv +0 -219
- package/files/templates/expo verse[E]/files/data/en.csv +0 -219
- package/files/templates/expo verse[E]/files/data/version.json +0 -4
- package/files/templates/expo verse[E]/files/eas.json +0 -47
- package/files/templates/expo verse[E]/files/eslint.config.mjs +0 -185
- package/files/templates/expo verse[E]/files/global.css +0 -47
- package/files/templates/expo verse[E]/files/hooks/useColorScheme.ts +0 -17
- package/files/templates/expo verse[E]/files/index.ts +0 -28
- package/files/templates/expo verse[E]/files/lib/content.ts +0 -31
- package/files/templates/expo verse[E]/files/lib/data.ts +0 -180
- package/files/templates/expo verse[E]/files/lib/helper.ts +0 -54
- package/files/templates/expo verse[E]/files/lib/index.ts +0 -21
- package/files/templates/expo verse[E]/files/lib/state.ts +0 -128
- package/files/templates/expo verse[E]/files/lib/storage.ts +0 -17
- package/files/templates/expo verse[E]/files/lib/taskManager/index.ts +0 -38
- package/files/templates/expo verse[E]/files/lib/taskManager/loadData.ts +0 -14
- package/files/templates/expo verse[E]/files/lib/utils/index.ts +0 -11
- package/files/templates/expo verse[E]/files/lib/utils/polyfills.ts +0 -29
- package/files/templates/expo verse[E]/files/lib/utils/screenshot.ts +0 -77
- package/files/templates/expo verse[E]/files/lucy.json +0 -8
- package/files/templates/expo verse[E]/files/metro.config.js +0 -81
- package/files/templates/expo verse[E]/files/models/index.ts +0 -28
- package/files/templates/expo verse[E]/files/nativewind-env.d.ts +0 -1
- package/files/templates/expo verse[E]/files/package.json +0 -102
- package/files/templates/expo verse[E]/files/pnpm-workspace.yaml +0 -3
- package/files/templates/expo verse[E]/files/scripts/convert-verses.ts +0 -309
- package/files/templates/expo verse[E]/files/scripts/move-artifacts.ts +0 -83
- package/files/templates/expo verse[E]/files/scripts/reset-project.ts +0 -116
- package/files/templates/expo verse[E]/files/tailwind.config.js +0 -63
- package/files/templates/expo verse[E]/files/tsconfig.json +0 -45
- package/files/templates/expo verse[E]/files/types/index.ts +0 -4
- package/files/templates/expo verse[E]/files/types/reset.d.ts +0 -1
- package/files/templates/expo verse[E]/lucy.json +0 -86
- package/files/templates/velo[D]/files/.cursorignore +0 -4
- package/files/templates/velo[D]/files/.gitmodules +0 -0
- package/files/templates/velo[D]/files/.madgerc +0 -8
- package/files/templates/velo[D]/files/.nvmrc +0 -1
- package/files/templates/velo[D]/files/.prettierignore +0 -23
- package/files/templates/velo[D]/files/.prettierrc.js +0 -16
- package/files/templates/velo[D]/files/.stylelintrc.js +0 -9
- package/files/templates/velo[D]/files/.yarnrc.yml +0 -2
- package/files/templates/velo[D]/files/currents.config.js +0 -5
- package/files/templates/velo[D]/files/cypress/e2e/base/base.cy.ts +0 -14
- package/files/templates/velo[D]/files/cypress/fixtures/example.json +0 -5
- package/files/templates/velo[D]/files/cypress/support/commands.ts +0 -37
- package/files/templates/velo[D]/files/cypress/support/e2e.ts +0 -24
- package/files/templates/velo[D]/files/cypress/tsconfig.json +0 -9
- package/files/templates/velo[D]/files/cypress.config.mjs +0 -19
- package/files/templates/velo[D]/files/eslint.config.mjs +0 -186
- package/files/templates/velo[D]/files/local.tsconfig.json +0 -61
- package/files/templates/velo[D]/files/typedoc.json +0 -25
- package/files/templates/velo[D]/files/typescript/__mocks__/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/backend/config/authz.ts +0 -47
- package/files/templates/velo[D]/files/typescript/backend/config/env.ts +0 -8
- package/files/templates/velo[D]/files/typescript/backend/config/index.ts +0 -26
- package/files/templates/velo[D]/files/typescript/backend/config/mail.ts +0 -10
- package/files/templates/velo[D]/files/typescript/backend/config/nats.ts +0 -6
- package/files/templates/velo[D]/files/typescript/backend/data.ts +0 -0
- package/files/templates/velo[D]/files/typescript/backend/events.ts +0 -0
- package/files/templates/velo[D]/files/typescript/backend/http-functions.ts +0 -81
- package/files/templates/velo[D]/files/typescript/backend/lib/http-functions/sync.ts +0 -270
- package/files/templates/velo[D]/files/typescript/backend/permissions.json +0 -17
- package/files/templates/velo[D]/files/typescript/pages/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/public/.gitkeep +0 -0
- package/files/templates/velo[D]/files/typescript/public/config/env.ts +0 -9
- package/files/templates/velo[D]/files/typescript/public/config/index.ts +0 -76
- package/files/templates/velo[D]/files/typescript/public/config/locales.ts +0 -30
- package/files/templates/velo[D]/files/typescript/public/config/theme.ts +0 -110
- package/files/templates/velo[D]/files/typescript/public/i18n/default.ts +0 -123
- package/files/templates/velo[D]/files/typescript/public/i18n/en.ts +0 -117
- package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts +0 -21
- package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts +0 -38
- package/files/templates/velo[D]/files/typescript/public/models/collections/plan.model.ts +0 -94
- package/files/templates/velo[D]/files/typescript/public/models/collections/stage.model.ts +0 -14
- package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts +0 -80
- package/files/templates/velo[D]/files/typescript/public/models/collections/tag.model.ts +0 -15
- package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts +0 -16
- package/files/templates/velo[D]/files/typescript/public/models/modules/authz.model.ts +0 -31
- package/files/templates/velo[D]/files/typescript/public/models/modules/organization.ts +0 -20
- package/files/templates/velo[D]/files/typescript/public/models/splitwise.model.ts +0 -18
- package/files/templates/velo[D]/files/typescript/public/models/store/local.model.ts +0 -10
- package/files/templates/velo[D]/files/typescript/public/models/store/memory.model.ts +0 -10
- package/files/templates/velo[D]/files/typescript/public/models/store/session.model.ts +0 -10
- package/files/templates/velo[D]/files/typescript/public/models/wix/ecom/payment.ts +0 -236
- package/files/templates/velo[D]/files/typescript/public/scss/app.scss +0 -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]/files/typescript/tsconfig.json +0 -72
- package/files/templates/velo[D]/files/vitest.config.ts +0 -45
- package/files/templates/velo[D]/lucy.json +0 -147
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modules": {
|
|
3
|
-
"lucy-typescript-config": {
|
|
4
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-typescript-config.git",
|
|
5
|
-
"branch": "1.0.0"
|
|
6
|
-
},
|
|
7
|
-
"lucy-eslint-config": {
|
|
8
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-eslint-config.git",
|
|
9
|
-
"branch": "1.0.0"
|
|
10
|
-
},
|
|
11
|
-
"lucy-i18n": {
|
|
12
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-i18n.git",
|
|
13
|
-
"branch": "1.0.0"
|
|
14
|
-
},
|
|
15
|
-
"lucy-error": {
|
|
16
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-error.git",
|
|
17
|
-
"branch": "1.0.0"
|
|
18
|
-
},
|
|
19
|
-
"lucy-cypress": {
|
|
20
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-cypress.git",
|
|
21
|
-
"branch": "1.0.0"
|
|
22
|
-
},
|
|
23
|
-
"lucy-vitest-config": {
|
|
24
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-vitest-config.git",
|
|
25
|
-
"branch": "1.0.0"
|
|
26
|
-
},
|
|
27
|
-
"lucy-schema-lib": {
|
|
28
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-schema-lib.git",
|
|
29
|
-
"branch": "1.0.0"
|
|
30
|
-
},
|
|
31
|
-
"lucy-frontend-lib": {
|
|
32
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-frontend-lib.git",
|
|
33
|
-
"branch": "1.0.0"
|
|
34
|
-
},
|
|
35
|
-
"lucy-backend-lib": {
|
|
36
|
-
"source": "git@github.com:Sunnyside-UP-GmbH/lucy-backend-lib.git",
|
|
37
|
-
"branch": "1.0.0"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"vitest": "",
|
|
42
|
-
"@vitest/ui": "",
|
|
43
|
-
"syncpack": "",
|
|
44
|
-
"typescript-eslint": "",
|
|
45
|
-
"typescript-eslint-language-service": "",
|
|
46
|
-
"@typescript-eslint/parser": "",
|
|
47
|
-
"@lucy/vitest-config": "workspace:*"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {},
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "turbo run build",
|
|
52
|
-
"dev": "turbo run dev",
|
|
53
|
-
"lint": "turbo run lint",
|
|
54
|
-
"format": "prettier --write \"./*.json\" \"**/*.{ts,tsx,md,json,jsonc,json5}\"",
|
|
55
|
-
"check-types": "turbo run check-types",
|
|
56
|
-
"update": "syncpack -- update",
|
|
57
|
-
"update:list": "syncpack -- list",
|
|
58
|
-
"test": "turbo run test",
|
|
59
|
-
"test:projects": "vitest run",
|
|
60
|
-
"test:projects:watch": "vitest --watch",
|
|
61
|
-
"view-report": "turbo run view-report",
|
|
62
|
-
"test:ui": "vitest --ui",
|
|
63
|
-
"test:e2e": "turbo run test:e2e"
|
|
64
|
-
},
|
|
65
|
-
"initialized": false,
|
|
66
|
-
"type": "monorepo",
|
|
67
|
-
"packageManager": "pnpm",
|
|
68
|
-
"defaultModulePath": "shared"
|
|
69
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
22
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Dependencies
|
|
2
|
-
node_modules/
|
|
3
|
-
|
|
4
|
-
# Build output
|
|
5
|
-
dist
|
|
6
|
-
.next/
|
|
7
|
-
.wix/
|
|
8
|
-
build
|
|
9
|
-
out
|
|
10
|
-
|
|
11
|
-
# Turbo cache
|
|
12
|
-
.turbo
|
|
13
|
-
|
|
14
|
-
# Logs
|
|
15
|
-
*.log
|
|
16
|
-
npm-debug.log*
|
|
17
|
-
yarn-debug.log*
|
|
18
|
-
yarn-error.log*
|
|
19
|
-
pnpm-debug.log*
|
|
20
|
-
|
|
21
|
-
# As per your ESLint config, JS files are not formatted.
|
|
22
|
-
**/*.js
|
|
23
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
printWidth: 80,
|
|
3
|
-
tabWidth: 4,
|
|
4
|
-
useTabs: true,
|
|
5
|
-
singleQuote: true,
|
|
6
|
-
trailingComma: 'all',
|
|
7
|
-
plugins: ['prettier-plugin-tailwindcss'],
|
|
8
|
-
overrides: [
|
|
9
|
-
{
|
|
10
|
-
files: ['**/*.{json,jsonc,json5}', '*.{json,jsonc,json5}'],
|
|
11
|
-
options: {
|
|
12
|
-
useTabs: true
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
node-options=--max-old-space-size=16384
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,126 +0,0 @@
|
|
|
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
|
-
```
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Welcome to your Expo app 👋
|
|
2
|
-
|
|
3
|
-
This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
|
|
4
|
-
|
|
5
|
-
## Get started
|
|
6
|
-
|
|
7
|
-
1. Install dependencies
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
yarn install
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
2. Start the app
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npx expo start
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
In the output, you'll find options to open the app in a
|
|
20
|
-
|
|
21
|
-
- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
|
|
22
|
-
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
|
|
23
|
-
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
|
|
24
|
-
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
|
|
25
|
-
|
|
26
|
-
You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
|
|
27
|
-
|
|
28
|
-
This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.
|
|
29
|
-
|
|
30
|
-
## Learn more
|
|
31
|
-
|
|
32
|
-
To learn more about developing your project with Expo, look at the following resources:
|
|
33
|
-
|
|
34
|
-
- [React Reusable Components](https://www.reactnativereusables.com/getting-started/introduction/)
|
|
35
|
-
- [NativeWind Documentation](https://www.nativewind.dev/docs)
|
|
36
|
-
- [Expo Documentation](https://docs.expo.dev/)
|
|
37
|
-
- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
|
|
38
|
-
- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
|
|
39
|
-
|
|
40
|
-
## Join the community
|
|
41
|
-
|
|
42
|
-
Join our community of developers creating universal apps.
|
|
43
|
-
|
|
44
|
-
- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
|
|
45
|
-
- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
|
|
@@ -1,177 +0,0 @@
|
|
|
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
|