Gray Mackall
d04edd1d7f
Add kotlinOptions jvmTarget to templates ( #147326 )
...
Adds jvmTarget to gradle templates.
Fixes https://github.com/flutter/flutter/issues/147185 .
Interestingly, we already had this in many of our examples/tests, see search results here https://github.com/search?q=repo%3Aflutter%2Fflutter%20jvmTarget&type=code .
2024-05-07 17:32:10 +00:00
Bartek Pacia
c4b0322d57
Android Gradle file templates: make it easier to convert them to Kotlin DSL in the future ( #142146 )
...
This PR will make it easier for future Flutter-Android apps/plugins/modules etc. to migrate to Gradle Kotlin DSL.
This PR is similar to #140452 but concerns public Gradle templates instead of Flutter's internal Gradle code. It should be a no-op change.
**before**

**after**

2024-02-15 23:42:13 +00:00
Bartek Pacia
e1d6f7e822
migrate {min,target,compile}SdkVersion to {min,target,compile}Sdk ( #141537 )
...
Inspired by #137621 .
2024-01-16 18:39:12 +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
fzyzcjy
92969ba8ca
Remove @NonNull
to avoid warning ( #129472 )
...
Otherwise android studio complains:
> Do not use @NonNull in Kotlin; the nullability is already implied by the Kotlin type MethodCall not ending with ?

2023-06-29 21:34:31 +00:00
Camille Simon
2eef9361ad
[Android] Update plugin and module templates to use Flutter constant for compileSdkVersion
( #128073 )
...
Updates plugin and module templates to use Flutter constant for `compileSdkVersion`.
2023-06-06 21:14:00 +00:00
stuartmorgan
aa230140e7
Add namespace to Android plugin templates ( #126354 )
...
Adds the `namespace` property necessary for AGP 8 compatibility to the plugin templates, with the conditional logic to ensure that it doesn't break AGP <4.2, so that new plugins will be maximally compatible.
Part of https://github.com/flutter/flutter/issues/125181
2023-05-12 22:16:06 +00:00
stuartmorgan
ef49f5661b
Add Android unit tests to plugin template ( #120720 )
...
* Add Java tests
* Add Kotlin
* Add integration testing
* Add cerate tests
2023-02-15 17:25:23 +00:00
Gary Qian
350a7618eb
Remove extraneous org.jetbrains.kotlin:kotlin-stdlib-jdk7 gradle dep ( #104028 )
2022-05-18 17:52:13 -07:00
Emmanuel Garcia
b528310f58
Specify Kotlin version in modules and refactor ( #101315 )
2022-04-07 13:20:33 -07:00
Emmanuel Garcia
935d1478aa
Apply the Kotlin plugin in a java project ( #95225 )
2021-12-14 23:04:05 -08:00
Andrei Diaconu
924336fcee
Reland 3: Display Features ( #93240 )
2021-11-20 15:48:06 -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
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
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
Ayush Bherwani
6acd466a1f
remove unused import ( #77202 )
2021-03-08 14:44:02 -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
xster
df8e537f96
move compile/target sdk versions to 29 ( #62799 ) ( #63008 )
2020-08-11 14:51:02 -07:00
Jonah Williams
e8ad863a08
Revert "move compile/target sdk versions to 29 ( #62799 )" ( #62884 )
...
This reverts commit 5b3dc5251b
.
2020-08-04 11:20:16 -07:00
xster
5b3dc5251b
move compile/target sdk versions to 29 ( #62799 )
2020-08-04 08:26:08 -07:00
Ayush Bherwani
87ee003f0c
replaces deprecated api usage for android ( #62515 )
2020-07-29 21:36:04 -07:00
xster
8bd2e6585b
Remove v1 Android create templates ( #61203 )
2020-07-11 12:15:19 -07:00
Emmanuel Garcia
4049889d9e
Make --androidx flag a noop in flutter create ( #52340 )
2020-03-10 20:05:41 -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
Gonçalo Palma
73275f0815
Change reference to current class when setting the MethodChannel ( #48806 )
...
* Change reference to current class when setting the MethodChannel
* Added reference to MethodChannel and detach it from the engine
2020-01-26 13:34:04 +01:00
xster
cf95cd4394
Add v1 plugin register function into v2 plugin template ( #44166 )
2019-11-05 20:03:50 -08:00
Emmanuel Garcia
08c645b3b2
Test the Android embedding v2 ( #42708 )
...
* Test the Android embedding v2
* Update integration tests
* Split into shards
2019-10-16 21:26:10 -07:00
Emmanuel Garcia
5961bcc505
Generate projects using the new Android embedding ( #41666 )
...
* Generate projects using the new Android embedding
* Add comment about usesNewEmbedding:true
* Feedback
* Rework way to detect new embedding in new apps
2019-10-04 06:23:03 -07:00
Emmanuel Garcia
4d404da6df
Update Kotlin and Gradle version ( #40181 )
2019-09-13 19:37:07 -07:00
Josh Burton
d0e45a2369
Adds support for generating projects that use AndroidX support libraries ( #31028 )
2019-05-31 18:33:02 -07:00
Jason Simmons
7bfbc28505
Revert "Upgrade the Gradle script to Android plugin version 3.3.0 ( #26913 )" ( #27045 )
...
This reverts commit 30f33d6c7d
.
2019-01-24 14:29:08 -08:00
Jason Simmons
30f33d6c7d
Upgrade the Gradle script to Android plugin version 3.3.0 ( #26913 )
...
Fixes https://github.com/flutter/flutter/issues/26544
2019-01-24 12:21:11 -08:00
Jason Simmons
cf4c903144
Update compileSdkVersion in the Android app templates to Android P ( #26444 )
...
Fixes https://github.com/flutter/flutter/issues/25703
2019-01-14 16:16:12 -08:00
stevemessick
ff25edd3ad
Update idea template files ( #24311 )
...
* Update IntelliJ project template files
* Add ignored file
* Fix test
* Restore comma
2018-11-14 13:45:07 -08:00
Stanislav Baranov
323d1574c6
newly created apps / plugins should use latest gradle dependencies ( #22790 ) ( #23314 )
2018-10-19 19:07:06 -07:00
Yegor
82d6589590
Revert "newly created apps / plugins should use latest gradle dependencies ( #22790 )" ( #23263 )
...
This reverts commit 751c083f7d
.
Our buildbots need to be upgraded to a newer version of the Android SDK.
2018-10-18 14:17:47 -07:00
Sebastian Roth
751c083f7d
newly created apps / plugins should use latest gradle dependencies ( #22790 )
2018-10-18 12:56:18 -07:00
Mikkel Nygaard Ravn
8c39c35eb0
Upgradle Gradle dependencies to match Android Studio 3.1.2 ( #18080 )
2018-06-01 09:57:40 +02:00
Mikkel Nygaard Ravn
87a6e2b497
Revert "Update Gradle dependencies ( #18071 )" ( #18074 )
...
This reverts commit 59bb2dba73
.
2018-05-31 19:25:40 +02:00
Mikkel Nygaard Ravn
59bb2dba73
Update Gradle dependencies ( #18071 )
2018-05-31 17:16:47 +02:00
Mikkel Nygaard Ravn
d21b2799a0
Revert "Update Gradle dependencies to match Android Studio 3.1.2 ( #17974 )" ( #17979 )
...
This reverts commit 0f557e720e
.
2018-05-28 21:18:13 +02:00