fix: Add build script and fix manifest
- Add build-apk.sh for easy compilation - Simplify AndroidManifest.xml - Fix themes.xml to use basic Android themes - Enable BuildConfig - Add okhttp-dnsoverhttps dependency
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for watch products. Do not translate. -->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Don't clip on round screens so the list can scroll past the rounded edges. -->
|
||||
<bool name="config_preferenceFragmentClipToPadding">false</bool>
|
||||
|
||||
<!-- The amount to offset when scrolling to a selection in an AlertDialog -->
|
||||
<dimen name="config_alertDialogSelectionScrollOffset">@dimen/screen_percentage_15</dimen>
|
||||
</resources>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<resources>
|
||||
<!-- each of these are relative to the display size -->
|
||||
<item name="input_extract_layout_height" type="fraction">25.2%</item>
|
||||
<item name="input_extract_layout_padding_left" type="fraction">7.5%</item>
|
||||
<item name="input_extract_layout_padding_left_no_action" type="fraction">@fraction/input_extract_layout_padding_right</item>
|
||||
<item name="input_extract_layout_padding_right" type="fraction">21.4%</item>
|
||||
<item name="input_extract_text_margin_bottom" type="fraction">5.5%</item>
|
||||
<item name="input_extract_action_margin_bottom" type="fraction">2.1%</item>
|
||||
<item name="input_extract_action_button_width" type="dimen">32dp</item>
|
||||
<item name="input_extract_action_button_height" type="dimen">32dp</item>
|
||||
<item name="input_extract_action_icon_padding" type="dimen">5dp</item>
|
||||
|
||||
<item name="global_actions_vertical_padding_percentage" type="fraction">20.8%</item>
|
||||
<item name="global_actions_horizontal_padding_percentage" type="fraction">5.2%</item>
|
||||
</resources>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<resources>
|
||||
<dimen name="dialog_padding_material">@dimen/screen_percentage_15</dimen>
|
||||
<dimen name="preference_fragment_padding_vertical_material">@dimen/screen_percentage_15</dimen>
|
||||
|
||||
<dimen name="list_item_padding_horizontal_material">@dimen/screen_percentage_15</dimen>
|
||||
<dimen name="list_item_padding_start_material">@dimen/screen_percentage_15</dimen>
|
||||
<dimen name="list_item_padding_end_material">@dimen/screen_percentage_10</dimen>
|
||||
|
||||
<dimen name="dialog_list_padding_top_no_title">@dimen/screen_percentage_15</dimen>
|
||||
<dimen name="dialog_list_padding_bottom_no_buttons">@dimen/screen_percentage_15</dimen>
|
||||
|
||||
<!-- Dialog padding minus control padding, used to fix alignment. -->
|
||||
<dimen name="select_dialog_padding_start_material">@dimen/screen_percentage_15</dimen>
|
||||
<dimen name="select_dialog_drawable_padding_start_material">8dp</dimen>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user