Skip to content

Commit b3d18d3

Browse files
committed
feat(app): Customizable output directories
Added a new Advanced screen, which allows you to choose your own source/destination directory. Also introduces "services" for file management and backups to make maintenance easier down the road.
1 parent 0b5b06a commit b3d18d3

12 files changed

Lines changed: 1451 additions & 157 deletions

File tree

companion_app/android/app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<uses-permission android:name="android.permission.READ_CONTACTS"/>
44
<uses-permission android:name="android.permission.WRITE_CONTACTS"/>
55
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
6-
<uses-permission android:maxSdkVersion="29" android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
6+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
77
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
88
<uses-permission android:name="android.permission.READ_SMS" />
99
<uses-permission android:name="android.permission.READ_CALL_LOG" />
@@ -34,6 +34,12 @@
3434
<category android:name="android.intent.category.LAUNCHER"/>
3535
</intent-filter>
3636
</activity>
37+
<!-- File picker activity -->
38+
<activity
39+
android:name="com.flutter.plugin.filepicker.FilePickerActivity"
40+
android:exported="true"
41+
android:theme="@style/FilePickerTheme" />
42+
3743
<!-- Don't delete the meta-data below.
3844
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
3945
<meta-data

companion_app/android/app/src/main/res/values/styles.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@
1515
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
1616
<item name="android:windowBackground">?android:colorBackground</item>
1717
</style>
18+
19+
<!-- File picker theme -->
20+
<style name="FilePickerTheme" parent="Theme.AppCompat.Light.NoActionBar">
21+
<item name="android:windowBackground">@android:color/transparent</item>
22+
<item name="android:windowIsTranslucent">true</item>
23+
</style>
1824
</resources>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
description: This file stores settings for Dart & Flutter DevTools.
2+
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
3+
extensions:

0 commit comments

Comments
 (0)