1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-02 01:01:17 +00:00
syncthing-android/app/src/main/AndroidManifest.xml

173 lines
8.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2016-04-26 20:54:27 +00:00
xmlns:tools="http://schemas.android.com/tools"
2015-06-28 15:43:43 +00:00
package="com.nutomic.syncthingandroid">
2015-05-30 09:01:38 +00:00
<uses-feature android:name="android.software.leanback" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
Bump dependencies (AndroidX, com.github.triplet.play 2.7.5, gradle 3.6.3) (#1491) * Bump com.github.triplet.play from 2.5.0 to 2.7.5 Bumps com.github.triplet.play from 2.5.0 to 2.7.5. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix com.github.triplet.play dependency setup * gradle-wrapper.properties: Update gradle 6.0.1 > 6.2.2 from: https://github.com/Catfriend1/syncthing-android/commit/5ad55348b8fff12ca3b47d87b68869d1e153f7f5 * build.gradle: Update "com.android.tools.build:gradle" from 3.5.3 to 3.6.3 * gradle.properties: + android.useAndroidX=true * Migrate to AndroidX: import androidx.databinding.DataBindingUtil * Create setenv.cmd * Fix lint error: RtlCompat Right-to-left text compatibility issues ../../src/main/res/layout/activity_firststart_slide1.xml:46: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 43 android:paddingLeft="@dimen/desc_padding" 44 android:paddingRight="@dimen/desc_padding" 45 android:text="@string/welcome_text" 46 android:textAlignment="center" 47 android:textColor="@android:color/white" 48 android:textSize="@dimen/slide_desc" /> 49 ../../src/main/res/layout/activity_firststart_slide2.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/storage_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/activity_firststart_slide3.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/location_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/fragment_external_versioning.xml:11: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 8 android:layout_height="wrap_content" 9 android:layout_margin="10dp" 10 android:text="@string/command" 11 android:textAlignment="center" 12 android:textColor="@android:color/black" 13 android:textSize="18sp" 14 android:textStyle="bold" /> ../../src/main/res/layout/fragment_simple_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 20 android:layout_height="wrap_content" 21 android:layout_margin="10dp" 22 android:text="@string/keep_versions" 23 android:textAlignment="center" 24 android:textColor="@android:color/black" 25 android:textSize="18sp" 26 android:textStyle="bold" /> ../../src/main/res/layout/fragment_staggered_versioning.xml:17: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:text="@string/maximum_age" 17 android:textAlignment="center" 18 android:textColor="@android:color/black" 19 android:textSize="18sp" 20 android:textStyle="bold" ../../src/main/res/layout/fragment_staggered_versioning.xml:44: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 41 android:layout_height="wrap_content" 42 android:layout_margin="10dp" 43 android:text="@string/versions_path" 44 android:textAlignment="center" 45 android:textColor="@android:color/black" 46 android:textSize="18sp" 47 android:textStyle="bold" ../../src/main/res/layout/fragment_trashcan_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" * AndroidManifest: Add permission ACCESS_FINE_LOCATION Ref.: https://github.com/Catfriend1/syncthing-android/commit/5755ed45ad5de4f9d4ac1ddf3a2851e62a4545d9 * Migrate to AndroidX, solves lint error "IncompatibleGradle" according to: - https://github.com/Catfriend1/syncthing-android/commit/b04489e062feb525a3168fc09104c45ec61419fb * Fix lint error: MissingPermission, catch SecurityException * Revert "Create setenv.cmd" This reverts commit e39c460837ad3766887de3f7cf3378ddddcd1228. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Catfriend1 <Catfriend1@users.noreply.github.com>
2020-05-17 14:04:32 +00:00
<uses-feature android:name="android.hardware.location.gps" android:required="false" />
2015-05-30 09:01:38 +00:00
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
<!-- ACCESS_COARSE_LOCATION is required to get WiFi's SSID on 8.1 -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- FOREGROUND_SERVICE is required to create a foreground service on 9 -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Bump dependencies (AndroidX, com.github.triplet.play 2.7.5, gradle 3.6.3) (#1491) * Bump com.github.triplet.play from 2.5.0 to 2.7.5 Bumps com.github.triplet.play from 2.5.0 to 2.7.5. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix com.github.triplet.play dependency setup * gradle-wrapper.properties: Update gradle 6.0.1 > 6.2.2 from: https://github.com/Catfriend1/syncthing-android/commit/5ad55348b8fff12ca3b47d87b68869d1e153f7f5 * build.gradle: Update "com.android.tools.build:gradle" from 3.5.3 to 3.6.3 * gradle.properties: + android.useAndroidX=true * Migrate to AndroidX: import androidx.databinding.DataBindingUtil * Create setenv.cmd * Fix lint error: RtlCompat Right-to-left text compatibility issues ../../src/main/res/layout/activity_firststart_slide1.xml:46: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 43 android:paddingLeft="@dimen/desc_padding" 44 android:paddingRight="@dimen/desc_padding" 45 android:text="@string/welcome_text" 46 android:textAlignment="center" 47 android:textColor="@android:color/white" 48 android:textSize="@dimen/slide_desc" /> 49 ../../src/main/res/layout/activity_firststart_slide2.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/storage_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/activity_firststart_slide3.xml:61: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 58 android:paddingLeft="@dimen/desc_padding" 59 android:paddingRight="@dimen/desc_padding" 60 android:text="@string/location_permission_desc" 61 android:textAlignment="center" 62 android:textColor="@android:color/white" 63 android:textSize="@dimen/slide_desc" /> 64 ../../src/main/res/layout/fragment_external_versioning.xml:11: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 8 android:layout_height="wrap_content" 9 android:layout_margin="10dp" 10 android:text="@string/command" 11 android:textAlignment="center" 12 android:textColor="@android:color/black" 13 android:textSize="18sp" 14 android:textStyle="bold" /> ../../src/main/res/layout/fragment_simple_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 20 android:layout_height="wrap_content" 21 android:layout_margin="10dp" 22 android:text="@string/keep_versions" 23 android:textAlignment="center" 24 android:textColor="@android:color/black" 25 android:textSize="18sp" 26 android:textStyle="bold" /> ../../src/main/res/layout/fragment_staggered_versioning.xml:17: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 14 android:layout_width="match_parent" 15 android:layout_height="wrap_content" 16 android:text="@string/maximum_age" 17 android:textAlignment="center" 18 android:textColor="@android:color/black" 19 android:textSize="18sp" 20 android:textStyle="bold" ../../src/main/res/layout/fragment_staggered_versioning.xml:44: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" 41 android:layout_height="wrap_content" 42 android:layout_margin="10dp" 43 android:text="@string/versions_path" 44 android:textAlignment="center" 45 android:textColor="@android:color/black" 46 android:textSize="18sp" 47 android:textStyle="bold" ../../src/main/res/layout/fragment_trashcan_versioning.xml:23: To support older versions than API 17 (project specifies 16) you must also specify gravity or layout_gravity="center_horizontal" * AndroidManifest: Add permission ACCESS_FINE_LOCATION Ref.: https://github.com/Catfriend1/syncthing-android/commit/5755ed45ad5de4f9d4ac1ddf3a2851e62a4545d9 * Migrate to AndroidX, solves lint error "IncompatibleGradle" according to: - https://github.com/Catfriend1/syncthing-android/commit/b04489e062feb525a3168fc09104c45ec61419fb * Fix lint error: MissingPermission, catch SecurityException * Revert "Create setenv.cmd" This reverts commit e39c460837ad3766887de3f7cf3378ddddcd1228. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Catfriend1 <Catfriend1@users.noreply.github.com>
2020-05-17 14:04:32 +00:00
<!-- ACCESS_FINE_LOCATION is required to get WiFi's SSID on 10 "Q" -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
2020-12-12 15:20:06 +00:00
<!-- ACCESS_BACKGROUND_LOCATION is required to get WiFi's SSID on 10 "Q" -->
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<!-- CAMERA is required for the QR Code Scanner -->
<uses-permission android:name="android.permission.CAMERA" />
<!-- MANAGE_EXTERNAL_STORAGE is required on Android 11 "R" -->
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-sdk tools:overrideLibrary="com.google.zxing.client.android" />
<application
android:allowBackup="false"
android:fullBackupContent="false"
android:icon="@mipmap/ic_launcher"
2015-05-30 09:01:38 +00:00
android:banner="@drawable/banner"
android:label="@string/app_name"
android:theme="@style/Theme.Syncthing"
2015-06-19 18:15:35 +00:00
android:description="@string/app_description"
android:supportsRtl="true"
android:installLocation="internalOnly"
2020-12-12 15:20:06 +00:00
android:requestLegacyExternalStorage="true"
android:name=".SyncthingApp">
<activity
2016-09-07 01:02:18 +00:00
android:name=".activities.FirstStartActivity"
android:label="@string/app_name"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
2015-05-30 09:01:38 +00:00
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
2016-09-07 01:02:18 +00:00
<activity
android:name=".activities.MainActivity"
android:label="@string/app_name"
android:launchMode="singleTask">
2016-09-07 01:02:18 +00:00
</activity>
<activity
android:name=".activities.WebGuiActivity"
android:label="@string/web_gui_title"
android:parentActivityName=".activities.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.MainActivity" />
</activity>
2015-03-28 13:28:23 +00:00
<activity
android:name=".activities.ShareActivity"
android:label="@string/share_activity_title"
android:excludeFromRecents="true"
android:taskAffinity=""
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
</activity>
<activity
2015-03-28 13:28:23 +00:00
android:name=".activities.LogActivity"
android:parentActivityName=".activities.SettingsActivity">
<intent-filter>
<action android:name=".activities.LogActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
2015-03-28 13:28:23 +00:00
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.SettingsActivity" />
2015-03-28 13:28:23 +00:00
</activity>
<activity
android:name=".activities.FolderPickerActivity"
android:label="@string/folder_picker_title">
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name=".activities.DeviceActivity"
android:parentActivityName=".activities.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.MainActivity" />
</activity>
<activity android:name=".activities.FolderActivity"
android:parentActivityName=".activities.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.MainActivity" />
</activity>
2016-11-10 14:55:55 +00:00
<activity android:name=".activities.SettingsActivity"
android:parentActivityName=".activities.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.MainActivity" />
</activity>
2016-10-31 09:25:55 +00:00
<service android:name=".service.SyncthingService" />
<receiver android:name=".receiver.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
<receiver android:name=".receiver.AppConfigReceiver"
2016-04-26 20:54:27 +00:00
tools:ignore="ExportedReceiver">
<intent-filter>
<action android:name="com.nutomic.syncthingandroid.action.START" />
<action android:name="com.nutomic.syncthingandroid.action.STOP" />
</intent-filter>
</receiver>
<activity android:name=".activities.FolderTypeDialogActivity"
android:label="@string/folder_type"
android:theme="@style/Theme.Syncthing.Dialog"
android:parentActivityName=".activities.FolderActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.nutomic.syncthingandroid.activities.FolderActivity" />
</activity>
<activity android:name=".activities.PullOrderDialogActivity"
android:label="@string/pull_order"
android:theme="@style/Theme.Syncthing.Dialog"
android:parentActivityName=".activities.FolderActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.nutomic.syncthingandroid.activities.FolderActivity" />
</activity>
Added support for all versioning types in the app UI. Addressing #718 (#896) * Merge branch 'Fix718' Merged fixes for issues #718, added functionality for all the file versioning types in the app UI. * Basic theme is working * GOt dialog working with setREsult. * Addressed issues raised and fixed orientation change bug. Adressed issues radied by nutomic: - Changed the String concatenation so it uses String.format. - Made members variables private that were not previously private by mistake. - Changed name from FolderPathTextView to FolderPathTextViewFragment. - Fixed typo in NumberPickerFragment - Now uses TImeUnit for time conversion - Changed from DialogFragment to a dialog themed Activity inorder to have correct themeing. About the orientation change bug. When the dialog themed activity was open and the orientation was changed, it would cause the background activity(The FolderActivity) to recreate itself. In the process of recreating itself it would reset the mFolder variable and then reinitialise it in the OnApiChange listener. However the result from the Dialog was returned before the mFolder had been reinitialised and was still null, so inbetween the result being returned and the mFolder variable being reinitialised the new file versioning configuration had to be stored and then applied to the mFolder variable in the onApiChange listener. The file versioning configuration is temporarily stored in the mVersioning variable which is an instance of Folder.versioning. This error only occurred when using an Activity as a dialog and using the startActivityForResult method for initialisling the activity. Before when using a dialogfragment and an interface to callback to the parent activity, everything happend in the correct order. * Fixed versioning dialog lag. The initial updateFragmentView() is called in onCreate() and the fragment is only updated when a new file versioning type is selected. * Removed FolderPathTextViewFragment The fragment is removed, and a helper method has been added to FolderPickerActivity to create an intent to the the FolderPickerActivity for result.
2017-06-15 08:44:44 +00:00
<activity android:name=".activities.VersioningDialogActivity"
android:label="@string/file_versioning"
android:theme="@style/Theme.Syncthing.Dialog"
android:parentActivityName=".activities.FolderActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.nutomic.syncthingandroid.activities.FolderActivity" />
</activity>
<activity android:name=".activities.QRScannerActivity"
android:label="QR Code Scanner"
android:parentActivityName=".activities.DeviceActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.nutomic.syncthingandroid.activities.DeviceActivity" />
</activity>
</application>
</manifest>