Commit Graph

163 Commits

Author SHA1 Message Date
Lioness100
26b6c1bedd Fix typos (#121171)
* Fix typos

* lowercase animated & opacity

* Undo typo fix

---------

Co-authored-by: Michael Goderbauer <goderbauer@google.com>
2023-02-23 19:43:21 +00:00
stuartmorgan
e65dfba8e1 Add Linux unit tests to plugin template (#120814)
* Add Linux unit tests to plugin template

Adds an example native unit test to the plugin template for Linux,
matching the structure we use for our 1P plugin unit tests. Once these
have been added for all platforms+languages, they will be documented on
a new plugin development page to explain their use.

While ideally we would adjust the engine APIs first to allow for testing
the method call handler directly, it's unclear when we will have time
for that work, and for a complex plugin most of the testing wouldn't be
at that layer anyway, so having the structure in place with the
limitations documented is still a significant improvement over having
nothing in the template.

Part of https://github.com/flutter/flutter/issues/82458

* Add creation test

* Add integration tests

* Missing newlines

* test owner

* Typo
2023-02-15 19:13:11 +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
stuartmorgan
e3c51a2f2a Add Windows unit tests to plugin template (#118638)
* Add Windows unit tests to plugin template

Adds an example native unit test to the plugin template for Windows,
matching the format we use for our 1P plugin example app unit tests.
Once these have been added for all platforms+languages, they will be
documented on a new plugin development page to explain their use.

Since we don't appear to be running our current plugin e2e tests for
Windows, this adds a new configuration to run them. I haven't
`led`-tested this, so it may not work, but this will give a starting
point for getting them running.

Part of https://github.com/flutter/flutter/issues/82458

* Minor fix

* Add test owner

* Fix typo

* Fix test feature flag
2023-01-24 18:23:57 +00:00
stuartmorgan
2a502363e1 Add native unit tests to iOS and macOS templates (#117147)
* Improve Swift plugin implementation

* Add iOS tests

* Review feedback on structure

* Remove duplicate scheme file

* Add macOS

* Add iOS

* swift test tweaks

* unit tests

* Whitespace

* Add e2e tests
2022-12-21 19:10:22 +00:00
Jenn Magder
b084249184 Remove Swift plugin Objective-C files (#113585) 2022-10-18 18:41:08 +00:00
Gary Qian
350a7618eb Remove extraneous org.jetbrains.kotlin:kotlin-stdlib-jdk7 gradle dep (#104028) 2022-05-18 17:52:13 -07:00
Pierre-Louis
b9528c057a Remove trailing spaces in repo (#101191)
* Remove trailing spaces

* more

* empty commit
2022-04-15 14:06:30 +02:00
Emmanuel Garcia
b528310f58 Specify Kotlin version in modules and refactor (#101315) 2022-04-07 13:20:33 -07:00
Emmanuel Garcia
5c6918933e Migrate AGP and Gradle versions to 7.1.2/7.4 (#99723) 2022-03-30 20:30:09 -07:00
Jeff Ward
0aab22807c First pass at using platform abstraction for plugins (#92672) 2022-03-09 14:10:21 -08:00
stuartmorgan
7eb1035af6 Restructure Windows plugin template (#93511) 2022-02-03 20:30:18 -08:00
Collin Jackson
10fbbafe09 [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
Daco Harkes
0e2f51dfd0 FFI plugins (#96225) 2022-01-26 23:44:45 +01:00
stuartmorgan
27e79d55a4 Document template CMake files (#96534) 2022-01-14 14:55:14 -08:00
Zachary Anderson
65c6e88223 Revert "FFI plugins (#94101)" (#96122)
This reverts commit 5257f0290c.
2022-01-04 08:09:12 -08:00
Daco Harkes
5257f0290c FFI plugins (#94101)
* Building shared C source code as part of the native build for platforms Android, iOS, Linux desktop, MacOS desktop, and Windows desktop.
* Sample code doing a synchronous FFI call.
* Sample code doing a long running synchronous FFI call on a helper isolate.
* Use of `package:ffigen` to generate the bindings.
2022-01-04 10:14:27 +01: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
Jenn Magder
51588ab808 Set plugin template minimum Flutter SDK to 2.5 (#89695) 2021-09-09 20:42:03 -07:00
Emmanuel Garcia
50b0037803 Remove files that are unnecessary in a plugin (#89445) 2021-09-07 11:11:05 -07:00
Chris Bracken
1c36271b05 Reduce required Windows CMake version to 3.14 (#89390)
When we landed the CMake minimum requirement constraint for Visual
Studio 2019, we landed it with minimum version 3.15, since that's what
was shipping with the current version of VS 2019 at the time. Looking at
the release notes of earlier versions, it's clear that earlier versions
of Visual Studio 2019 shipped with version 3.14. See:
https://devblogs.microsoft.com/cppblog/visual-studio-cmake-support-clang-llvm-cmake-3-14-vcpkg-and-performance-improvements/

Looking at release notes for CMake 3.15, there are no features/fixes
introduced in that version that we are dependent on.
https://cmake.org/cmake/help/latest/release/3.15.html

Issue: https://github.com/flutter/flutter/issues/88589
2021-09-03 21:05:58 -07:00
Pierre-Louis
1298a9fd54 Adjust plugins and packages .gitignore to be most useful (#88991)
* Update .gitignore.tmpl

* Add pubspec.lock

* Exclude example/pubspec.lock

* Address feedback
2021-09-03 20:22:35 +02:00
Michael Goderbauer
7837d3eae1 Upgrade to stable flutter_lints 1.0.0 (#82365) 2021-05-12 17:14:03 -07:00
Michael Goderbauer
532a79c857 Integrate package:flutter_lints into templates (#81417) 2021-05-10 16:19:04 -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
Michael Thomsen
2cdd51900c Enable null safety by default in templates (#78619) 2021-03-30 10:16:05 +02:00
Ayush Bherwani
6acd466a1f remove unused import (#77202) 2021-03-08 14:44:02 -08:00
Jenn Magder
d099ae60f0 Add ephemeral iOS directory to put future generated files (#76830) 2021-02-25 18:16:03 -08:00
Sunbreak
c3f4f23c0f Remove deprecated author field in pubspec.yml templates (#76477)
Signed-off-by: Sunbreak <sunbreak.wang@gmail.com>
2021-02-22 08:25:28 -08:00
Yusuke Arakawa
527a261112 Fix typo ' to ` in template (#73773) 2021-01-14 15:34:03 -08:00
Ian Hickson
bb29c88ae7 Simplify the flutter_web_plugins plugin registration API. (#70337) (#70722)
In principle this is backwards compatible; I just merged all the classes into one and deprecated everything that became redundant as a result.
2020-12-03 15:35:41 -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
Chris Yang
0a08f8afff [flutter_tools] Display "no platforms" message based on results when creating plugins project (#70215) 2020-12-01 09:53:07 -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
stuartmorgan
be4cc764de Clean up Windows plugin template (#70403)
Removes a comment that is left over from early iterations of the
template.
2020-11-18 10:01:53 -08:00
Jonah Williams
6e84a14294 Revert "Simplify the flutter_web_plugins plugin registration API. (#70337)" (#70505)
This reverts commit 8749d95521.
2020-11-13 16:04:53 -08:00
Ian Hickson
8749d95521 Simplify the flutter_web_plugins plugin registration API. (#70337)
In principle this is backwards compatible; I just merged all the classes into one and deprecated everything that became redundant as a result.
2020-11-13 14:05:34 -08:00
stuartmorgan
3ff334d68d Add a missing include to the Linux plugin template (#68737)
The template uses strcmp (to check the received method), so should
include <cstring>
2020-10-22 13:50:39 -07:00
Michael Thomsen
c97ea71798 Adjust constraints (#68437) 2020-10-19 17:17:13 +02:00
stuartmorgan
b92bb62d4d Fix Windows and Linux plugin template filenames (#66997) 2020-09-30 16:07:03 -07:00
stuartmorgan
dd0c881275 [windows] Update plugin template (#64521)
The pointer-argument-based version of Success() is deprecated; this
updates the template to use the new reference-based version (which
allows for inline construction of the response value).

Part of https://github.com/flutter/flutter/issues/63975
2020-08-25 08:30:05 -07:00