jpush-compile-check.init.gradle 338 B

12345678910
  1. def isolatedDirectory = System.getenv('FMODE_JPUSH_TEST_BUILD_DIR')
  2. if (!isolatedDirectory) {
  3. throw new GradleException('FMODE_JPUSH_TEST_BUILD_DIR is required for isolated compilation')
  4. }
  5. gradle.beforeProject { target ->
  6. if (target.path == ':app') {
  7. target.layout.buildDirectory.set(new File(isolatedDirectory))
  8. }
  9. }