From ef5ec288cee8953b722e836e0b5e2cb71ac7706a Mon Sep 17 00:00:00 2001 From: Ruslan Konviser Date: Sat, 9 Nov 2024 12:12:20 +0100 Subject: [PATCH 1/5] Update README.md --- apps/mobile/README.md | 131 +----------------------------------------- 1 file changed, 2 insertions(+), 129 deletions(-) diff --git a/apps/mobile/README.md b/apps/mobile/README.md index a9134dabb..3c3116cfc 100644 --- a/apps/mobile/README.md +++ b/apps/mobile/README.md @@ -1,130 +1,3 @@ -# Welcome to your new ignited app! - -[![CircleCI](https://circleci.com/gh/infinitered/ignite.svg?style=svg)](https://circleci.com/gh/infinitered/ignite) - -## The latest and greatest boilerplate for Infinite Red opinions - -This is the boilerplate that [Infinite Red](https://infinite.red) uses as a way to test bleeding-edge changes to our React Native stack. - -Currently includes: - -- React Native -- React Navigation -- MobX State Tree -- TypeScript -- And more! - -## Quick Start - -The Ignite boilerplate project's structure will look similar to this: - -``` -ignite-project -├── app -│   ├── components -│   ├── config -│   ├── i18n -│   ├── models -│   ├── navigators -│   ├── screens -│   ├── services -│   ├── theme -│   ├── utils -│   ├── app.tsx -├── test -│   ├── __snapshots__ -│   ├── mockFile.ts -│   ├── setup.ts -├── README.md -├── android -│   ├── app -│   ├── build.gradle -│   ├── gradle -│   ├── gradle.properties -│   ├── gradlew -│   ├── gradlew.bat -│   ├── keystores -│   └── settings.gradle -├── ignite -│   └── templates -|    |── app-icon -│   ├── component -│   ├── model -│   ├── navigator -│   └── screen -├── index.js -├── ios -│   ├── IgniteProject -│   ├── IgniteProject-tvOS -│   ├── IgniteProject-tvOSTests -│   ├── IgniteProject.xcodeproj -│   └── IgniteProjectTests -├── .env -└── package.json - -``` - -### ./app directory - -Included in an Ignite boilerplate project is the `app` directory. This is a directory you would normally have to create when using vanilla React Native. - -The inside of the `app` directory looks similar to the following: - -``` -app -├── components -├── config -├── i18n -├── models -├── navigators -├── screens -├── services -├── theme -├── utils -├── app.tsx -``` - -**components** -This is where your reusable components live which help you build your screens. - -**i18n** -This is where your translations will live if you are using `react-native-i18n`. - -**models** -This is where your app's models will live. Each model has a directory which will contain the `mobx-state-tree` model file, test file, and any other supporting files like actions, types, etc. - -**navigators** -This is where your `react-navigation` navigators will live. - -**screens** -This is where your screen components will live. A screen is a React component which will take up the entire screen and be part of the navigation hierarchy. Each screen will have a directory containing the `.tsx` file, along with any assets or other helper files. - -**services** -Any services that interface with the outside world will live here (think REST APIs, Push Notifications, etc.). - -**theme** -Here lives the theme for your application, including spacing, colors, and typography. - -**utils** -This is a great place to put miscellaneous helpers and utilities. Things like date helpers, formatters, etc. are often found here. However, it should only be used for things that are truly shared across your application. If a helper or utility is only used by a specific component or model, consider co-locating your helper with that component or model. - -**app.tsx** This is the entry point to your app. This is where you will find the main App component which renders the rest of the application. - -### ./ignite directory - -The `ignite` directory stores all things Ignite, including CLI and boilerplate items. Here you will find templates you can customize to help you get started with React Native. - -### ./test directory - -This directory will hold your Jest configs and mocks. - -## Running Detox end-to-end tests - -Read [Detox setup instructions](./detox/README.md). - -## Previous Boilerplates - -- [2018 aka Bowser](https://github.com/infinitered/ignite-bowser) -- [2017 aka Andross](https://github.com/infinitered/ignite-andross) -- [2016 aka Ignite 1.0](https://github.com/infinitered/ignite-ir-boilerplate-2016) +# Ever Teams Mobile Apps +Ever Teams Mobile Apps (iOS / Android) are built with ReactNative / Expo using [Ignite Boilerplate](https://github.com/infinitered/ignite). From 95d69922778abd255bf886537f6d83b0493282dc Mon Sep 17 00:00:00 2001 From: sergemuhundu Date: Sat, 9 Nov 2024 13:45:26 +0100 Subject: [PATCH 2/5] Update eas publish command --- apps/mobile/app.json | 94 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 apps/mobile/app.json diff --git a/apps/mobile/app.json b/apps/mobile/app.json new file mode 100644 index 000000000..844872e30 --- /dev/null +++ b/apps/mobile/app.json @@ -0,0 +1,94 @@ +{ + "name": "ever-teams-mobile", + "displayName": "Ever Teams Mobile", + "expo": { + "name": "Ever Teams Mobile", + "slug": "ever-teams-mobile", + "version": "0.1.0", + "orientation": "portrait", + "icon": "./assets/images/ever-teams-logo.png", + "splash": { + "image": "./assets/images/splash-ever-teams.png", + "resizeMode": "cover", + "backgroundColor": "#ffffff" + }, + "owner": "everco", + "updates": { + "fallbackToCacheTimeout": 0, + "url": "https://u.expo.dev/2ff924e4-7a91-4b23-9db9-7453a8063bb0" + }, + "jsEngine": "hermes", + "assetBundlePatterns": ["**/*"], + "plugins": [ + [ + "expo-media-library", + { + "photosPermission": "Allow $(PRODUCT_NAME) to access your photos.", + "savePhotosPermission": "Allow $(PRODUCT_NAME) to save photos.", + "isAccessMediaLocationEnabled": true + } + ], + "sentry-expo", + [ + "expo-build-properties", + { + "android": { + "enableProguardInReleaseBuilds": true, + "extraProguardRules": "-keep public class com.horcrux.svg.** {*;}", + "allowBackup": false, + "minSdkVersion": 23, + "targetSdkVersion": 34 + } + } + ] + ], + "android": { + "icon": "./assets/images/app-icon-android-legacy-ever-teams.png", + "package": "ever.team", + "adaptiveIcon": { + "foregroundImage": "./assets/images/app-icon-android-adaptive-foreground-ever.png", + "backgroundImage": "./assets/images/app-icon-android-adaptive-background.png" + }, + "splash": { + "image": "./assets/images/splash-ever-teams.png", + "resizeMode": "cover", + "backgroundColor": "#ffffff" + }, + "permissions": [ + "android.permission.READ_EXTERNAL_STORAGE", + "android.permission.WRITE_EXTERNAL_STORAGE", + "android.permission.ACCESS_MEDIA_LOCATION" + ] + }, + "ios": { + "icon": "./assets/images/app-icon-ios-ever-teams.png", + "supportsTablet": true, + "bundleIdentifier": "co.ever.teams", + "splash": { + "image": "./assets/images/splash-ever-teams.png", + "tabletImage": "./assets/images/splash-logo-ever-teams-ios-tablet.png", + "resizeMode": "cover", + "backgroundColor": "#ffffff" + }, + "infoPlist": { + "NSCameraUsageDescription": "This app uses the camera to scan barcodes on event tickets.", + "NSPhotoLibraryUsageDescription": "Allow $(PRODUCT_NAME) to access your photos.", + "NSPhotoLibraryAddUsageDescription": "Allow $(PRODUCT_NAME) to save photos." + } + }, + "web": { + "favicon": "./assets/images/app-icon-web-favicon.png", + "splash": { + "image": "./assets/images/splash-logo-web-ever-teams.png", + "resizeMode": "contain", + "backgroundColor": "#ffffff" + } + }, + "extra": { + "eas": { + "projectId": "2ff924e4-7a91-4b23-9db9-7453a8063bb0" + } + }, + "runtimeVersion": "exposdk:48.0.0" + } +} From c6bf1dab72fb1be904b4c90100d0b47e050d69e9 Mon Sep 17 00:00:00 2001 From: sergemuhundu Date: Sat, 9 Nov 2024 13:46:30 +0100 Subject: [PATCH 3/5] Update eas publish command --- apps/mobile/.env | 1 + apps/mobile/app.json | 94 -------------------------------------------- 2 files changed, 1 insertion(+), 94 deletions(-) delete mode 100644 apps/mobile/app.json diff --git a/apps/mobile/.env b/apps/mobile/.env index 63c69acaa..cb0aa4b66 100644 --- a/apps/mobile/.env +++ b/apps/mobile/.env @@ -1,6 +1,7 @@ # NOTE: do NOT ever put here any secure settings! (e.g. Secret Keys) # We are using react-native-dotenv (.env) + GAUZY_API_URL=https://api.gauzy.co INVITE_CALLBACK_URL=https://app.ever.team/auth/passcode EXPO_PUBLIC_SENTRY_DSN= diff --git a/apps/mobile/app.json b/apps/mobile/app.json deleted file mode 100644 index 844872e30..000000000 --- a/apps/mobile/app.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "name": "ever-teams-mobile", - "displayName": "Ever Teams Mobile", - "expo": { - "name": "Ever Teams Mobile", - "slug": "ever-teams-mobile", - "version": "0.1.0", - "orientation": "portrait", - "icon": "./assets/images/ever-teams-logo.png", - "splash": { - "image": "./assets/images/splash-ever-teams.png", - "resizeMode": "cover", - "backgroundColor": "#ffffff" - }, - "owner": "everco", - "updates": { - "fallbackToCacheTimeout": 0, - "url": "https://u.expo.dev/2ff924e4-7a91-4b23-9db9-7453a8063bb0" - }, - "jsEngine": "hermes", - "assetBundlePatterns": ["**/*"], - "plugins": [ - [ - "expo-media-library", - { - "photosPermission": "Allow $(PRODUCT_NAME) to access your photos.", - "savePhotosPermission": "Allow $(PRODUCT_NAME) to save photos.", - "isAccessMediaLocationEnabled": true - } - ], - "sentry-expo", - [ - "expo-build-properties", - { - "android": { - "enableProguardInReleaseBuilds": true, - "extraProguardRules": "-keep public class com.horcrux.svg.** {*;}", - "allowBackup": false, - "minSdkVersion": 23, - "targetSdkVersion": 34 - } - } - ] - ], - "android": { - "icon": "./assets/images/app-icon-android-legacy-ever-teams.png", - "package": "ever.team", - "adaptiveIcon": { - "foregroundImage": "./assets/images/app-icon-android-adaptive-foreground-ever.png", - "backgroundImage": "./assets/images/app-icon-android-adaptive-background.png" - }, - "splash": { - "image": "./assets/images/splash-ever-teams.png", - "resizeMode": "cover", - "backgroundColor": "#ffffff" - }, - "permissions": [ - "android.permission.READ_EXTERNAL_STORAGE", - "android.permission.WRITE_EXTERNAL_STORAGE", - "android.permission.ACCESS_MEDIA_LOCATION" - ] - }, - "ios": { - "icon": "./assets/images/app-icon-ios-ever-teams.png", - "supportsTablet": true, - "bundleIdentifier": "co.ever.teams", - "splash": { - "image": "./assets/images/splash-ever-teams.png", - "tabletImage": "./assets/images/splash-logo-ever-teams-ios-tablet.png", - "resizeMode": "cover", - "backgroundColor": "#ffffff" - }, - "infoPlist": { - "NSCameraUsageDescription": "This app uses the camera to scan barcodes on event tickets.", - "NSPhotoLibraryUsageDescription": "Allow $(PRODUCT_NAME) to access your photos.", - "NSPhotoLibraryAddUsageDescription": "Allow $(PRODUCT_NAME) to save photos." - } - }, - "web": { - "favicon": "./assets/images/app-icon-web-favicon.png", - "splash": { - "image": "./assets/images/splash-logo-web-ever-teams.png", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - }, - "extra": { - "eas": { - "projectId": "2ff924e4-7a91-4b23-9db9-7453a8063bb0" - } - }, - "runtimeVersion": "exposdk:48.0.0" - } -} From 6cdee6e85d2be5b5f64d6e5bb440fed180da76b5 Mon Sep 17 00:00:00 2001 From: sergemuhundu Date: Sat, 9 Nov 2024 13:50:09 +0100 Subject: [PATCH 4/5] Update eas publish command --- .github/workflows/mobile.apps.ios.yml | 2 +- .github/workflows/mobile.apps.stage.ios.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mobile.apps.ios.yml b/.github/workflows/mobile.apps.ios.yml index 7bd7a4c16..8cb437214 100644 --- a/.github/workflows/mobile.apps.ios.yml +++ b/.github/workflows/mobile.apps.ios.yml @@ -83,7 +83,7 @@ jobs: run: cd apps/mobile && eas build --profile production --platform ios --non-interactive - name: Publish update - run: cd apps/mobile && eas update --auto --profile production --platform ios --non-interactive + run: cd apps/mobile && eas update --auto --platform ios --non-interactive - name: Upload App build to App store run: cd apps/mobile && eas submit --profile production --platform ios --latest --non-interactive diff --git a/.github/workflows/mobile.apps.stage.ios.yml b/.github/workflows/mobile.apps.stage.ios.yml index 0c2ff0ae5..aa2e16e7b 100644 --- a/.github/workflows/mobile.apps.stage.ios.yml +++ b/.github/workflows/mobile.apps.stage.ios.yml @@ -83,7 +83,7 @@ jobs: run: cd apps/mobile && eas build --profile internal --platform ios --non-interactive - name: Publish update - run: cd apps/mobile && eas update --auto --profile internal --platform ios --non-interactive + run: cd apps/mobile && eas update --auto --platform ios --non-interactive - name: Upload App build to App store run: cd apps/mobile && eas submit --profile internal --platform ios --latest --non-interactive From 1cc4ab50340ddbdcf615fa7ec170ee01b63adc33 Mon Sep 17 00:00:00 2001 From: sergemuhundu Date: Sat, 9 Nov 2024 14:33:18 +0100 Subject: [PATCH 5/5] Rename apple private key file name --- apps/mobile/eas.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/eas.json b/apps/mobile/eas.json index eef5c22f4..30204355a 100644 --- a/apps/mobile/eas.json +++ b/apps/mobile/eas.json @@ -42,7 +42,7 @@ "ascAppId": "APPLE_ID_PLACEHOLDER", "ascApiKeyIssuerId": "APPSTORE_ISSUER_ID_PLACEHOLDER", "ascApiKeyId": "APPSTORE_API_KEY_ID_PLACEHOLDER", - "ascApiKeyPath": "./AuthKey_8A3H79GTF8.p8" + "ascApiKeyPath": "./AuthKey_R9QZ5LP8NK.p8" } } }