Fix production build

This commit is contained in:
Zoe Roux 2022-12-31 02:00:39 +09:00
parent b88cd583d3
commit 257e78dcaa
5 changed files with 16 additions and 22 deletions

View File

@ -28,7 +28,7 @@ const config = {
version: "1.0.0",
orientation: "default",
icon: "./assets/icon.png",
entryPoint: "./index.ts",
entryPoint: "./index.tsx",
userInterfaceStyle: "light",
splash: {
image: "./assets/splash.png",

View File

@ -5,7 +5,10 @@
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
"distribution": "internal",
"env": {
"APP_VARIANT": "development"
}
},
"preview": {
"distribution": "internal"

View File

@ -18,4 +18,13 @@
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
*/
import "expo-router/entry";
import { registerRootComponent } from "expo";
import { ExpoRoot } from "expo-router";
export function App() {
// @ts-ignore
const ctx = require.context("./app");
return <ExpoRoot context={ctx} />;
}
registerRootComponent(App);

View File

@ -1,7 +1,7 @@
{
"name": "mobile",
"version": "1.0.0",
"main": "index.ts",
"main": "index.tsx",
"scripts": {
"dev": "expo start",
"android": "expo start --android",

View File

@ -1,18 +0,0 @@
{
"cli": {
"version": ">= 3.1.1"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {}
},
"submit": {
"production": {}
}
}