Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Update tasks and apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanWang committed Mar 2, 2020
1 parent 5417729 commit 98e7857
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
21 changes: 18 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,29 @@ configurations.all {
}
}

// Validates code and generates apk
// TODO order tasks; though technically it doesn't matter
task createGithubReleaseApk {
task lintGithubReleaseApk {
dependsOn 'spotlessCheck'
dependsOn 'lintRelease'
}

task testGithubReleaseApk {
dependsOn 'testReleaseUnitTest'
dependsOn 'connectedAndroidTest'
}

task assembleGithubReleaseApk {
dependsOn 'assembleRelease'
}

// Validates code and generates apk
// TODO order tasks; though technically it doesn't matter
task createGithubReleaseApk {
dependsOn 'lintGithubReleaseApk'
dependsOn 'testGithubReleaseApk'
dependsOn 'assembleGithubReleaseApk'

tasks.findByName('testGithubReleaseApk').mustRunAfter 'lintGithubReleaseApk'
tasks.findByName('assembleGithubReleaseApk').mustRunAfter 'testGithubReleaseApk'
}

apply plugin: 'com.bugsnag.android.gradle'
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ import com.pitchedapps.frost.utils.isIndirectImageUrl
import com.pitchedapps.frost.utils.logFrostEvent
import com.pitchedapps.frost.utils.sendFrostEmail
import com.pitchedapps.frost.utils.setFrostColors
import java.io.File
import java.io.FileNotFoundException
import java.io.IOException
import kotlin.math.abs
import kotlin.math.max
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.koin.android.ext.android.inject
import java.io.File
import java.io.FileNotFoundException
import java.io.IOException
import kotlin.math.abs
import kotlin.math.max

/**
* Created by Allan Wang on 2017-07-15.
Expand Down

0 comments on commit 98e7857

Please sign in to comment.