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

Support for Flutter 3, Android 12 and most recent iOS SDK #93

Merged
merged 26 commits into from
Sep 1, 2022

Conversation

TatsuUkraine
Copy link
Contributor

@TatsuUkraine TatsuUkraine commented Aug 25, 2022

Summary

  • migrate example project to support Flutter 3
  • fix issues in example project
  • add support to use target SDK 31 and higher
  • fix iOS plugin usage with other native libraries
  • fix iOS plugin for simulators

IMPORTANT Requires 4.x version publish to pub.dev since it has breaking changes related to Android configuration (see Migration guide)

Related issues

Fix #92, Fix #80, Fix #91

Changelog

Test Plan

Manually test the quick start example works with Flutter 3 on Android 12 and 13 and with iOS simulator

@CLAassistant
Copy link

CLAassistant commented Aug 25, 2022

CLA assistant check
All committers have signed the CLA.

@TatsuUkraine TatsuUkraine changed the title Flutter 3 Support for Flutter 3, Android 12 and most recent iOS SDK Aug 25, 2022
@TatsuUkraine
Copy link
Contributor Author

@hukid don't know who is the best person to review, merge, and release a new version to pub.dev

@TatsuUkraine
Copy link
Contributor Author

@JonathanNakhla-Square hi, maybe you know who is responsible for the flutter plugin and has the ability to publish new versions to pub.dev?

@nick-happsnow
Copy link

@TatsuUkraine Any additional updates on publishing the new version to pub.dev yet?

@TatsuUkraine
Copy link
Contributor Author

@nick-happsnow I don't think so, unless you want me to add anything to the docs?

@TatsuUkraine
Copy link
Contributor Author

Ah, I thought you asking me if I want to add anything before publishing)) no, I didn't receive any updates yet

@nick-happsnow
Copy link

@TatsuUkraine Ok thanks. Hopefully this can get on pub.dev soon!

@hukid
Copy link
Contributor

hukid commented Aug 30, 2022

@hukid don't know who is the best person to review, merge, and release a new version to pub.dev

@TatsuUkraine , thanks for making the fix. @CharmisG and I will review the change. Hopefully we can merge the change soon if no issue found.

README.md Show resolved Hide resolved
android/build.gradle Show resolved Hide resolved
android/build.gradle Outdated Show resolved Hide resolved
doc/get-started.md Outdated Show resolved Hide resolved
@@ -187,6 +138,9 @@ information on installing Reader SDK for iOS, see the
--app-id YOUR_SQUARE_READER_APP_ID \
--repo-password YOUR_SQUARE_READER_REPOSITORY_PASSWORD
```

Optionally you can use `--version` key to specify what version of iOS Reader SDK
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like this change!

example/android/gradle.properties Show resolved Hide resolved
'FRAMEWORK_SEARCH_PATHS[sdk=iphoneos*]' => '$(PROJECT_DIR)/../SquareReaderSDK.xcframework/ios-arm64',
'FRAMEWORK_SEARCH_PATHS[sdk=iphonesimulator*]' => '$(PROJECT_DIR)/../SquareReaderSDK.xcframework/ios-x86_64-simulator'
}
s.xcconfig = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appreciate this fix!

@TatsuUkraine
Copy link
Contributor Author

@hukid hi, I left comments on some items in your review. I didn't find updated SDK requirements after 1.6.2 was released so I left targetSDK equal to the value our project is currently running on. Do you still want to change targetSdk to 31? Since SDK 32 works for us so I thought that It would be good to keep max possible value there.

P.S I tried target SDK 33 but due to storage permission changes Reader SDK currently can't work with it(

@TatsuUkraine TatsuUkraine requested a review from hukid August 30, 2022 18:03
@TatsuUkraine
Copy link
Contributor Author

@hukid changed target SDK to 31 in the plugin, example project, and docs

@CharmisG
Copy link
Contributor

@TatsuUkraine
Are you able to run app in iOS ?

@TatsuUkraine
Copy link
Contributor Author

@CharmisG yes, it works on both android and ios

@nick-happsnow
Copy link

@hukid
When will this be merged?
Thanks!

@CharmisG CharmisG merged commit d618fdf into square:master Sep 1, 2022
@CharmisG
Copy link
Contributor

CharmisG commented Sep 1, 2022

@TatsuUkraine
PR merged
Thank you !!!

@TatsuUkraine
Copy link
Contributor Author

@hukid @CharmisG when new version of this package will be published?

@hukid
Copy link
Contributor

hukid commented Sep 1, 2022

@TatsuUkraine we have one more PR to merge, and we'll release.

@hukid
Copy link
Contributor

hukid commented Sep 1, 2022

@TatsuUkraine @nick-happsnow we just released the new version. Please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants