-
Notifications
You must be signed in to change notification settings - Fork 232
chore: update flutter example #1066
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
Conversation
afca614
to
ea6e5ed
Compare
ea6e5ed
to
beba636
Compare
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.
Can you update the PR description? Some sections about custom events are not applicable to this PR.
Why was this needed? Was there a build issue or just upgrading in general? Is gradle and formatting the only changes? Did you use a new flutter version?
Had trouble running the old flutter example. I didn't any flutter version just gradle changes (7.3 -> 8.7). |
example/android/settings.gradle
Outdated
pluginManagement { | ||
def flutterSdkPath = { | ||
def properties = new Properties() | ||
file("../local.properties").withInputStream { properties.load(it) } |
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.
I couldn't build this, my local.properties
file is in the same directory as this file at example/android/local.properties
. I had to change this to file("local.properties")....
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.
Hmm The local.properties
file goes in the project's root level, in the same folder as the gradlew
, gradlew.bat
, settings.gradle
and other files, so unsure how this settings.gradle
file defined it as one level up.
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.
Ive updated the android folder with latest flutter template.
632cd68
to
7136572
Compare
7136572
to
1c0e17c
Compare
The error can look like this on older versions: Your project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version: - onesignal_flutter requires Android NDK 27.0.12077973 Fix this issue by using the highest Android NDK version (they are backward compatible). Add the following to /Users/nanli/Documents/GitHub/OneSignal-Flutter-SDK/example/android/app/build.gradle.kts: android { ndkVersion = "27.0.12077973" ... }
Description
One Line Summary
Details
Motivation
Scope
Manual testing
Run the example via
flutter run
and clicked the track event button to initiate that action.Affected code checklist
Checklist
Overview
Testing
Final pass
This change is