This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.project.myapplication | |
import org.junit.jupiter.api.Assertions.assertEquals | |
import org.spekframework.spek2.Spek | |
import org.spekframework.spek2.style.gherkin.Feature | |
object MathTest : Spek({ | |
Feature("math") { | |
val math = Math() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext.ReporterType = org.jlleitschuh.gradle.ktlint.reporter.ReporterType | |
apply plugin: "org.jlleitschuh.gradle.ktlint" | |
ktlint { | |
version = "0.34.2" | |
debug = true | |
verbose = true | |
android = false | |
outputToConsole = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | |
implementation 'androidx.appcompat:appcompat:1.1.0' | |
testImplementation 'junit:junit:4.12' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTypes { | |
debug { | |
buildConfigField 'String', 'API_BASE', '"http://www.mocky.io/v2/"' | |
minifyEnabled false | |
debuggable true | |
applicationIdSuffix ".debug" | |
versionNameSuffix '-dev' | |
signingConfig signingConfigs.debug | |
} | |
release { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
signingConfigs { | |
if (rootProject.file('signing-debug.properties').exists()) { | |
def signingDebug = new Properties() | |
signingDebug.load(new FileInputStream(rootProject.file('signing-debug.properties'))) | |
debug { | |
storeFile rootProject.file(signingDebug.storeFile) | |
storePassword signingDebug.storePassword | |
keyAlias signingDebug.keyAlias | |
keyPassword signingDebug.keyPassword | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildFeatures { | |
viewBinding = true | |
} | |
bundle { | |
language { enableSplit = true } | |
density { enableSplit = true } | |
abi { enableSplit = true } | |
} | |
lintOptions { | |
abortOnError false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compileSdkVersion 29 | |
defaultConfig { | |
applicationId "com.fachrudin.base" | |
minSdkVersion 21 | |
targetSdkVersion 29 | |
versionCode 1 | |
versionName "1.0.0" | |
multiDexEnabled true | |
resConfigs "en" | |
ndk { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Apps { | |
const val compileSdk = 29 | |
const val minSdk = 21 | |
const val targetSdk = 29 | |
const val versionCode = 1 | |
const val versionName = "1.0.0" | |
} | |
object Versions { | |
const val gradle = "3.5.0" |