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

Be compatible with Android 12 permissions and build on M1 Mac #227

Closed
MrCsabaToth opened this issue Dec 30, 2021 · 5 comments
Closed

Be compatible with Android 12 permissions and build on M1 Mac #227

MrCsabaToth opened this issue Dec 30, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@MrCsabaToth
Copy link
Member

This will need the upgrade of these plugins at least:

  • bluetooth_enable
  • flutter_blue
  • permission_handler

First as a quick start I'll:

  • depend on bluetooth_enable_fork instead of bluetooth_enable, although later possibly I have to bring-in custom changes into my own fork
  • depend on boskokg's fork (https://github.com/boskokg/flutter_blue), and later possibly reintroduce my pac-man exception catches in an own fork to get rid of release-only crashes
  • unpinned the permission_handler version so it could be upgraded to the latest

With this flutter upgrade only sees 7 transitional dependencies it could not upgrade.
I opened the android12_and_m1 feature branch for this but haven't tested it yet.

@MrCsabaToth
Copy link
Member Author

Research for #16 has related findings!

@MrCsabaToth
Copy link
Member Author

MrCsabaToth commented Jan 24, 2022

Note that the boskokg fork has features which may make bluetooth_enable unnecessary, like this one displays permissions for iOS pauldemarco/flutter_blue#964
#210

@MrCsabaToth
Copy link
Member Author

The end is near. Now Flutter SDK 2.10.1 has a new feature, during build I'm warned:

Warning: The plugin flutter_plugin_android_lifecycle requires Android SDK version 31.
Warning: The plugin integration_test requires Android SDK version 31.
Warning: The plugin package_info_plus requires Android SDK version 31.
Warning: The plugin path_provider_android requires Android SDK version 31.
Warning: The plugin shared_preferences_android requires Android SDK version 31.
Warning: The plugin soundpool requires Android SDK version 31.
Warning: The plugin url_launcher_android requires Android SDK version 31.
One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to /home/csaba/repos/flutter/track_my_indoor_exercise/android/app/build.gradle:
android {
compileSdkVersion 31
...
}

@MrCsabaToth
Copy link
Member Author

Looks like for M1 Android a protobuf version is important pauldemarco/flutter_blue#947 (comment)

@MrCsabaToth
Copy link
Member Author

Note: Sebastian's find: unleash dependabot once we can unpin BLE/permission related packages https://github.blog/changelog/2022-04-05-pub-beta-support-for-dependabot-version-updates/

@MrCsabaToth MrCsabaToth added the priority Issues I'd want to prioritize label Jun 17, 2022
@MrCsabaToth MrCsabaToth added the upcoming Issues I soon will focus on label Jun 25, 2022
MrCsabaToth added a commit that referenced this issue Jun 26, 2022
MrCsabaToth added a commit that referenced this issue Jun 26, 2022
MrCsabaToth added a commit that referenced this issue Jun 27, 2022
@MrCsabaToth MrCsabaToth removed upcoming Issues I soon will focus on priority Issues I'd want to prioritize labels Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant