mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix production build
This commit is contained in:
parent
b88cd583d3
commit
257e78dcaa
@ -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",
|
||||
|
@ -5,7 +5,10 @@
|
||||
"build": {
|
||||
"development": {
|
||||
"developmentClient": true,
|
||||
"distribution": "internal"
|
||||
"distribution": "internal",
|
||||
"env": {
|
||||
"APP_VARIANT": "development"
|
||||
}
|
||||
},
|
||||
"preview": {
|
||||
"distribution": "internal"
|
||||
|
@ -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);
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "mobile",
|
||||
"version": "1.0.0",
|
||||
"main": "index.ts",
|
||||
"main": "index.tsx",
|
||||
"scripts": {
|
||||
"dev": "expo start",
|
||||
"android": "expo start --android",
|
||||
|
@ -1,18 +0,0 @@
|
||||
{
|
||||
"cli": {
|
||||
"version": ">= 3.1.1"
|
||||
},
|
||||
"build": {
|
||||
"development": {
|
||||
"developmentClient": true,
|
||||
"distribution": "internal"
|
||||
},
|
||||
"preview": {
|
||||
"distribution": "internal"
|
||||
},
|
||||
"production": {}
|
||||
},
|
||||
"submit": {
|
||||
"production": {}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user