fix: only show plugin browser on dev mode
This commit is contained in:
parent
85cbac714a
commit
0817e533de
4 changed files with 4 additions and 3 deletions
|
|
@ -25,6 +25,7 @@ const {
|
|||
|
||||
let context = null;
|
||||
|
||||
/** @type {import("esbuild").BuildOptions} */
|
||||
const config = {
|
||||
entryPoints: ["src/entry.ts"],
|
||||
bundle: true,
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ if (args.adb && isADBAvailableAndAppInstalled()) {
|
|||
|
||||
if (key.name === "r") {
|
||||
console.info(chalk.yellow(`${chalk.bold("↻ Reloading")} ${packageName}`));
|
||||
restartAppFromADB(server.port)
|
||||
restartAppFromADB(server.address().port)
|
||||
.then(() => console.info(chalk.greenBright(`${chalk.bold("✔ Executed")} reload command`)))
|
||||
.catch(e => console.error(e));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ export default function Plugins() {
|
|||
</Card>
|
||||
</View>;
|
||||
}}
|
||||
ListFooterComponent={() => (
|
||||
ListFooterComponent={() => __DEV__ && (
|
||||
<View style={{ alignItems: "center", justifyContent: "center", paddingTop: 16, gap: 12 }}><Button
|
||||
size="lg"
|
||||
text="Browse Plugins"
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export default function PluginInfoActionSheet({ plugin, navigation }: PluginInfo
|
|||
// },
|
||||
{
|
||||
label: "Clear Data",
|
||||
iconSource: findAssetId("CopyIcon"),
|
||||
iconSource: findAssetId("FileIcon"),
|
||||
variant: "destructive",
|
||||
action: () => {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue