Bruno Leroux
dcdf72a670
[flutter_tools] - Add queries
section to Android manifest file ( #137207 )
...
## Description
This PR adds a new section to the Android manifest file.
This section is required for https://github.com/flutter/engine/pull/44579 (because it uses `PackageManager.queryIntentActivities` API ), see:
1. https://developer.android.com/training/package-visibility?hl=en
2. https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT
3. https://developer.android.com/reference/android/content/pm/PackageManager?hl=en#queryIntentActivities(android.content.Intent,%20android.content.pm.PackageManager.ResolveInfoFlags)
## Related Issue
Android manifest update for https://github.com/flutter/flutter/issues/107603
## Tests
This PR updates the integration tests and examples Android manifest files, this will help catch error or warning related to this change.
2023-11-16 08:57:20 +00:00
Camille Simon
c66bb0a18a
[Android] Support Android 34 (take 2) ( #137967 )
...
Re-lands https://github.com/flutter/flutter/pull/137191 .
The fix for the issue causing that PR to be reverted was tested in this PR but ultimately landed separately in https://github.com/flutter/flutter/pull/138093 .
2023-11-09 22:40:15 +00:00
auto-submit[bot]
c4ce9479bb
Reverts "[Android] Support Android 34" ( #137865 )
...
Reverts flutter/flutter#137191
Initiated by: camsim99
This change reverts the following previous change:
Original Description:
Adds support for Android 34 in the following ways:
- Bumps integration tests compile SDK versions 33 --> 34
- Bumps template compile SDK version 33 --> 34
- Also changes deprecated `compileSdkVersion` to `compileSdk`
Part of https://github.com/flutter/flutter/issues/134220
2023-11-03 20:14:19 +00:00
Camille Simon
675fec805a
[Android] Support Android 34 ( #137191 )
...
Adds support for Android 34 in the following ways:
- Bumps integration tests compile SDK versions 33 --> 34
- Bumps template compile SDK version 33 --> 34
- Also changes deprecated `compileSdkVersion` to `compileSdk`
Part of https://github.com/flutter/flutter/issues/134220
2023-11-02 22:18:11 +00:00
Qun Cheng
ebc67643bd
Revert "Fix Gradle lockfiles." ( #137198 )
...
Reverts flutter/flutter#137190
2023-10-24 17:47:45 -07:00
Polina Cherkasova
ccbe221b3d
Fix Gradle lockfiles. ( #137190 )
2023-10-24 23:19:52 +00:00
Zachary Anderson
4d5a1d91e1
Bump gradle heap size limit in *everywhere* ( #134665 )
...
I'm seeing these in the bot reports every week. Hopefully this is all of
them, and hopefully 4GB is enough.
2023-09-13 10:36:24 -07:00
Reid Baker
7a42ed7ef6
Update to valid build tools variant and update lockfiles ( #125825 )
...
https://github.com/flutter/flutter/issues/125331
2023-07-17 15:57:08 +00:00
gmackall
d1eb1f0a57
Upgrade integration tests to use AGP 7.3/Gradle 7.4 ( #129642 )
...
Upgrades tests under `dev/integration_tests` to use the latest values [in the templates](944d6c8fef/dev/tools/bin/generate_gradle_lockfiles.dart (L135)
). Most of this PR was auto-generated, by running `find dev/integration_tests/ -type d -name 'android' | dart dev/tools/bin/generate_gradle_lockfiles.dart` from the root of the flutter directory.
The pieces that were not are:
1. Upgrading the Gradle versions used in integration tests to be >=7.4, in places where it was currently lower.
2. Upgrading the mac, windows, and linux build_tests .ci.yaml configuration to use jdk 17 on all shards. It currently was using a mix of 17 and 11. This isn't desirable, because some of the tests require 17, and the distribution is [random across shards](cef9a8c54b/dev/bots/test.dart (L553)
) (so they were only passing because they were getting randomly placed on shards using jdk 17).
3. Adding a dependency on jdk 11 for the tests based on the `firebaselab/firebaselab` recipe. Previously they had no java dependency, and were therefore defaulting to java 1.8. The newer AGP versions necessitated an upgrade to 11 to run.
Note that it also ended up downgrading the AGP version in two places (in the [hybrid_android_views](https://github.com/flutter/flutter/pull/129642/files#diff-d7cfaa1c96d5c2383e7fc253ac8c9df062b544c24f7d80aa8a02290c01d17205L17 ) and [platform_interaction](https://github.com/flutter/flutter/pull/129642/files#diff-b2fba811efadd1cfb097bebd93be99fe4b6d6f17aefa863267290fc704290766L17 ) tests), because those had been manually edited to a newer version than the template.
Related to: https://github.com/flutter/flutter/issues/123636 , https://github.com/flutter/flutter/pull/123910
2023-06-30 19:34:20 +00:00
Reid Baker
587e9cf9b4
Update android manifests to set exported:true on main activities in integration test for api 33 support ( #127892 )
...
Update android manifests to set exported:true on main activities in integration test for api 33 support
#127689
#127884 is resolved by https://flutter-review.googlesource.com/c/recipes/+/45181 but this pr is required to reland.
2023-05-30 23:54:21 +00:00
Reid Baker
c5b31e7f1e
Revert "i125138 abstract method smoke agp update ( #125139 )" ( #126274 )
...
This reverts commit 64591356b9
.
#125331
https://ci.chromium.org/p/flutter/builders/staging/Linux%20firebase_abstract_method_smoke_test?cursor=id%3E8783275059678311409&limit=200
- [ x I signed the [CLA].
2023-05-15 18:00:07 +00:00
Reid Baker
64591356b9
i125138 abstract method smoke agp update ( #125139 )
...
- Update gradle and AGP version for abstract_method_smoke_test
#125138 part 1/N
To update successfully:
1. Update gradle to a version supported by jdk 17
2. Uncommented the lockfile lines in android/build.gradle
3. Then ran the AGP update assistant from AndroidStudio -> tools
4. From android ran `./gradlew dependencies --write-locks`
5. From android/app ran `./gradlew dependencies --write-locks`
6. Re enabled the lockfiles section of android/build.gradle
7. Ensured `flutter build apk` passed
2023-04-20 15:16:18 +00:00
Bartek Pacia
c40dd27681
Fix Gradle warning in a freshly flutter create
ed Android project ( #122290 )
...
Fix Gradle warning in a freshly `flutter create`ed Android project
2023-03-21 23:41:49 +00:00
Daniel Flores Medina
ba917d6159
Remove workaround because issue is closed ( #110854 )
2022-12-14 00:25:07 +00:00
Ahmed Ashour
0be4a8e9ae
Remove unneeded date comment in gradle-wrapper.properties
( #104061 )
2022-06-13 16:43:11 -07:00
Andrei Diaconu
924336fcee
Reland 3: Display Features ( #93240 )
2021-11-20 15:48:06 -08:00
Gary Qian
02b1146cff
Reland "Exit on deprecated v1 embedding when trying to run or build" ( #92901 ) ( #93566 )
2021-11-12 15:52:32 -08:00
Yegor
24b9346c9b
Revert "Reland "Exit on deprecated v1 embedding when trying to run or build ( #92901 )" ( #93386 )" ( #93518 )
...
This reverts commit eabb7cbc34
.
It broke multiple tests.
2021-11-11 16:45:40 -08:00
Gary Qian
eabb7cbc34
Reland "Exit on deprecated v1 embedding when trying to run or build ( #92901 )" ( #93386 )
2021-11-11 14:49:35 -08:00
Zachary Anderson
858a328712
Revert "Exit on deprecated v1 embedding when trying to run or build ( #92901 )" ( #93365 )
...
This reverts commit 6153bbef3e
.
2021-11-09 22:22:14 -08:00
Gary Qian
6153bbef3e
Exit on deprecated v1 embedding when trying to run or build ( #92901 )
2021-11-09 17:38:03 -08:00
Zachary Anderson
2468f315e0
Revert "Reland: display features ( #93117 )" ( #93204 )
...
This reverts commit 9038fac960
.
2021-11-06 22:46:46 -07:00
Andrei Diaconu
9038fac960
Reland: display features ( #93117 )
2021-11-05 15:54:25 -07:00
Zachary Anderson
7779ad3c60
Revert "Reland engine display features ( #89511 )" ( #93098 )
...
This reverts commit 058dfd49a0
.
2021-11-04 23:05:45 -07:00
Andrei Diaconu
058dfd49a0
Reland engine display features ( #89511 )
2021-11-04 18:37:55 -07:00
Emmanuel Garcia
c97a8622bf
Update lockfiles ( #92800 )
2021-11-01 08:58:13 -07:00
Emmanuel Garcia
4d79bb02c4
Bump Kotlin version in templates and projects ( #92052 )
2021-10-25 13:13:03 -07:00
Emmanuel Garcia
d7631275fe
Bump targetSdkVersion to 31 and organize static values ( #91719 )
2021-10-15 13:41:48 -07:00
Zachary Anderson
5188df0821
Revert gradle roll ( #91459 )
...
* Revert "Mark last failing test after gradle update as flaky. (#91423 )"
This reverts commit 46a52d03bd
.
* Revert "fix android template for Gradle 7 (#91411 )"
This reverts commit 51d06d537f
.
* Revert "Add explicit version for mac and windows openjdk. (#91408 )"
This reverts commit bf429f2771
.
* Revert "Update the openjdk version used by linux android tests. (#91405 )"
This reverts commit 2144ab8b45
.
* Revert "Migrate to Gradle 7.0.2 / AGP 7.0.1 (#90642 )"
This reverts commit b6459f9b63
.
2021-10-07 19:42:24 -07:00
Taha Tesser
b6459f9b63
Migrate to Gradle 7.0.2 / AGP 7.0.1 ( #90642 )
2021-10-06 17:01:13 -07:00
Littlegnal
1b73a35fba
Change project.buildDir in standalone subprojects property ( #91030 )
2021-10-01 17:18:05 -07:00
Emmanuel Garcia
0bccce6260
[gradle] Unlock all configurations if a local engine is used ( #83635 )
2021-06-01 13:19:03 -07:00
Emmanuel Garcia
fa5883b78e
Add Gradle lockfiles and tool to generate them ( #83067 )
2021-05-21 13:04:03 -07:00
Jonah Williams
d9638d25d7
migrate from jcenter to mavencentral ( #80908 )
2021-04-21 21:41:07 -07:00
Emmanuel Garcia
42f21fd780
Standardize how Java8 is set in gradle files ( #80600 )
2021-04-19 20:19:03 -07:00
Jenn Magder
2eca1f4033
Migrate dev projects from jcenter to mavenCentral ( #78812 )
2021-03-22 17:39:02 -07:00
Ahmed Saleh
740504d3e6
Refactor: use one subprojects property ( #77942 )
2021-03-12 16:28:03 -08:00
Emmanuel Garcia
8dd0de7f58
Relands: Migrate template to Gradle 6.7 and AGP 4.1.0 ( #71446 )
2020-12-01 19:01:09 -08:00
Amir Hardon
7df04fdbd3
Revert "Migrate template to Gradle 6.7 and AGP 4.1.0 ( #70808 )" ( #71096 )
...
This reverts commit 8e73bab94c
.
2020-11-23 12:27:36 -08:00
Emmanuel Garcia
8e73bab94c
Migrate template to Gradle 6.7 and AGP 4.1.0 ( #70808 )
2020-11-20 13:05:35 -08:00
Emmanuel Garcia
54dba4cd59
Don't import plugins that don't support android in settings.gradle ( #54407 )
2020-04-12 08:55:03 -07:00
Dan Field
3d812c1b96
Reduce gradle deps ( #50691 )
...
* drop unnecessary test deps
* bump to junit 4.13
2020-02-12 21:14:54 -08:00
Ian Hickson
449f4a6673
License update ( #45373 )
...
* Update project.pbxproj files to say Flutter rather than Chromium
Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
* Update the copyright notice checker to require a standard notice on all files
* Update copyrights on Dart files. (This was a mechanical commit.)
* Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
Some were already marked "The Flutter Authors", not clear why. Their
dates have been normalized. Some were missing the blank line after the
license. Some were randomly different in trivial ways for no apparent
reason (e.g. missing the trailing period).
* Clean up the copyrights in non-Dart files. (Manual edits.)
Also, make sure templates don't have copyrights.
* Fix some more ORGANIZATIONNAMEs
2019-11-27 15:04:02 -08:00
Emmanuel Garcia
0ccde797b0
Reland: Migrate examples to Android embedding v2 ( #44139 )
2019-11-04 17:25:25 -08:00
Emmanuel Garcia
694b2d89e0
Revert: Migrate examples to Android embedding v2 ( #43997 )
...
This reverts commit 99cd440384
.
2019-11-01 11:13:39 -07:00
Emmanuel Garcia
99cd440384
Revert "Revert "Reland: Migrate examples new embedding ( #43868 )" ( #43885 )" ( #43939 )
2019-10-31 16:17:31 -07:00
Dan Field
8e0799a657
Revert "Reland: Migrate examples new embedding ( #43868 )" ( #43885 )
...
This reverts commit 46edc80237
.
2019-10-30 23:33:38 -07:00
Emmanuel Garcia
46edc80237
Reland: Migrate examples new embedding ( #43868 )
2019-10-30 19:00:24 -07:00
Emmanuel Garcia
ea4da39fab
Revert: Migrate examples to the new embedding ( #43689 )
2019-10-28 19:11:09 -07:00
Emmanuel Garcia
20e015ffe6
Reland: Migrate examples new embedding ( #43643 )
...
* Fix device lab tests
* Migrate examples to the Android embedding v2 (#43221 )
2019-10-28 15:43:37 -07:00