@wkozyra
Thanks for the reply.
Why it is needed to host the file on my localhost while building the app. Because whenever I build like that the imageUrl, iconUrl, bundleUrl will point to my localhost as below
As discussed in the documentation https://docs.expo.io/distribution/hosting-your-app/
index.json
{
"name": "Host your app from github",
"slug": "selfhosting-example",
"privacy": "public",
"sdkVersion": "32.0.0",
"platforms": [
"ios",
"android"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff",
"imageUrl": "https://expo.github.io/self-hosting-example/assets/43ec0dcbe5a156bf9e650bb8c15e7af6"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"ios": {
"supportsTablet": true
},
"locales": {},
"iconUrl": "https://expo.github.io/self-hosting-example/assets/fa6577fecc0a7838f15a254577639984",
"bundledAssets": [
"asset_3a2ba31570920eeb9b1d217cabe58315.ttf",
"asset_744ce60078c17d86006dd0edabcd59a7.ttf",
"asset_140c53a7643ea949007aa9a282153849.ttf",
"asset_6beba7e6834963f7f171d3bdd075c915.ttf",
"asset_b06871f281fee6b241d60582ae9369b9.ttf",
"asset_e20945d7c929279ef7a6f1db184a4470.ttf",
"asset_b2e0fc821c6886fb3940f85a3320003e.ttf",
"asset_d15c1216957060fac577af6151fb8cfe.ttf",
"asset_a37b0c01c0baf1888ca812cc0508f6e2.ttf",
"asset_73b8cff012825060b308d2162f31dbb2.ttf",
"asset_d2285965fe34b05465047401b8595dd0.ttf",
"asset_5cdf883b18a5651a29a4d1ef276d2457.ttf"
],
"assetUrlOverride": "./assets",
"publishedTime": "2019-01-28T23:29:57.195Z",
"commitTime": "2019-01-28T23:29:57.195Z",
"revisionId": "4MeMDyYXAa",
"id": "@quinlanj/selfhosting-example",
"bundleUrl": "https://expo.github.io/self-hosting-example/bundles/android-f44539cd480ad7a3cce899a597d95997.js",
"platform": "android"
}
imageUrl, iconUrl, bundleUrl all these are point to URL where I hosted the static asset file.
As you said when I build the app on my local server. Then I kill the server after .ipa is created.
What will happen to the following imageUrl, iconUrl, bundleUrl in index.json
Since I dont have any OTA feature in my app. I don’t want my app to tie with any URL (even own server).