Skip to content

Commit

Permalink
fix: only show plugin browser on dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Dec 26, 2024
1 parent 85cbac7 commit 0817e53
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const {

let context = null;

/** @type {import("esbuild").BuildOptions} */
const config = {
entryPoints: ["src/entry.ts"],
bundle: true,
Expand Down
2 changes: 1 addition & 1 deletion scripts/serve.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/ui/settings/pages/Plugins/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function PluginInfoActionSheet({ plugin, navigation }: PluginInfo
// },
{
label: "Clear Data",
iconSource: findAssetId("CopyIcon"),
iconSource: findAssetId("FileIcon"),
variant: "destructive",
action: () => {
}
Expand Down

0 comments on commit 0817e53

Please sign in to comment.