Skip to content

Instantly share code, notes, and snippets.

@prokash-sarkar
Last active February 9, 2021 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prokash-sarkar/05f68a02c4625420eb1284aab4e794a9 to your computer and use it in GitHub Desktop.
Save prokash-sarkar/05f68a02c4625420eb1284aab4e794a9 to your computer and use it in GitHub Desktop.
private static boolean isAndroidModule(Project project) {
boolean isAndroidLibrary = project.plugins.hasPlugin('com.android.library')
boolean isAndroidApp = project.plugins.hasPlugin('com.android.application')
return isAndroidLibrary || isAndroidApp
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment