<NME> build.gradle
<BEF> apply plugin: 'com.android.application'
apply from: configFile('android-common-config.gradle')
apply plugin: 'com.novoda.build-properties'

buildProperties {
  signing.using(configFile('release.signing')) | configFile('debug.signing')
}

def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()

android {
  defaultConfig {
    applicationId 'com.tasomaniac.openwith'
    versionCode versions.versionCode
    versionName versions.versionName
    buildConfigString 'GIT_SHA', gitSha

    resConfigs 'ar', 'de', 'en', 'es', 'fi', 'fr', 'hi', 'hr', 'in', 'it', 'iw', 'ja', 'ko', 'nl', 'pl', 'pt-rBR', 'pt-rPT', 'ru', 'sv', 'tr', 'uk', 'vi', 'zh-rCN', 'zh-rTW'
  }

  signingConfigs {
    debug.storeFile configFile('debug.keystore')
    release {
      def signing = buildProperties.signing
      storeFile configFile(signing['storeFile'].string)
      storePassword signing['storePassword'].string
      keyAlias signing['keyAlias'].string
      keyPassword signing['keyPassword'].string
    }
  }

  buildTypes {
    debug {
      ext.enableCrashlytics = false
      applicationIdSuffix '.debug'
      versionNameSuffix '-debug'
      signingConfig signingConfigs.debug
    }

    release {
      minifyEnabled true
      shrinkResources true
      proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
      signingConfig signingConfigs.release
    }
  }

  flavorDimensions 'store'
  productFlavors {
    floss {
      applicationIdSuffix '.floss'
      versionNameSuffix '-floss'
    }
    play {}
  }
}

if (isPlay) {
  apply from: configFile('configure-crashlytics.gradle')
  apply from: configFile('play-publish.gradle')
}

configurations {
  implementation.exclude module: 'support-v4'
  compile.exclude module: 'support-v4'
}

dependencies {
  implementation project(':base-prefs')
  implementation project(':browser-preferred')
  implementation project(':browser-resolver')
  implementation project(':data')
  implementation project(':homescreen')
  implementation project(':intro')
  implementation project(':preferred-apps')
  implementation project(':redirect')
  implementation project(':resolver')

  implementation 'androidx.preference:preference-ktx:1.1.1'
  implementation 'androidx.sharetarget:sharetarget:1.2.0-rc01'
    config = files(configFile('detekt.yml'))
  }

  ktlint {
    version '0.29.0'
    reporters = [ReporterType.CHECKSTYLE]

    includeVariants { it.name == 'flossDebug' }
  }

  lintOptions {
    textReport true

<MSG> disable ktlint for now

<DFF> @@ -81,12 +81,12 @@ staticAnalysis {
     config = files(configFile('detekt.yml'))
   }
 
-  ktlint {
-    version '0.29.0'
-    reporters = [ReporterType.CHECKSTYLE]
-
-    includeVariants { it.name == 'flossDebug' }
-  }
+//  ktlint {
+//    version '0.29.0'
+//    reporters = [ReporterType.CHECKSTYLE]
+//
+//    includeVariants { it.name == 'flossDebug' }
+//  }
 
   lintOptions {
     textReport true

{'commit': "diff --git a/app/build.gradle b/app/build.gradle\nindex 86ad579..2078b87 100644\n--- a/app/build.gradle\n+++ b/app/build.gradle\n@@ -81,12 +81,12 @@ staticAnalysis {\n     config = files(configFile('detekt.yml'))\n   }\n \n-  ktlint {\n-    version '0.29.0'\n-    reporters = [ReporterType.CHECKSTYLE]\n-\n-    includeVariants { it.name == 'flossDebug' }\n-  }\n+//  ktlint {\n+//    version '0.29.0'\n+//    reporters = [ReporterType.CHECKSTYLE]\n+//\n+//    includeVariants { it.name == 'flossDebug' }\n+//  }\n \n   lintOptions {\n     textReport true\n", 'commit_subject': 'disable ktlint for now', 'repo_name': 'tasomaniac/OpenLinkWith', 'committer': {'name': 'Said Tahsin Dane', 'email': '99544414db35b4ae46ba85f4c9680ffd68e0ee1f@gmail.com', 'time_sec': '1548797352', 'tz_offset': '60', 'date': {'seconds': '1548797352'}}, 'commit_tree': '0c1e1c5cdc2c3dd415e08baf4fccd2c8dd3a6134', 'commit_message': 'disable ktlint for now\n', 'language_name': 'Java', 'license': 'apache-2.0', 'hunks': "@@ -81,12 +81,12 @@ staticAnalysis {\n     config = files(configFile('detekt.yml'))\n   }\n \n-  ktlint {\n-    version '0.29.0'\n-    reporters = [ReporterType.CHECKSTYLE]\n-\n-    includeVariants { it.name == 'flossDebug' }\n-  }\n+//  ktlint {\n+//    version '0.29.0'\n+//    reporters = [ReporterType.CHECKSTYLE]\n+//\n+//    includeVariants { it.name == 'flossDebug' }\n+//  }\n \n   lintOptions {\n     textReport true\n", 'addition_count': 6, 'deletion_count': 6, 'src_file': 'a/app/build.gradle', 'tgt_file': 'b/app/build.gradle', 'file_extension': '.gradle', 'before_file': "apply plugin: 'com.android.application'\napply from: configFile('android-common-config.gradle')\napply plugin: 'com.novoda.build-properties'\n\nbuildProperties {\n  signing.using(configFile('release.signing')) | configFile('debug.signing')\n}\n\ndef gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()\n\nandroid {\n  defaultConfig {\n    applicationId 'com.tasomaniac.openwith'\n    versionCode versions.versionCode\n    versionName versions.versionName\n    buildConfigString 'GIT_SHA', gitSha\n\n    resConfigs 'ar', 'de', 'en', 'es', 'fi', 'fr', 'hi', 'hr', 'in', 'it', 'iw', 'ja', 'ko', 'nl', 'pl', 'pt-rBR', 'pt-rPT', 'ru', 'sv', 'tr', 'uk', 'vi', 'zh-rCN', 'zh-rTW'\n  }\n\n  signingConfigs {\n    debug.storeFile configFile('debug.keystore')\n    release {\n      def signing = buildProperties.signing\n      storeFile configFile(signing['storeFile'].string)\n      storePassword signing['storePassword'].string\n      keyAlias signing['keyAlias'].string\n      keyPassword signing['keyPassword'].string\n    }\n  }\n\n  buildTypes {\n    debug {\n      ext.enableCrashlytics = false\n      applicationIdSuffix '.debug'\n      versionNameSuffix '-debug'\n      signingConfig signingConfigs.debug\n    }\n\n    release {\n      minifyEnabled true\n      shrinkResources true\n      proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'\n      signingConfig signingConfigs.release\n    }\n  }\n\n  flavorDimensions 'store'\n  productFlavors {\n    floss {\n      applicationIdSuffix '.floss'\n      versionNameSuffix '-floss'\n    }\n    play {}\n  }\n}\n\nif (isPlay) {\n  apply from: configFile('configure-crashlytics.gradle')\n  apply from: configFile('play-publish.gradle')\n}\n\nconfigurations {\n  implementation.exclude module: 'support-v4'\n  compile.exclude module: 'support-v4'\n}\n\ndependencies {\n  implementation project(':base-prefs')\n  implementation project(':browser-preferred')\n  implementation project(':browser-resolver')\n  implementation project(':data')\n  implementation project(':homescreen')\n  implementation project(':intro')\n  implementation project(':preferred-apps')\n  implementation project(':redirect')\n  implementation project(':resolver')\n\n  implementation 'androidx.preference:preference-ktx:1.1.1'\n  implementation 'androidx.sharetarget:sharetarget:1.2.0-rc01'\n    config = files(configFile('detekt.yml'))\n  }\n\n  ktlint {\n    version '0.29.0'\n    reporters = [ReporterType.CHECKSTYLE]\n\n    includeVariants { it.name == 'flossDebug' }\n  }\n\n  lintOptions {\n    textReport true\n", 'message': 'disable ktlint for now\n', 'author_name': 'Said Tahsin Dane', 'lang': 'gradle'}