Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From ea8d02548cee1b5fbe00df916655de3c94d045a1 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Fri, 24 Jun 2016 08:19:07 -0400
Subject: [PATCH] Freedom
---
build.gradle | 93 +-----------------------------------------------------------
1 file changed, 1 insertion(+), 92 deletions(-)
diff --git a/build.gradle b/build.gradle
index 17245c3..55a2e13 100644
--- a/build.gradle
+++ b/build.gradle
@@ -15,14 +15,10 @@ buildscript {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://jitpack.io' }
- maven { url 'https://maven.fabric.io/public' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
- classpath 'io.fabric.tools:gradle:1.21.4'
- classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.0.8"
- classpath 'com.github.triplet.gradle:play-publisher:1.1.4'
classpath 'com.github.AnySoftKeyboard.AnySoftKeyboardTools:makedictionary:c00bc22ab2f7561633bcb2d6879ea0740ccad633'
classpath 'com.github.AnySoftKeyboard.AnySoftKeyboardTools:generatewordslist:c00bc22ab2f7561633bcb2d6879ea0740ccad633'
//classpath files('english_dictionary/generatewordslist-1.0-SNAPSHOT.jar')
@@ -30,12 +26,8 @@ buildscript {
}
}
-apply plugin: "net.ltgt.errorprone"
apply plugin: 'com.android.application'
-apply plugin: 'io.fabric'
-apply plugin: 'com.github.triplet.play'
apply plugin: 'pmd'
-apply plugin: 'jacoco'
allprojects {
repositories {
@@ -78,12 +70,10 @@ android {
targetSdkVersion sdkTargetVersion
//adding additional fields to the BuildConfig class.
- def String support_email_address = System.getenv("ANYSOFTKEYBOARD_CRASH_REPORT_EMAIL")
+ def String support_email_address = "root@localhost"
println 'crash report email is: ' + support_email_address
buildConfigField "String", "CRASH_REPORT_EMAIL_ADDRESS", '"' + support_email_address + '"'
-
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
compileOptions {
@@ -91,23 +81,8 @@ android {
targetCompatibility JavaVersion.VERSION_1_7
}
- signingConfigs {
- release {
- if (file("/tmp/anysoftkeyboard.keystore").exists()) {
- storeFile file("/tmp/anysoftkeyboard.keystore")
- storePassword System.getenv("ANYSOFTKEYBOARD_KEYSTORE_PASSWORD")
- keyAlias System.getenv("ANYSOFTKEYBOARD_KEYSTORE_ALIAS")
- keyPassword System.getenv("ANYSOFTKEYBOARD_KEYSTORE_KEY_PASSWORD")
- println "Using 'anysoftkeyboard.keystore' to release APK (with alias '${keyAlias}')."
- } else {
- println "Could not find 'anysoftkeyboard.keystore' file. Can not sign release APK."
- }
- }
- }
-
buildTypes {
release {
- signingConfig signingConfigs.release
zipAlignEnabled true
debuggable false
@@ -118,72 +93,9 @@ android {
buildConfigField("boolean", "TESTING_BUILD", "false")
}
-
- debug {
- zipAlignEnabled true
- debuggable true
- testCoverageEnabled true
-
- useLibrary 'org.apache.http.legacy'
-
- ext.enableCrashlytics = false
- buildConfigField("boolean", "TESTING_BUILD", "true")
- }
-
- canary {
- signingConfig signingConfigs.release
- zipAlignEnabled true
- debuggable false
-
- minifyEnabled true
- proguardFiles 'proguard-android-optimize.txt', 'proguard-rules.txt'
-
- ext.enableCrashlytics = true
- buildConfigField("boolean", "TESTING_BUILD", "true")
- }
- }
-}
-
-task jacocoTestReport(type: JacocoReport/*make sure you are running testDebug prior to calling this task*/) {
- group = "Reporting"
- description = "Generate Jacoco coverage reports after running tests."
- reports {
- xml.enabled = true
- html.enabled = true
- csv.enabled = true
- }
-
- classDirectories = fileTree(
- dir: "$buildDir/intermediates/classes/debug",
- excludes: ['**/R*.class',
- '**/*$InjectAdapter.class',
- '**/*$ModuleAdapter.class',
- '**/*$ViewInjector*.class'
- ])
- sourceDirectories = files(["$buildDir/src/main/java"])
- executionData = files("$buildDir/jacoco/testDebugUnitTest.exec")
- // Bit hacky but fixes https://code.google.com/p/android/issues/detail?id=69174.
- // We iterate through the compiled .class tree and rename $$ to $.
- doFirst {
- new File("$buildDir/intermediates/classes/").eachFileRecurse { file ->
- if (file.name.contains('$$')) {
- file.renameTo(file.path.replace('$$', '$'))
- }
- }
}
}
-configurations.errorprone {
- resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.8'
-}
-
-play {
- track = 'beta'
- serviceAccountEmail = System.getenv("PUBLISH_APK_SERVICE_ACCOUNT_EMAIL")
- pk12File = file('/tmp/apk_upload_key.p12')
- uploadImages = false
-}
-
task parseStateAssembly(type: com.anysoftkeyboard.tools.generatewordslist.GenerateWordsListTask) {
inputFile new File(project.getProjectDir(), "english_dictionary/NY_STATE_ASSEMBLY_TRANSCRIPT_20120621.txt")
outputWordsListFile new File(project.getProjectDir(), "english_dictionary/words_ny_state_assembly.xml")
@@ -256,7 +168,4 @@ dependencies {
testCompile 'junit:junit:4.12'
testCompile 'org.robolectric:robolectric:3.0'
testCompile 'org.mockito:mockito-core:1.9.5'
- canaryCompile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
- transitive = true;
- }
}
--
2.9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment