Recognize Instant Apps plugin

Tested with sample project and Studio 3.2 Canary 18:
https://github.com/googlesamples/android-instant-apps/tree/master/hello-kotlin

(cherry picked from commit 528d66d5840cc8f584270c516e85da1a632df8b8)
This commit is contained in:
Raluca Sauciuc
2018-06-09 19:43:57 -07:00
committed by Yan Zhulanow
parent 392460e426
commit e7c1f578d1
@@ -518,7 +518,7 @@ abstract class AbstractAndroidProjectHandler<V>(private val kotlinConfigurationT
project.afterEvaluate { project ->
if (project != null) {
val androidPluginIds = listOf("android", "com.android.application", "android-library", "com.android.library",
"com.android.test", "com.android.feature", "com.android.dynamic-feature")
"com.android.test", "com.android.feature", "com.android.dynamic-feature", "com.android.instantapp")
val plugin = androidPluginIds.asSequence()
.mapNotNull { project.plugins.findPlugin(it) as? BasePlugin }
.firstOrNull()