From c8b5e580f8741d4e932f4557a0bbd5365f2789ca Mon Sep 17 00:00:00 2001 From: Peter Anyaogu Date: Mon, 30 Sep 2024 01:47:41 +0100 Subject: [PATCH] mono repo shared packages --- apps/native/App.tsx | 33 +- apps/native/README.md | 3 - apps/native/android/.gitignore | 1 + apps/native/android/app/build.gradle | 71 +- apps/native/android/app/proguard-rules.pro | 4 - .../variance/cosmr1/ReactNativeFlipper.java | 75 - .../android/app/src/main/AndroidManifest.xml | 5 +- .../com/variance/cosmr1/MainActivity.java | 65 - .../com/variance/cosmr1/MainApplication.java | 82 - .../space/variance/internal/MainActivity.kt | 61 + .../variance/internal/MainApplication.kt | 55 + .../res/drawable/rn_edit_text_material.xml | 3 +- .../app/src/main/res/values/colors.xml | 2 +- .../app/src/main/res/values/styles.xml | 2 +- .../variance/cosmr1/ReactNativeFlipper.java | 20 - apps/native/android/build.gradle | 21 +- apps/native/android/gradle.properties | 7 +- .../android/gradle/wrapper/gradle-wrapper.jar | Bin 60756 -> 43453 bytes .../gradle/wrapper/gradle-wrapper.properties | 3 +- apps/native/android/gradlew | 35 +- apps/native/android/gradlew.bat | 21 +- .../react-settings-plugin/build.gradle.kts | 19 + .../expo/plugins/ReactSettingsPlugin.kt | 10 + apps/native/android/settings.gradle | 62 +- apps/native/app.json | 10 +- apps/native/babel.config.js | 5 +- apps/native/index.js | 8 - apps/native/ios/Podfile | 58 +- apps/native/ios/Podfile.lock | 1490 +++++++++++++++++ .../ios/native.xcodeproj/project.pbxproj | 115 +- .../contents.xcworkspacedata | 10 + apps/native/ios/native/AppDelegate.mm | 5 + apps/native/ios/native/Info.plist | 14 +- apps/native/ios/native/PrivacyInfo.xcprivacy | 37 + apps/native/ios/native/Supporting/Expo.plist | 2 - apps/native/ios/native/native.entitlements | 5 +- apps/native/metro.config.js | 23 +- apps/native/nativewind-env.d.ts | 3 + apps/native/package.json | 31 +- apps/native/tailwind.config.js | 1 + apps/native/tsconfig.json | 8 +- apps/web/app/page.tsx | 10 +- apps/web/package.json | 4 +- apps/web/postcss.config.js | 1 + apps/web/styles/global.css | 8 - apps/web/styles/index.module.css | 3 - apps/web/tailwind.config.js | 1 + apps/web/tsconfig.json | 2 +- bun.lockb | Bin 683328 -> 596400 bytes package.json | 6 +- packages/configs/package.json | 12 + packages/configs/tailwind/postcss.config.js | 6 + packages/configs/tailwind/tailwind.config.js | 69 + .../typescript}/base.json | 0 .../typescript}/nextjs.json | 0 .../typescript}/react-native-library.json | 0 packages/cosm-r1/.gitignore | 175 -- packages/cosm-r1/package.json | 4 +- packages/cred-native/package.json | 6 +- packages/cred-native/src/index.ts | 12 +- packages/cred-web/.gitignore | 175 -- packages/cred-web/package.json | 2 +- packages/shared-types/.gitignore | 175 -- packages/shared-types/index.ts | 178 +- packages/shared-types/nativewind-env.d.ts | 1 + packages/shared-types/package.json | 5 +- packages/typescript-config/package.json | 8 - packages/ui/.gitignore | 28 - packages/ui/components.json | 7 + packages/ui/package.json | 38 +- packages/ui/postcss.config.js | 1 + packages/ui/src/button.tsx | 37 - packages/ui/src/components/ui/button.tsx | 88 + packages/ui/src/components/ui/text.tsx | 24 + packages/ui/src/icons/Moon.tsx | 4 + packages/ui/src/icons/Sun.tsx | 4 + packages/ui/src/icons/iconWithClassName.ts | 14 + packages/ui/src/icons/index.tsx | 2 + packages/ui/src/index.tsx | 3 +- packages/ui/src/styles.css | 49 + packages/ui/tailwind.config.js | 1 + packages/ui/tsconfig.json | 11 +- turbo.json | 6 +- 83 files changed, 2538 insertions(+), 1127 deletions(-) delete mode 100644 apps/native/README.md delete mode 100644 apps/native/android/app/src/debug/java/com/variance/cosmr1/ReactNativeFlipper.java delete mode 100644 apps/native/android/app/src/main/java/com/variance/cosmr1/MainActivity.java delete mode 100644 apps/native/android/app/src/main/java/com/variance/cosmr1/MainApplication.java create mode 100644 apps/native/android/app/src/main/java/space/variance/internal/MainActivity.kt create mode 100644 apps/native/android/app/src/main/java/space/variance/internal/MainApplication.kt delete mode 100644 apps/native/android/app/src/release/java/com/variance/cosmr1/ReactNativeFlipper.java create mode 100644 apps/native/android/react-settings-plugin/build.gradle.kts create mode 100644 apps/native/android/react-settings-plugin/src/main/kotlin/expo/plugins/ReactSettingsPlugin.kt delete mode 100644 apps/native/index.js create mode 100644 apps/native/ios/Podfile.lock create mode 100644 apps/native/ios/native.xcworkspace/contents.xcworkspacedata create mode 100644 apps/native/ios/native/PrivacyInfo.xcprivacy create mode 100644 apps/native/nativewind-env.d.ts create mode 100644 apps/native/tailwind.config.js create mode 100644 apps/web/postcss.config.js delete mode 100644 apps/web/styles/global.css delete mode 100644 apps/web/styles/index.module.css create mode 100644 apps/web/tailwind.config.js create mode 100644 packages/configs/package.json create mode 100644 packages/configs/tailwind/postcss.config.js create mode 100644 packages/configs/tailwind/tailwind.config.js rename packages/{typescript-config => configs/typescript}/base.json (100%) rename packages/{typescript-config => configs/typescript}/nextjs.json (100%) rename packages/{typescript-config => configs/typescript}/react-native-library.json (100%) delete mode 100644 packages/cosm-r1/.gitignore delete mode 100644 packages/cred-web/.gitignore delete mode 100644 packages/shared-types/.gitignore create mode 100644 packages/shared-types/nativewind-env.d.ts delete mode 100644 packages/typescript-config/package.json delete mode 100644 packages/ui/.gitignore create mode 100644 packages/ui/components.json create mode 100644 packages/ui/postcss.config.js delete mode 100644 packages/ui/src/button.tsx create mode 100644 packages/ui/src/components/ui/button.tsx create mode 100644 packages/ui/src/components/ui/text.tsx create mode 100644 packages/ui/src/icons/Moon.tsx create mode 100644 packages/ui/src/icons/Sun.tsx create mode 100644 packages/ui/src/icons/iconWithClassName.ts create mode 100644 packages/ui/src/icons/index.tsx create mode 100644 packages/ui/src/styles.css create mode 100644 packages/ui/tailwind.config.js diff --git a/apps/native/App.tsx b/apps/native/App.tsx index 8b4cd59..6b7a473 100644 --- a/apps/native/App.tsx +++ b/apps/native/App.tsx @@ -1,33 +1,14 @@ -import { StyleSheet, Text, View } from "react-native"; +import "@vaariance/ui/styles.css"; + import { StatusBar } from "expo-status-bar"; -import { Button } from "@repo/ui"; +import { View } from "react-native"; +import { Text } from "@vaariance/ui"; -export default function Native() { +export default function App() { return ( - - Native -