mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-26 19:12:54 +00:00
ota server change
This commit is contained in:
parent
b4b8648e25
commit
e543d72879
4 changed files with 38 additions and 39 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
|
||||||
<uses-sdk tools:overrideLibrary="dev.jdtech.mpv"/>
|
<uses-sdk tools:overrideLibrary="dev.jdtech.mpv"/>
|
||||||
<uses-permission android:name="android.permission.INTERNET"/>
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
||||||
|
|
@ -22,7 +21,7 @@
|
||||||
<meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="@string/expo_runtime_version"/>
|
<meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="@string/expo_runtime_version"/>
|
||||||
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ERROR_RECOVERY_ONLY"/>
|
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ERROR_RECOVERY_ONLY"/>
|
||||||
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="30000"/>
|
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="30000"/>
|
||||||
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest"/>
|
<meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="https://ota.nuvioapp.space/api/manifest"/>
|
||||||
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode|locale|layoutDirection" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="unspecified">
|
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode|locale|layoutDirection" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="unspecified">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
|
|
|
||||||
2
app.json
2
app.json
|
|
@ -96,7 +96,7 @@
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"checkAutomatically": "ON_ERROR_RECOVERY",
|
"checkAutomatically": "ON_ERROR_RECOVERY",
|
||||||
"fallbackToCacheTimeout": 30000,
|
"fallbackToCacheTimeout": 30000,
|
||||||
"url": "https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest"
|
"url": "https://ota.nuvioapp.space/api/manifest"
|
||||||
},
|
},
|
||||||
"runtimeVersion": "1.3.2"
|
"runtimeVersion": "1.3.2"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@
|
||||||
<key>EXUpdatesRuntimeVersion</key>
|
<key>EXUpdatesRuntimeVersion</key>
|
||||||
<string>1.2.11</string>
|
<string>1.2.11</string>
|
||||||
<key>EXUpdatesURL</key>
|
<key>EXUpdatesURL</key>
|
||||||
<string>https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest</string>
|
<string>https://ota.nuvioapp.space/api/manifest</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
@ -18,7 +18,7 @@ export class UpdateService {
|
||||||
private readonly MAX_LOGS = 100; // Keep last 100 logs
|
private readonly MAX_LOGS = 100; // Keep last 100 logs
|
||||||
private updateCheckCallbacks: UpdateCheckCallback[] = [];
|
private updateCheckCallbacks: UpdateCheckCallback[] = [];
|
||||||
|
|
||||||
private constructor() {}
|
private constructor() { }
|
||||||
|
|
||||||
public static getInstance(): UpdateService {
|
public static getInstance(): UpdateService {
|
||||||
if (!UpdateService.instance) {
|
if (!UpdateService.instance) {
|
||||||
|
|
@ -469,7 +469,7 @@ export class UpdateService {
|
||||||
*/
|
*/
|
||||||
public getUpdateUrl(): string {
|
public getUpdateUrl(): string {
|
||||||
// Use the URL from app.json configuration
|
// Use the URL from app.json configuration
|
||||||
return 'https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest';
|
return 'https://ota.nuvioapp.space/api/manifest';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue