lucy-cli 2.0.0-beta.1 → 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.
Files changed (241) hide show
  1. package/.cursorignore +4 -0
  2. package/.wix/debug.log +10 -0
  3. package/README.md +117 -102
  4. package/dist/args.js +41 -1
  5. package/dist/args.js.map +1 -1
  6. package/dist/commands/exec.d.ts +2 -2
  7. package/dist/commands/exec.js +15 -13
  8. package/dist/commands/exec.js.map +1 -1
  9. package/dist/commands/home.d.ts +2 -2
  10. package/dist/commands/home.js +25 -2
  11. package/dist/commands/home.js.map +1 -1
  12. package/dist/commands/install.d.ts +1 -0
  13. package/dist/commands/install.js +29 -16
  14. package/dist/commands/install.js.map +1 -1
  15. package/dist/helpers.d.ts +1 -1
  16. package/dist/helpers.js +1 -8
  17. package/dist/helpers.js.map +1 -1
  18. package/dist/index.d.ts +0 -1
  19. package/dist/index.js +4 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/init/blocks.d.ts +1 -1
  22. package/dist/init/blocks.js +2 -2
  23. package/dist/init/cargo.d.ts +1 -1
  24. package/dist/init/cargo.js +2 -2
  25. package/dist/init/expo.d.ts +1 -1
  26. package/dist/init/expo.js +2 -2
  27. package/dist/init/index.d.ts +1 -2
  28. package/dist/init/index.js +10 -1
  29. package/dist/init/index.js.map +1 -1
  30. package/dist/init/monorepo.d.ts +1 -1
  31. package/dist/init/monorepo.js +2 -2
  32. package/dist/init/tauri.d.ts +1 -1
  33. package/dist/init/tauri.js +2 -2
  34. package/dist/init/velo.d.ts +1 -1
  35. package/dist/init/velo.js +3 -2
  36. package/dist/init/velo.js.map +1 -1
  37. package/dist/schemas/index.d.ts +1 -0
  38. package/dist/schemas/index.js +1 -0
  39. package/dist/schemas/index.js.map +1 -1
  40. package/dist/schemas/lucy.d.ts +2 -2
  41. package/dist/schemas/lucy.js +1 -1
  42. package/dist/schemas/lucy.js.map +1 -1
  43. package/dist/tasks/Gulpfile.js +3 -3
  44. package/dist/tasks/Gulpfile.js.map +1 -1
  45. package/dist/tasks/gulp/checks.js +12 -11
  46. package/dist/tasks/gulp/checks.js.map +1 -1
  47. package/dist/tasks/gulp/watchers.js +3 -3
  48. package/dist/tasks/gulp/watchers.js.map +1 -1
  49. package/dist/tasks/index.d.ts +1 -1
  50. package/files/templates/block[D]/files/.cursorignore +4 -0
  51. package/files/templates/cargo[D]/files/.cursorignore +4 -0
  52. package/files/templates/expo verse[D]/files/.nvmrc +1 -0
  53. package/files/templates/expo verse[D]/files/.prettierignore +23 -0
  54. package/files/templates/expo verse[D]/files/.prettierrc.js +16 -0
  55. package/files/templates/expo verse[D]/files/.stylelintrc.json +8 -0
  56. package/files/templates/expo verse[D]/files/.vscode/extensions.json +10 -0
  57. package/files/templates/expo verse[D]/files/.vscode/launch.json +54 -0
  58. package/files/templates/expo verse[D]/files/.vscode/settings.json +30 -0
  59. package/files/templates/expo verse[D]/files/.vscode/tasks.json +0 -0
  60. package/files/templates/expo verse[D]/files/.yarnrc +1 -0
  61. package/files/templates/expo verse[D]/files/.yarnrc.yml +8 -0
  62. package/files/templates/expo verse[D]/files/App.tsx +63 -0
  63. package/files/templates/expo verse[D]/files/DEBUGGING.md +126 -0
  64. package/files/templates/expo verse[D]/files/README.md +45 -0
  65. package/files/templates/expo verse[D]/files/android/app/build.gradle +177 -0
  66. package/files/templates/expo verse[D]/files/android/app/debug.keystore +0 -0
  67. package/files/templates/expo verse[D]/files/android/app/proguard-rules.pro +14 -0
  68. package/files/templates/expo verse[D]/files/android/app/src/debug/AndroidManifest.xml +7 -0
  69. package/files/templates/expo verse[D]/files/android/app/src/main/AndroidManifest.xml +33 -0
  70. package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainActivity.kt +65 -0
  71. package/files/templates/expo verse[D]/files/android/app/src/main/java/so/sunnysideup/daily_verse/MainApplication.kt +57 -0
  72. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/ic_launcher_background.xml +6 -0
  73. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  74. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  75. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  76. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-hdpi/splashscreen_logo.png +0 -0
  77. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-mdpi/splashscreen_logo.png +0 -0
  78. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xhdpi/splashscreen_logo.png +0 -0
  79. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxhdpi/splashscreen_logo.png +0 -0
  80. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-night-xxxhdpi/splashscreen_logo.png +0 -0
  81. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  82. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  83. package/files/templates/expo verse[D]/files/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  84. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
  85. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
  86. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  87. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  88. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp +0 -0
  89. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  90. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  91. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  92. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp +0 -0
  93. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  94. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  95. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  96. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp +0 -0
  97. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  98. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  99. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  100. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp +0 -0
  101. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  102. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  103. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  104. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp +0 -0
  105. package/files/templates/expo verse[D]/files/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  106. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/colors.xml +6 -0
  107. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/strings.xml +7 -0
  108. package/files/templates/expo verse[D]/files/android/app/src/main/res/values/styles.xml +12 -0
  109. package/files/templates/expo verse[D]/files/android/app/src/main/res/values-night/colors.xml +3 -0
  110. package/files/templates/expo verse[D]/files/android/build.gradle +37 -0
  111. package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  112. package/files/templates/expo verse[D]/files/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  113. package/files/templates/expo verse[D]/files/android/gradle.properties +59 -0
  114. package/files/templates/expo verse[D]/files/android/gradlew +251 -0
  115. package/files/templates/expo verse[D]/files/android/gradlew.bat +94 -0
  116. package/files/templates/expo verse[D]/files/android/settings.gradle +39 -0
  117. package/files/templates/expo verse[D]/files/app.config.ts +77 -0
  118. package/files/templates/expo verse[D]/files/assets/data/de.csv +949 -0
  119. package/files/templates/expo verse[D]/files/assets/data/en.csv +949 -0
  120. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Black.ttf +0 -0
  121. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BlackItalic.ttf +0 -0
  122. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Bold.ttf +0 -0
  123. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-BoldItalic.ttf +0 -0
  124. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBold.ttf +0 -0
  125. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-ExtraBoldItalic.ttf +0 -0
  126. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Italic.ttf +0 -0
  127. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Medium.ttf +0 -0
  128. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-MediumItalic.ttf +0 -0
  129. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-Regular.ttf +0 -0
  130. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBold.ttf +0 -0
  131. package/files/templates/expo verse[D]/files/assets/fonts/PlayfairDisplay-SemiBoldItalic.ttf +0 -0
  132. package/files/templates/expo verse[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  133. package/files/templates/expo verse[D]/files/assets/images/andorid/background.png +0 -0
  134. package/files/templates/expo verse[D]/files/assets/images/android-dark.png +0 -0
  135. package/files/templates/expo verse[D]/files/assets/images/android-light.png +0 -0
  136. package/files/templates/expo verse[D]/files/assets/images/background.png +0 -0
  137. package/files/templates/expo verse[D]/files/assets/images/ios-dark.png +0 -0
  138. package/files/templates/expo verse[D]/files/assets/images/ios-light.png +0 -0
  139. package/files/templates/expo verse[D]/files/assets/images/ios-tinted.png +0 -0
  140. package/files/templates/expo verse[D]/files/assets/images/splash-icon-dark.png +0 -0
  141. package/files/templates/expo verse[D]/files/assets/images/splash-icon-light.png +0 -0
  142. package/files/templates/expo verse[D]/files/babel.config.js +10 -0
  143. package/files/templates/expo verse[D]/files/components/.gitkeep +0 -0
  144. package/files/templates/expo verse[D]/files/components/MainScreen.tsx +299 -0
  145. package/files/templates/expo verse[D]/files/components/Share.tsx +132 -0
  146. package/files/templates/expo verse[D]/files/components/ui/.gitkeep +0 -0
  147. package/files/templates/expo verse[D]/files/components/ui/dev.tsx +48 -0
  148. package/files/templates/expo verse[D]/files/constants/config.ts +30 -0
  149. package/files/templates/expo verse[D]/files/constants/theme.ts +18 -0
  150. package/files/templates/expo verse[D]/files/data/de.csv +219 -0
  151. package/files/templates/expo verse[D]/files/data/en.csv +219 -0
  152. package/files/templates/expo verse[D]/files/data/version.json +4 -0
  153. package/files/templates/expo verse[D]/files/eas.json +47 -0
  154. package/files/templates/expo verse[D]/files/eslint.config.mjs +185 -0
  155. package/files/templates/expo verse[D]/files/global.css +47 -0
  156. package/files/templates/expo verse[D]/files/hooks/useColorScheme.ts +17 -0
  157. package/files/templates/expo verse[D]/files/index.ts +28 -0
  158. package/files/templates/expo verse[D]/files/lib/content.ts +31 -0
  159. package/files/templates/expo verse[D]/files/lib/data.ts +180 -0
  160. package/files/templates/expo verse[D]/files/lib/helper.ts +54 -0
  161. package/files/templates/expo verse[D]/files/lib/index.ts +21 -0
  162. package/files/templates/expo verse[D]/files/lib/state.ts +128 -0
  163. package/files/templates/expo verse[D]/files/lib/storage.ts +17 -0
  164. package/files/templates/expo verse[D]/files/lib/taskManager/index.ts +38 -0
  165. package/files/templates/expo verse[D]/files/lib/taskManager/loadData.ts +14 -0
  166. package/files/templates/expo verse[D]/files/lib/utils/index.ts +11 -0
  167. package/files/templates/expo verse[D]/files/lib/utils/polyfills.ts +29 -0
  168. package/files/templates/expo verse[D]/files/lib/utils/screenshot.ts +77 -0
  169. package/files/templates/expo verse[D]/files/lucy.json +8 -0
  170. package/files/templates/expo verse[D]/files/metro.config.js +81 -0
  171. package/files/templates/expo verse[D]/files/models/index.ts +28 -0
  172. package/files/templates/expo verse[D]/files/nativewind-env.d.ts +1 -0
  173. package/files/templates/expo verse[D]/files/package.json +102 -0
  174. package/files/templates/expo verse[D]/files/pnpm-workspace.yaml +3 -0
  175. package/files/templates/expo verse[D]/files/scripts/convert-verses.ts +309 -0
  176. package/files/templates/expo verse[D]/files/scripts/move-artifacts.ts +83 -0
  177. package/files/templates/expo verse[D]/files/scripts/reset-project.ts +116 -0
  178. package/files/templates/expo verse[D]/files/tailwind.config.js +63 -0
  179. package/files/templates/expo verse[D]/files/tsconfig.json +45 -0
  180. package/files/templates/expo verse[D]/files/types/index.ts +4 -0
  181. package/files/templates/expo verse[D]/files/types/reset.d.ts +1 -0
  182. package/files/templates/expo verse[D]/lucy.json +86 -0
  183. package/files/templates/expo[D]/files/.cursorignore +4 -0
  184. package/files/templates/expo[D]/files/app.config.ts +69 -0
  185. package/files/templates/expo[D]/files/assets/fonts/SpaceMono-Regular.ttf +0 -0
  186. package/files/templates/expo[D]/files/scripts/reset-project.ts +0 -0
  187. package/files/templates/monorepo[D]/files/.cursorignore +4 -0
  188. package/files/templates/tauri[D]/files/.cursorignore +4 -0
  189. package/files/templates/velo[D]/files/.cursorignore +4 -0
  190. package/files/templates/velo[D]/files/.yarnrc.yml +1 -2
  191. package/files/templates/velo[D]/files/local.tsconfig.json +6 -5
  192. package/files/templates/velo[D]/files/typescript/backend/config/authz.ts +47 -0
  193. package/files/templates/velo[D]/files/typescript/backend/config/env.ts +8 -0
  194. package/files/templates/velo[D]/files/typescript/backend/config/index.ts +26 -0
  195. package/files/templates/velo[D]/files/typescript/backend/config/mail.ts +10 -0
  196. package/files/templates/velo[D]/files/typescript/backend/config/nats.ts +6 -0
  197. package/files/templates/velo[D]/files/typescript/public/config/env.ts +9 -0
  198. package/files/templates/velo[D]/files/typescript/public/config/index.ts +76 -0
  199. package/files/templates/velo[D]/files/typescript/public/config/locales.ts +30 -0
  200. package/files/templates/velo[D]/files/typescript/public/config/theme.ts +110 -0
  201. package/files/templates/velo[D]/files/typescript/public/i18n/default.ts +123 -0
  202. package/files/templates/velo[D]/files/typescript/public/i18n/en.ts +117 -0
  203. package/files/templates/velo[D]/files/typescript/public/models/collections/member_roles.mode.ts +21 -0
  204. package/files/templates/velo[D]/files/typescript/public/models/collections/organization.model.ts +38 -0
  205. package/files/templates/velo[D]/files/typescript/public/models/collections/plan.model.ts +94 -0
  206. package/files/templates/velo[D]/files/typescript/public/models/collections/stage.model.ts +14 -0
  207. package/files/templates/velo[D]/files/typescript/public/models/collections/subscriptions.model.ts +80 -0
  208. package/files/templates/velo[D]/files/typescript/public/models/collections/tag.model.ts +15 -0
  209. package/files/templates/velo[D]/files/typescript/public/models/collections/translations.model.ts +16 -0
  210. package/files/templates/velo[D]/files/typescript/public/models/modules/authz.model.ts +31 -0
  211. package/files/templates/velo[D]/files/typescript/public/models/modules/organization.ts +20 -0
  212. package/files/templates/velo[D]/files/typescript/public/models/splitwise.model.ts +18 -0
  213. package/files/templates/velo[D]/files/typescript/public/models/store/local.model.ts +10 -0
  214. package/files/templates/velo[D]/files/typescript/public/models/store/memory.model.ts +10 -0
  215. package/files/templates/velo[D]/files/typescript/public/models/store/session.model.ts +10 -0
  216. package/files/templates/velo[D]/files/typescript/public/models/wix/ecom/payment.ts +236 -0
  217. package/files/templates/velo[D]/lucy.json +1 -1
  218. package/lucy +4 -0
  219. package/lucy.jpg +0 -0
  220. package/mitarbeiter-login.html +188 -0
  221. package/old/index.ts +0 -0
  222. package/package.json +15 -14
  223. package/pnpm-workspace.yaml +6 -0
  224. package/src/args.ts +41 -1
  225. package/src/commands/exec.ts +22 -18
  226. package/src/commands/home.ts +36 -2
  227. package/src/commands/install.ts +41 -21
  228. package/src/helpers.ts +1 -9
  229. package/src/index.ts +4 -2
  230. package/src/init/blocks.ts +2 -2
  231. package/src/init/cargo.ts +2 -2
  232. package/src/init/expo.ts +2 -2
  233. package/src/init/index.ts +10 -2
  234. package/src/init/monorepo.ts +2 -2
  235. package/src/init/tauri.ts +2 -2
  236. package/src/init/velo.ts +4 -3
  237. package/src/schemas/index.ts +2 -0
  238. package/src/schemas/lucy.ts +1 -1
  239. package/src/tasks/Gulpfile.ts +3 -3
  240. package/src/tasks/gulp/checks.ts +15 -14
  241. package/src/tasks/gulp/watchers.ts +3 -3
@@ -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
+ }
@@ -0,0 +1,57 @@
1
+ package so.sunnysideup.daily_verse
2
+
3
+ import android.app.Application
4
+ import android.content.res.Configuration
5
+
6
+ import com.facebook.react.PackageList
7
+ import com.facebook.react.ReactApplication
8
+ import com.facebook.react.ReactNativeHost
9
+ import com.facebook.react.ReactPackage
10
+ import com.facebook.react.ReactHost
11
+ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
12
+ import com.facebook.react.defaults.DefaultReactNativeHost
13
+ import com.facebook.react.soloader.OpenSourceMergedSoMapping
14
+ import com.facebook.soloader.SoLoader
15
+
16
+ import expo.modules.ApplicationLifecycleDispatcher
17
+ import expo.modules.ReactNativeHostWrapper
18
+
19
+ class MainApplication : Application(), ReactApplication {
20
+
21
+ override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper(
22
+ this,
23
+ object : DefaultReactNativeHost(this) {
24
+ override fun getPackages(): List<ReactPackage> {
25
+ val packages = PackageList(this).packages
26
+ // Packages that cannot be autolinked yet can be added manually here, for example:
27
+ // packages.add(MyReactNativePackage())
28
+ return packages
29
+ }
30
+
31
+ override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
32
+
33
+ override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
34
+
35
+ override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
36
+ override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
37
+ }
38
+ )
39
+
40
+ override val reactHost: ReactHost
41
+ get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
42
+
43
+ override fun onCreate() {
44
+ super.onCreate()
45
+ SoLoader.init(this, OpenSourceMergedSoMapping)
46
+ if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
47
+ // If you opted-in for the New Architecture, we load the native entry point for this app.
48
+ load()
49
+ }
50
+ ApplicationLifecycleDispatcher.onApplicationCreate(this)
51
+ }
52
+
53
+ override fun onConfigurationChanged(newConfig: Configuration) {
54
+ super.onConfigurationChanged(newConfig)
55
+ ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)
56
+ }
57
+ }
@@ -0,0 +1,6 @@
1
+ <layer-list xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <item android:drawable="@color/splashscreen_background"/>
3
+ <item>
4
+ <bitmap android:gravity="center" android:src="@drawable/splashscreen_logo"/>
5
+ </item>
6
+ </layer-list>
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Copyright (C) 2014 The Android Open Source Project
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <inset xmlns:android="http://schemas.android.com/apk/res/android"
17
+ android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
+ android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
+ android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
+ android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21
+ >
22
+
23
+ <selector>
24
+ <!--
25
+ This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
26
+ The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
27
+ NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
28
+
29
+ <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
30
+
31
+ For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
32
+ -->
33
+ <item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
34
+ <item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
35
+ </selector>
36
+
37
+ </inset>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <background android:drawable="@color/iconBackground"/>
4
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
+ <monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
6
+ </adaptive-icon>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <background android:drawable="@color/iconBackground"/>
4
+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
5
+ <monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
6
+ </adaptive-icon>
@@ -0,0 +1,6 @@
1
+ <resources>
2
+ <color name="splashscreen_background">#D29EFF</color>
3
+ <color name="iconBackground">#ffffff</color>
4
+ <color name="colorPrimary">#023c69</color>
5
+ <color name="colorPrimaryDark">#D29EFF</color>
6
+ </resources>
@@ -0,0 +1,7 @@
1
+ <resources>
2
+ <string name="app_name">Daily Verse</string>
3
+ <string name="expo_system_ui_user_interface_style" translatable="false">automatic</string>
4
+ <string name="expo_runtime_version">1.0.0</string>
5
+ <string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
6
+ <string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
7
+ </resources>
@@ -0,0 +1,12 @@
1
+ <resources xmlns:tools="http://schemas.android.com/tools">
2
+ <style name="AppTheme" parent="Theme.EdgeToEdge">
3
+ <item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
4
+ <item name="colorPrimary">@color/colorPrimary</item>
5
+ <item name="android:statusBarColor">#D29EFF</item>
6
+ </style>
7
+ <style name="Theme.App.SplashScreen" parent="Theme.SplashScreen">
8
+ <item name="windowSplashScreenBackground">@color/splashscreen_background</item>
9
+ <item name="windowSplashScreenAnimatedIcon">@drawable/splashscreen_logo</item>
10
+ <item name="postSplashScreenTheme">@style/AppTheme</item>
11
+ </style>
12
+ </resources>
@@ -0,0 +1,3 @@
1
+ <resources>
2
+ <color name="splashscreen_background">#000000</color>
3
+ </resources>
@@ -0,0 +1,37 @@
1
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
+
3
+ buildscript {
4
+ repositories {
5
+ google()
6
+ mavenCentral()
7
+ }
8
+ dependencies {
9
+ classpath('com.android.tools.build:gradle')
10
+ classpath('com.facebook.react:react-native-gradle-plugin')
11
+ classpath('org.jetbrains.kotlin:kotlin-gradle-plugin')
12
+ }
13
+ }
14
+
15
+ def reactNativeAndroidDir = new File(
16
+ providers.exec {
17
+ workingDir(rootDir)
18
+ commandLine("node", "--print", "require.resolve('react-native/package.json')")
19
+ }.standardOutput.asText.get().trim(),
20
+ "../android"
21
+ )
22
+
23
+ allprojects {
24
+ repositories {
25
+ maven {
26
+ // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
27
+ url(reactNativeAndroidDir)
28
+ }
29
+
30
+ google()
31
+ mavenCentral()
32
+ maven { url 'https://www.jitpack.io' }
33
+ }
34
+ }
35
+
36
+ apply plugin: "expo-root-project"
37
+ apply plugin: "com.facebook.react.rootproject"
@@ -0,0 +1,7 @@
1
+ distributionBase=GRADLE_USER_HOME
2
+ distributionPath=wrapper/dists
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4
+ networkTimeout=10000
5
+ validateDistributionUrl=true
6
+ zipStoreBase=GRADLE_USER_HOME
7
+ zipStorePath=wrapper/dists
@@ -0,0 +1,59 @@
1
+ # Project-wide Gradle settings.
2
+
3
+ # IDE (e.g. Android Studio) users:
4
+ # Gradle settings configured through the IDE *will override*
5
+ # any settings specified in this file.
6
+
7
+ # For more details on how to configure your build environment visit
8
+ # http://www.gradle.org/docs/current/userguide/build_environment.html
9
+
10
+ # Specifies the JVM arguments used for the daemon process.
11
+ # The setting is particularly useful for tweaking memory settings.
12
+ # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
13
+ org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
14
+
15
+ # When configured, Gradle will run in incubating parallel mode.
16
+ # This option should only be used with decoupled projects. More details, visit
17
+ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18
+ # org.gradle.parallel=true
19
+
20
+ # AndroidX package structure to make it clearer which packages are bundled with the
21
+ # Android operating system, and which are packaged with your app's APK
22
+ # https://developer.android.com/topic/libraries/support-library/androidx-rn
23
+ android.useAndroidX=true
24
+
25
+ # Enable AAPT2 PNG crunching
26
+ android.enablePngCrunchInReleaseBuilds=true
27
+
28
+ # Use this property to specify which architecture you want to build.
29
+ # You can also override it from the CLI using
30
+ # ./gradlew <task> -PreactNativeArchitectures=x86_64
31
+ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
32
+
33
+ # Use this property to enable support to the new architecture.
34
+ # This will allow you to use TurboModules and the Fabric render in
35
+ # your application. You should enable this flag either if you want
36
+ # to write custom TurboModules/Fabric components OR use libraries that
37
+ # are providing them.
38
+ newArchEnabled=true
39
+
40
+ # Use this property to enable or disable the Hermes JS engine.
41
+ # If set to false, you will be using JSC instead.
42
+ hermesEnabled=true
43
+
44
+ # Enable GIF support in React Native images (~200 B increase)
45
+ expo.gif.enabled=true
46
+ # Enable webp support in React Native images (~85 KB increase)
47
+ expo.webp.enabled=true
48
+ # Enable animated webp support (~3.4 MB increase)
49
+ # Disabled by default because iOS doesn't support animated webp
50
+ expo.webp.animated=false
51
+
52
+ # Enable network inspector
53
+ EX_DEV_CLIENT_NETWORK_INSPECTOR=true
54
+
55
+ # Use legacy packaging to compress native libraries in the resulting APK.
56
+ expo.useLegacyPackaging=false
57
+
58
+ # Whether the app is configured to use edge-to-edge via the app config or `react-native-edge-to-edge` plugin
59
+ expo.edgeToEdgeEnabled=true