Camille Simon 0619de0107 Upgrade Engine Android SDK to 35 (flutter/engine#53574)
**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
2024-07-24 16:54:38 +00:00
..

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.