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

Add an extra application ID suffix for the debug version #630

Merged
merged 1 commit into from Oct 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/build.gradle
Expand Up @@ -28,6 +28,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationIdSuffix ".debug"
}
}

lintOptions {
Expand Down
5 changes: 5 additions & 0 deletions app/src/debug/res/values-v17/strings.xml
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- API 17 doesn't understand soft hyphens (and renders them as hyphens instead) -->
<string name="app_name" translatable="false">StreetComplete Dev</string>
</resources>
5 changes: 5 additions & 0 deletions app/src/debug/res/values-v18/strings.xml
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- API 18 and up understand soft hyphens in that they at least don't render them when not necessary -->
<string name="app_name" translatable="false">Street­Complete Dev</string>
</resources>
4 changes: 4 additions & 0 deletions app/src/debug/res/values/untranslatableStrings.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name" translatable="false">Street­Complete Dev</string>
</resources>
67 changes: 67 additions & 0 deletions app/src/debug/res/xml/preferences.xml
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/de.westnordost.streetcomplete.debug">

<PreferenceCategory
android:key="communication"
android:title="@string/pref_category_communication">

<ListPreference
android:key="autosync"
android:title="@string/pref_title_sync"
android:summary="%s"
android:defaultValue="ON"
android:entries="@array/pref_entries_autosync"
android:entryValues="@array/pref_entryvalues_autosync"
android:persistent="true"
/>

<Preference
android:key="oauth"
android:title="@string/pref_title_authorization"
android:summary="@string/pref_title_not_authorized_summary"
android:persistent="true"
/>

</PreferenceCategory>

<PreferenceCategory
android:title="@string/pref_category_cache">

<de.westnordost.streetcomplete.settings.NumberPickerPreference
android:key="map.tilecache"
android:title="@string/pref_title_map_cache"
android:summary="@string/pref_tilecache_size_summary"
android:defaultValue="50"
android:persistent="true"
custom:minValue="1"
custom:maxValue="250"
android:dialogMessage="@string/pref_tilecache_size_message"
android:dialogLayout="@layout/numberpicker_preference"
android:positiveButtonText="@android:string/ok"
android:negativeButtonText="@android:string/cancel"
/>

</PreferenceCategory>

<PreferenceCategory
android:key="display"
android:title="@string/pref_category_display">

<SwitchPreference
android:key="display.keepScreenOn"
android:title="@string/pref_title_keep_screen_on"
android:persistent="true"
/>

<SwitchPreference
android:key="display.nonQuestionNotes"
android:title="@string/pref_title_show_notes_not_phrased_as_questions"
android:summaryOn="@string/pref_summaryOn_show_notes_not_phrased_as_questions"
android:summaryOff="@string/pref_summaryOff_show_notes_not_phrased_as_questions"
android:persistent="true"
/>

</PreferenceCategory>

</PreferenceScreen>