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",
|
version: "1.0.0",
|
||||||
orientation: "default",
|
orientation: "default",
|
||||||
icon: "./assets/icon.png",
|
icon: "./assets/icon.png",
|
||||||
entryPoint: "./index.ts",
|
entryPoint: "./index.tsx",
|
||||||
userInterfaceStyle: "light",
|
userInterfaceStyle: "light",
|
||||||
splash: {
|
splash: {
|
||||||
image: "./assets/splash.png",
|
image: "./assets/splash.png",
|
||||||
|
@ -5,7 +5,10 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"development": {
|
"development": {
|
||||||
"developmentClient": true,
|
"developmentClient": true,
|
||||||
"distribution": "internal"
|
"distribution": "internal",
|
||||||
|
"env": {
|
||||||
|
"APP_VARIANT": "development"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"preview": {
|
"preview": {
|
||||||
"distribution": "internal"
|
"distribution": "internal"
|
||||||
|
@ -18,4 +18,13 @@
|
|||||||
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
* 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",
|
"name": "mobile",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "index.ts",
|
"main": "index.tsx",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "expo start",
|
"dev": "expo start",
|
||||||
"android": "expo start --android",
|
"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