mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
**REVIEW BUT DO NOT MERGE:** Will merge after https://github.com/flutter/buildroot/pull/870 lands. 1: Updates engine to use Android 35. Part of https://github.com/flutter/flutter/issues/150215. Engine step of https://github.com/flutter/flutter/blob/master/docs/platforms/android/Upgrading-Engine's-Android-API-version.md. 2: Updates test runner AGP version to 8.5, engine Gradle version to 8.9 to accommodate update. 3: Fixes lint and suppresses deprecation warnings caused by the update. None of the deprecations are unknown by the team (they are handled in the code), but the tests emitted warnings. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
Native Activity
Executables packaged as native activities in an Android APK. These activities contain no Java code.
To create an APK of your existing exectuable target, replace exectuable with
native_activity_apk from the native_activity.gni template and give it an
apk_name.
Example
native_activity_apk("apk_unittests") {
apk_name = "toolkit_unittests"
testonly = true
sources = [ "toolkit_android_unittests.cc" ]
deps = [
":unittests_lib",
"//flutter/testing/android/native_activity:gtest_activity",
]
}
One of the translation units in must contain an implementation of
flutter::NativeActivityMain. The gtest_activity target contains an
implementation of an activity that run GoogleTests. That can be used off the
shelf.