Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read android args from config file on device #298

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

ksedgwic
Copy link
Contributor

  • allows use of more interesting args w/o risk of checking them in by mistake
  • allows use of different args w/o rebuilding the app
  • uses compiled in defaults if config file missing or broken

Example android-config.json:

{
  "args": [
    "--npub",
    "npub1h50pnxqw9jg7dhr906fvy4mze2yzawf895jhnc3p7qmljdugm6gsrurqev",
    "-c",
    "contacts",
    "-c",
    "notifications"
  ]
}

Install/update android-config.json with:

adb push android-config.json /sdcard/Android/data/com.damus.app/files/android-config.json

Using internal storage would be better but it seems hard to get the config file onto the device ...

- allows use of more interesting args w/o risk of checking them in by mistake
- allows use of different args w/o rebuilding the app
- uses compiled in defaults if config file missing or broken

Example android-config.json:
```
{
  "args": [
    "--npub",
    "npub1h50pnxqw9jg7dhr906fvy4mze2yzawf895jhnc3p7qmljdugm6gsrurqev",
    "-c",
    "contacts",
    "-c",
    "notifications"
  ]
}
```

Install/update android-config.json with:
```
adb push android-config.json /sdcard/Android/data/com.damus.app/files/android-config.json
```

Using internal storage would be better but it seems hard to get the config file onto
the device ...
@ksedgwic
Copy link
Contributor Author

Maybe this should just be an "args" file? But maybe there are other config things we can do going forward?

Copy link
Contributor

@jb55 jb55 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jb55 jb55 merged commit 3c79724 into damus-io:master Sep 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants