-
Notifications
You must be signed in to change notification settings - Fork 241
fix: Android target API compatibility for F-Droid distribution #1435
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
Open
nope3472
wants to merge
7
commits into
fossasia:development
Choose a base branch
from
nope3472:F_droiderror
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7f41ce6
chore: update pubspec.lock before merging development
360374d
Merge remote-tracking branch 'upstream/development' into development
6abc751
Merge remote-tracking branch 'upstream/development' into development
1e46f5b
updated the target api level
be6442f
Merge remote-tracking branch 'upstream/development' into F_droiderror
f0e9355
Merge branch 'development' into F_droiderror
mariobehling 6cd79b6
Merge branch 'development' into F_droiderror
mariobehling File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,88 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<!-- Bluetooth LE feature declaration --> | ||
<uses-feature | ||
android:name="android.hardware.bluetooth_le" | ||
android:required="false"/> | ||
|
||
<!-- Internet permission --> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<!-- Android 12+ Bluetooth permissions --> | ||
<uses-permission | ||
android:name="android.permission.BLUETOOTH_SCAN" | ||
android:usesPermissionFlags="neverForLocation"/> | ||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/> | ||
|
||
<!-- Legacy Bluetooth permissions for Android 11 and lower --> | ||
<uses-permission | ||
android:name="android.permission.BLUETOOTH" | ||
android:maxSdkVersion="30"/> | ||
<uses-permission | ||
android:name="android.permission.BLUETOOTH_ADMIN" | ||
android:maxSdkVersion="30"/> | ||
<uses-permission | ||
android:name="android.permission.ACCESS_FINE_LOCATION" | ||
android:maxSdkVersion="30"/> | ||
|
||
<!-- Legacy location permission for Android 9 and lower --> | ||
<uses-permission | ||
android:name="android.permission.ACCESS_COARSE_LOCATION" | ||
android:maxSdkVersion="28"/> | ||
|
||
<application | ||
android:label="Badge Magic" | ||
android:name="${applicationName}" | ||
android:icon="@mipmap/ic_launcher"> | ||
android:icon="@mipmap/ic_launcher" | ||
android:allowBackup="false"> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:exported="true" | ||
android:launchMode="singleTop" | ||
android:theme="@style/LaunchTheme" | ||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" | ||
android:hardwareAccelerated="true" | ||
android:windowSoftInputMode="adjustResize"> | ||
android:windowSoftInputMode="adjustResize" | ||
android:enableOnBackInvokedCallback="true"> | ||
|
||
<!-- Specifies an Android theme to apply to this Activity as soon as | ||
the Android process has started. This theme is visible to the user | ||
while the Flutter UI initializes. After that, this theme continues | ||
to determine the Window background behind the Flutter UI. --> | ||
<meta-data | ||
android:name="io.flutter.embedding.android.NormalTheme" | ||
android:resource="@style/NormalTheme" | ||
/> | ||
android:resource="@style/NormalTheme" /> | ||
|
||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
</activity> | ||
|
||
<!-- Don't delete the meta-data below. | ||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> | ||
<meta-data | ||
android:name="flutterEmbedding" | ||
android:value="2" /> | ||
</application> | ||
|
||
<!-- Required to query activities that can process text, see: | ||
https://developer.android.com/training/package-visibility?hl=en and | ||
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. | ||
|
||
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> | ||
<queries> | ||
<intent> | ||
<action android:name="android.intent.action.PROCESS_TEXT"/> | ||
<data android:mimeType="text/plain"/> | ||
</intent> | ||
<intent> | ||
<action android:name="android.support.customtabs.action.CustomTabsService" /> | ||
<action android:name="androidx.browser.customtabs.action.CustomTabsService" /> | ||
</intent> | ||
<intent> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data android:scheme="https" /> | ||
</intent> | ||
</queries> | ||
<!-- Tell Google Play Store that your app uses Bluetooth LE | ||
Set android:required="true" if bluetooth is necessary --> | ||
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false"/> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<!-- New Bluetooth permissions in Android 12 | ||
https://developer.android.com/about/versions/12/features/bluetooth-permissions --> | ||
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation"/> | ||
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT"/> | ||
<!-- legacy for Android 11 or lower --> | ||
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30"/> | ||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30"/> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30"/> | ||
<!-- legacy for Android 9 or lower --> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:maxSdkVersion="28"/> | ||
</manifest> | ||
</manifest> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
referring to the comment of @AsCress. So, do we need to define the specific version here? It is already defined in the pubspec.yaml.