You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added this plugin to a project which has 2 modules, one app and another library type.
The plugin is only accessing app module, and not the library module, even though the plugin was added to library's build.gradle by specifying: apply plugin: 'com.chrisney.enigma' and enigma.enabled = true .
Project level build.gradle:
buildscript {
repositories {
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.google.gms:google-services:4.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'gradle.plugin.chrisney:enigma:1.0.0.8'
}
}
Found the way to handle this, but I would call it a workaround for now as a multi-module app will have multiple src folders.
To apply the plugin to another module instead of app specify enigma.srcJava = "/<module>/src/main/java/" in build.gradle next to enigma.enabled = true.
Will leave this issue open for now till the developer provides a better way to specify multiple modules within same project.
I have added this plugin to a project which has 2 modules, one app and another library type.
The plugin is only accessing app module, and not the library module, even though the plugin was added to library's build.gradle by specifying:
apply plugin: 'com.chrisney.enigma'
andenigma.enabled = true
.Project level build.gradle:
library's module level build.gradle:
app module's build.gradle was not changed.
When running assemble, I can see the app's java files getting encrypted but not the module's:
project's settings.gradle:
Can you check if this plugin can only support app module and not additional modules in same project?
The text was updated successfully, but these errors were encountered: