From 1fe72b17130d529a5ca025a7c6250d0aae553448 Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Tue, 12 May 2020 14:29:08 -0700 Subject: [PATCH] Delete unused app.json files --- contributing.md | 1 + with-animated-splash-screen/app.json | 2 -- with-auth0/app.json | 12 -------- with-custom-font/App.js | 22 +++++++------- with-custom-font/app.json | 11 ------- with-electron/app.json | 20 ------------- with-facebook-auth/app.json | 22 -------------- with-firebase-storage-upload/app.json | 12 -------- with-formdata-image-upload/app/app.json | 24 --------------- with-gatsby/app.json | 30 ------------------- with-google-vision/app.json | 12 -------- with-icons/app.json | 12 -------- with-nextjs/app.json | 12 -------- with-preact/app.json | 12 -------- with-react-router/app.json | 12 -------- with-socket-io/app/app.json | 19 ------------ with-sqlite/app.json | 12 -------- with-storybook/app.json | 12 -------- with-twitter-auth/app/app.json | 12 -------- with-typescript/app.json | 12 -------- with-victory-native/app.json | 17 +---------- with-video-background/app.json | 12 -------- .../app.json | 3 -- with-webbrowser-redirect/app/app.json | 22 +++----------- with-webbrowser-redirect/app/package.json | 2 -- 25 files changed, 16 insertions(+), 323 deletions(-) delete mode 100644 with-auth0/app.json delete mode 100644 with-custom-font/app.json delete mode 100644 with-facebook-auth/app.json delete mode 100644 with-firebase-storage-upload/app.json delete mode 100644 with-formdata-image-upload/app/app.json delete mode 100644 with-gatsby/app.json delete mode 100644 with-google-vision/app.json delete mode 100644 with-icons/app.json delete mode 100644 with-nextjs/app.json delete mode 100644 with-preact/app.json delete mode 100644 with-react-router/app.json delete mode 100644 with-socket-io/app/app.json delete mode 100644 with-sqlite/app.json delete mode 100644 with-storybook/app.json delete mode 100644 with-twitter-auth/app/app.json delete mode 100644 with-typescript/app.json delete mode 100644 with-video-background/app.json delete mode 100644 with-web-in-react-native-community-cli/app.json diff --git a/contributing.md b/contributing.md index 288a5fe..8dec576 100644 --- a/contributing.md +++ b/contributing.md @@ -7,6 +7,7 @@ Thanks for contributing! 😁 Here are some rules that will make your example la - It's important to keep examples **concise**. - We use a unified [`.gitignore`](./.gitignore) - No `package.json` or `app.json` values that aren't completely necessary + - Do not include an `app.json` or `app.config.js` unless it has values that are relevant to the example - Use remote files for the default assets in the `app.json`: - `expo.icon` -- **"https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true"** - `expo.splash.image` -- **"https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true"** diff --git a/with-animated-splash-screen/app.json b/with-animated-splash-screen/app.json index 58f14be..fd0d602 100644 --- a/with-animated-splash-screen/app.json +++ b/with-animated-splash-screen/app.json @@ -1,7 +1,5 @@ { "expo": { - "name": "with-animated-splash-screen", - "version": "1.0.0", "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", "splash": { "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", diff --git a/with-auth0/app.json b/with-auth0/app.json deleted file mode 100644 index 9b9c4f6..0000000 --- a/with-auth0/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-auth0", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-custom-font/App.js b/with-custom-font/App.js index dceb229..8f77346 100644 --- a/with-custom-font/App.js +++ b/with-custom-font/App.js @@ -5,26 +5,24 @@ import { AppLoading } from "expo"; import * as Font from "expo-font"; export default () => { - let [fontsLoaded] = useFonts({ "Inter-Black": require("./assets/fonts/Inter-Black.otf"), "Inter-SemiBoldItalic": - "https://rsms.me/inter/font-files/Inter-SemiBoldItalic.otf?v=3.12" + "https://rsms.me/inter/font-files/Inter-SemiBoldItalic.otf?v=3.12", }); if (!fontsLoaded) { return ; - } else { - return ( - - Platform Default - Inter Black - - Inter SemiBoldItalic - - - ); } + return ( + + Platform Default + Inter Black + + Inter SemiBoldItalic + + + ); }; function useFonts(fontMap) { diff --git a/with-custom-font/app.json b/with-custom-font/app.json deleted file mode 100644 index aad29a0..0000000 --- a/with-custom-font/app.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "expo": { - "name": "With Custom Font Expo Example", - "version": "1.0.0", - "orientation": "portrait", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true" - } - } -} diff --git a/with-electron/app.json b/with-electron/app.json index 55f128c..b10952f 100755 --- a/with-electron/app.json +++ b/with-electron/app.json @@ -1,31 +1,11 @@ { "name": "with-electron", "expo": { - "name": "with-electron", - "slug": "with-electron", - "privacy": "public", - "sdkVersion": "36.0.0", - "platforms": [ - "ios", - "android", - "web" - ], - "version": "1.0.0", - "orientation": "portrait", "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", "splash": { "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", "resizeMode": "contain", "backgroundColor": "#ffffff" - }, - "updates": { - "fallbackToCacheTimeout": 0 - }, - "assetBundlePatterns": [ - "**/*" - ], - "ios": { - "supportsTablet": true } } } diff --git a/with-facebook-auth/app.json b/with-facebook-auth/app.json deleted file mode 100644 index 5df65dd..0000000 --- a/with-facebook-auth/app.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "expo": { - "name": "with-facebook-auth", - "description": "Using Facebook authentication in Expo, see the source: https://github.com/expo/examples/blob/master/with-facebook-auth", - "slug": "with-facebook-auth", - "sdkVersion": "35.0.0", - "version": "1.0.0", - "orientation": "portrait", - "primaryColor": "#cccccc", - "privacy": "public", - "packagerOpts": { - "assetExts": [ - "ttf", - "mp4" - ] - }, - "platforms": [ - "android", - "ios" - ] - } -} \ No newline at end of file diff --git a/with-firebase-storage-upload/app.json b/with-firebase-storage-upload/app.json deleted file mode 100644 index 1b39c8e..0000000 --- a/with-firebase-storage-upload/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-firebase-storage-upload", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-formdata-image-upload/app/app.json b/with-formdata-image-upload/app/app.json deleted file mode 100644 index bcfcb57..0000000 --- a/with-formdata-image-upload/app/app.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "expo": { - "name": "image-upload-example", - "description": "Demonstration of how to upload images from the ImagePicker, using a Node backend to upload to S3. https://github.com/expo/examples/tree/master/with-formdata-image-upload", - "slug": "image-upload-example", - "sdkVersion": "35.0.0", - "version": "1.0.0", - "orientation": "portrait", - "primaryColor": "#cccccc", - "packagerOpts": { - "assetExts": [ - "ttf", - "mp4" - ] - }, - "ios": { - "supportsTablet": true - }, - "platforms": [ - "android", - "ios" - ] - } -} \ No newline at end of file diff --git a/with-gatsby/app.json b/with-gatsby/app.json deleted file mode 100644 index 6cbf119..0000000 --- a/with-gatsby/app.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "expo": { - "name": "gatsby", - "slug": "gatsby", - "privacy": "public", - "sdkVersion": "35.0.0", - "platforms": [ - "ios", - "android", - "web" - ], - "version": "1.0.0", - "orientation": "portrait", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - }, - "updates": { - "fallbackToCacheTimeout": 0 - }, - "assetBundlePatterns": [ - "**/*" - ], - "ios": { - "supportsTablet": true - } - } -} diff --git a/with-google-vision/app.json b/with-google-vision/app.json deleted file mode 100644 index 9a58caf..0000000 --- a/with-google-vision/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-google-vision", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-icons/app.json b/with-icons/app.json deleted file mode 100644 index a1ff3eb..0000000 --- a/with-icons/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-icons", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-nextjs/app.json b/with-nextjs/app.json deleted file mode 100644 index 3e31fca..0000000 --- a/with-nextjs/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-nextjs", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-preact/app.json b/with-preact/app.json deleted file mode 100644 index eff109c..0000000 --- a/with-preact/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-preact", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-react-router/app.json b/with-react-router/app.json deleted file mode 100644 index 03168c4..0000000 --- a/with-react-router/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-react-router", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-socket-io/app/app.json b/with-socket-io/app/app.json deleted file mode 100644 index ca5e4e4..0000000 --- a/with-socket-io/app/app.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "expo": { - "name": "socket-io-example", - "slug": "socket-io-example", - "description": "Using socket.io in Expo, see the source: https://github.com/expo/examples/blob/master/with-socket-io", - "sdkVersion": "35.0.0", - "version": "1.0.0", - "orientation": "portrait", - "primaryColor": "#cccccc", - "icon": "https://s3.amazonaws.com/exp-brand-assets/ExponentEmptyManifest_192.png", - "loading": { - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true" - }, - "platforms": [ - "android", - "ios" - ] - } -} \ No newline at end of file diff --git a/with-sqlite/app.json b/with-sqlite/app.json deleted file mode 100644 index 3daca4d..0000000 --- a/with-sqlite/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-sqlite", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-storybook/app.json b/with-storybook/app.json deleted file mode 100644 index 0bfde31..0000000 --- a/with-storybook/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-storybook", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-twitter-auth/app/app.json b/with-twitter-auth/app/app.json deleted file mode 100644 index 6751862..0000000 --- a/with-twitter-auth/app/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-twitter-auth", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-typescript/app.json b/with-typescript/app.json deleted file mode 100644 index 5f3bc49..0000000 --- a/with-typescript/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-typescript", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-victory-native/app.json b/with-victory-native/app.json index 5eb31de..c22d7c5 100644 --- a/with-victory-native/app.json +++ b/with-victory-native/app.json @@ -1,23 +1,8 @@ { "expo": { - "name": "victory-native-example", - "description": "Using victory-native in Expo, see the source: https://github.com/expo/examples/blob/master/with-victory-native", - "slug": "victory-native-example", - "sdkVersion": "36.0.0", - "version": "1.0.0", - "orientation": "portrait", - "primaryColor": "#cccccc", - "privacy": "public", "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", "loading": { "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true" - }, - "ios": { - "supportsTablet": true - }, - "platforms": [ - "android", - "ios" - ] + } } } diff --git a/with-video-background/app.json b/with-video-background/app.json deleted file mode 100644 index 57f8205..0000000 --- a/with-video-background/app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "expo": { - "name": "with-video-background", - "version": "1.0.0", - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "splash": { - "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true", - "resizeMode": "contain", - "backgroundColor": "#ffffff" - } - } -} diff --git a/with-web-in-react-native-community-cli/app.json b/with-web-in-react-native-community-cli/app.json deleted file mode 100644 index 306ca48..0000000 --- a/with-web-in-react-native-community-cli/app.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "expo": {} -} diff --git a/with-webbrowser-redirect/app/app.json b/with-webbrowser-redirect/app/app.json index bf10409..4c287f6 100644 --- a/with-webbrowser-redirect/app/app.json +++ b/with-webbrowser-redirect/app/app.json @@ -1,23 +1,9 @@ { "expo": { - "name": "with-webbrowser-redirect", - "slug": "with-webbrowser-redirect", - "privacy": "public", - "sdkVersion": "35.0.0", - "version": "1.0.0", - "orientation": "portrait", - "primaryColor": "#cccccc", "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/icon.png?raw=true", - "loading": { - "icon": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true" + "splash": { + "image": "https://github.com/expo/expo/blob/master/templates/expo-template-blank/assets/splash.png?raw=true" }, - "ios": { - "supportsTablet": true - }, - "scheme": "expo.examples.with-webbrowser-redirect", - "platforms": [ - "android", - "ios" - ] + "scheme": "expo.examples.with-webbrowser-redirect" } -} \ No newline at end of file +} diff --git a/with-webbrowser-redirect/app/package.json b/with-webbrowser-redirect/app/package.json index c0e6650..5e0a324 100644 --- a/with-webbrowser-redirect/app/package.json +++ b/with-webbrowser-redirect/app/package.json @@ -1,6 +1,4 @@ { - "name": "with-webbrowser-redirect", - "private": true, "dependencies": { "expo": "^35.0.0", "expo-web-browser": "~7.0.0",