Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
TIQR-210: Created Core module
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-ko committed Nov 8, 2021
1 parent b6ea991 commit aca8603
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ dependencies {

implementation(project(":data"))

implementation(project(":core"))

implementation(libs.dagger.hilt.android)
implementation(libs.dagger.hilt.fragment)
kapt(libs.dagger.hilt.compiler)
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ buildscript {
classpath(libs.dagger.hilt.gradle)
classpath(libs.androidx.navigation.gradle)
classpath(libs.google.gms.gradle)
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21")
}
}

Expand Down
1 change: 1 addition & 0 deletions core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
57 changes: 57 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
id("kotlin-parcelize")
}

android {
compileSdk = libs.versions.android.sdk.compile.get().toInt()
buildToolsVersion = libs.versions.android.buildTools.get()

defaultConfig {
minSdk = libs.versions.android.sdk.min.get().toInt()
targetSdk = libs.versions.android.sdk.target.get().toInt()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}

buildTypes {
getByName("release") {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}

buildFeatures {
dataBinding = true
}

kapt {
correctErrorTypes = true
useBuildCache = true

javacOptions {
option("-Xmaxerrs", 1000)
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

}
kotlinOptions {
jvmTarget = "1.8"
}
}

dependencies {
implementation(libs.kotlin.stdlib)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.androidx.core)

implementation(project(":data"))
}
}
Empty file added core/consumer-rules.pro
Empty file.
21 changes: 21 additions & 0 deletions core/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
5 changes: 5 additions & 0 deletions core/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.tiqr.core">

</manifest>
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ rootProject.name = "tiqr client android"

include(":app")
include(":data")
include(":core")

// Enable Gradle's version catalog support
// https://docs.gradle.org/current/userguide/platforms.html
Expand Down

0 comments on commit aca8603

Please sign in to comment.