Add v1 plugin register function into v2 plugin template (#44166)

This commit is contained in:
xster
2019-11-05 20:03:50 -08:00
committed by GitHub
parent 7aebde1904
commit cf95cd4394
5 changed files with 55 additions and 6 deletions

View File

@@ -11,5 +11,12 @@ Future<void> main() async {
await task(combine(<TaskFunction>[
PluginTest('apk', <String>['-a', 'java']),
PluginTest('apk', <String>['-a', 'kotlin']),
// These create the plugins using the new v2 plugin templates but create the
// apps using the old v1 embedding app templates to make sure new plugins
// are by default backward compatible.
PluginTest('apk', <String>['-a', 'java'], pluginCreateEnvironment:
<String, String>{'ENABLE_ANDROID_EMBEDDING_V2': 'true'}),
PluginTest('apk', <String>['-a', 'kotlin'], pluginCreateEnvironment:
<String, String>{'ENABLE_ANDROID_EMBEDDING_V2': 'true'}),
]));
}