test: hot update v10 — expo-updates 新id+createdAt
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
{
|
||||
"id": "hot-update-v9-000000000000",
|
||||
"createdAt": "2026-07-20T16:00:00.000Z",
|
||||
"runtimeVersion": "0.1.0",
|
||||
"launchAsset": {
|
||||
"key": "bundle",
|
||||
"contentType": "application/javascript",
|
||||
"url": "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/releases/download/v0.1.0-dav-android-9/index.android.bundle"
|
||||
},
|
||||
"assets": [],
|
||||
"metadata": {}
|
||||
"id": "ca582f57-9d65-4831-9d8a-1df3939264c7",
|
||||
"assets": [
|
||||
|
||||
],
|
||||
"createdAt": "2026-07-20T15:48:27.579Z",
|
||||
"metadata": {
|
||||
|
||||
},
|
||||
"runtimeVersion": "0.1.0",
|
||||
"launchAsset": {
|
||||
"contentType": "application/javascript",
|
||||
"key": "bundle",
|
||||
"url": "https://git.childish-ghost.com/LukeMackin/Yuzu-GCA/releases/download/v0.1.0-dav-android-10/index.android.bundle"
|
||||
}
|
||||
}
|
||||
@@ -2,12 +2,27 @@ var React = require("react");
|
||||
var View = require("react-native").View;
|
||||
var Text = require("react-native").Text;
|
||||
var AppRegistry = require("react-native").AppRegistry;
|
||||
var Updates = require("expo-updates");
|
||||
|
||||
function App() {
|
||||
var [status, setStatus] = React.useState("loading...");
|
||||
|
||||
React.useEffect(function() {
|
||||
try {
|
||||
var info = "runtime: " + Updates.runtimeVersion + "\n";
|
||||
info += "channel: " + (Updates.channel || "default") + "\n";
|
||||
info += "updateId: " + (Updates.updateId || "none") + "\n";
|
||||
info += "isEmbedded: " + Updates.isEmbeddedLaunch;
|
||||
setStatus(info);
|
||||
} catch(e) {
|
||||
setStatus("Error: " + e.message);
|
||||
}
|
||||
}, []);
|
||||
|
||||
return React.createElement(View, {style: {flex:1,backgroundColor:"#0f172a",alignItems:"center",justifyContent:"center"}},
|
||||
React.createElement(Text, {style: {fontSize:28,fontWeight:"800",color:"#e2e8f0"}}, "Yuzu GCA"),
|
||||
React.createElement(Text, {style: {fontSize:14,color:"#64748b",marginTop:8}}, "v0.1.0-dav-android-9"),
|
||||
React.createElement(Text, {style: {fontSize:12,color:"#3b82f6",marginTop:16}}, "expo-updates active")
|
||||
React.createElement(Text, {style: {fontSize:14,color:"#64748b",marginTop:8}}, "v0.1.0-dav-android-10"),
|
||||
React.createElement(Text, {style: {fontSize:10,color:"#3b82f6",marginTop:8,textAlign:"center"}}, status)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user