Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 06942a1

Browse files
committed
Define backup + make life easier for app translators
1 parent 3e4da0b commit 06942a1

File tree

5 files changed

+31
-3
lines changed

5 files changed

+31
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ It allow module developers to have a more customizable install experience
5555

5656
For more information please check the [developer documentation](DEVELOPERS.md)
5757

58+
## For translators
59+
See [`app/src/main/res/values/strings.xml`](https://github.com/Fox2Code/FoxMagiskModuleManager/blob/master/app/src/main/res/values/strings.xml)
60+
and [`app/src/main/res/values/arrays.xml`](https://github.com/Fox2Code/FoxMagiskModuleManager/blob/master/app/src/main/res/values/arrays.xml)
61+
62+
If your language is right to left you should make a copy of [`app/src/main/res/values/bools.xml`](https://github.com/Fox2Code/FoxMagiskModuleManager/blob/master/app/src/main/res/values/bools.xml)
63+
and set `lang_support_rtl` to `true`.
64+
65+
Translators are not expected to have any previous coding experience.
66+
5867
## Screenshots
5968

6069
Main activity:

app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@
1616

1717
<application
1818
android:name=".MainApplication"
19-
android:allowBackup="false"
19+
android:allowBackup="true"
2020
android:icon="@mipmap/ic_launcher"
2121
android:roundIcon="@mipmap/ic_launcher"
2222
android:label="@string/app_name"
23-
android:supportsRtl="true"
23+
android:supportsRtl="@bool/lang_support_rtl"
2424
android:testOnly="false"
25-
android:theme="@style/Theme.MagiskModuleManager">
25+
android:theme="@style/Theme.MagiskModuleManager"
26+
android:fullBackupContent="@xml/full_backup_content"
27+
android:dataExtractionRules="@xml/data_extraction_rules"
28+
tools:targetApi="s">
2629
<receiver android:name="com.fox2code.mmm.manager.ModuleBootReceive"
2730
android:exported="true">
2831
<intent-filter>

app/src/main/res/values/bools.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<bool name="lang_support_rtl">false</bool>
4+
</resources>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<data-extraction-rules>
3+
<cloud-backup>
4+
<include domain="sharedpref" path="mmm.xml"/>
5+
</cloud-backup>
6+
<device-transfer>
7+
<include domain="sharedpref" path="mmm.xml"/>
8+
</device-transfer>
9+
</data-extraction-rules>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<full-backup-content>
2+
<include domain="sharedpref" path="mmm.xml"/>
3+
</full-backup-content>

0 commit comments

Comments
 (0)