Skip to content

Commit

Permalink
Update permission_handler in the companion app
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrfv committed Feb 11, 2023
1 parent 503401e commit 321403d
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 71 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-companion-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
env:
working-directory: ./companion_app
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
working-directory: ./companion_app

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
Expand Down
2 changes: 1 addition & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
# Application metadata - don't change
# This is used to download a stable, compatible version of the Android companion app,
# so it should match the tag name in GitHub Releases
APP_VERSION="v1.0.1"
APP_VERSION="v1.0.2"

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
Expand Down
7 changes: 4 additions & 3 deletions companion_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ class _HomeState extends State<Home> {
}
String csv = const ListToCsvConverter().convert(processedMessages);

final File sms_file_export = File(
final File smsFileExport = File(
"/storage/emulated/0/linux-android-backup-temp/SMS_Messages.csv");
sms_file_export.writeAsString(csv);
smsFileExport.writeAsString(csv);

// Show a dialog if the export is complete
showInfoDialog(context, "Data Exported",
Expand Down Expand Up @@ -212,7 +212,8 @@ class _HomeState extends State<Home> {
const Text(
"The Linux Android Backup companion app allows for backups of your contacts, with more to come. It doesn't upload your data to a remote server: data is saved to the internal storage and then read by the script running on your computer.",
),
const Text("This app requires a computer as well as the Linux Android Backup script running."),
const Text(
"This app requires a computer as well as the Linux Android Backup script running."),
ElevatedButton(
onPressed: () {
setState(() {
Expand Down
Loading

0 comments on commit 321403d

Please sign in to comment.