mirror of
https://github.com/AdrianKuta/android-challange-adrian-kuta.git
synced 2025-07-01 21:17:59 +02:00
Initial commit
This commit is contained in:
15
model/data/api/build.gradle.kts
Normal file
15
model/data/api/build.gradle.kts
Normal file
@ -0,0 +1,15 @@
|
||||
plugins {
|
||||
alias(libs.plugins.flights.android.library)
|
||||
alias(libs.plugins.flights.android.library.hilt)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "dev.adriankuta.flights.model.data.api"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(projects.core.util)
|
||||
|
||||
implementation(libs.timber)
|
||||
implementation(libs.gson)
|
||||
}
|
12
model/data/room/build.gradle.kts
Normal file
12
model/data/room/build.gradle.kts
Normal file
@ -0,0 +1,12 @@
|
||||
plugins {
|
||||
alias(libs.plugins.flights.android.library)
|
||||
alias(libs.plugins.flights.android.library.hilt)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "dev.adriankuta.flights.model.data.room"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.timber)
|
||||
}
|
10
model/data/room/config/detekt/detekt.yml
Normal file
10
model/data/room/config/detekt/detekt.yml
Normal file
@ -0,0 +1,10 @@
|
||||
# Deviations from defaults
|
||||
formatting:
|
||||
TrailingCommaOnCallSite:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
useTrailingCommaOnCallSite: true
|
||||
TrailingCommaOnDeclarationSite:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
useTrailingCommaOnDeclarationSite: true
|
11
model/data/room/lint-baseline.xml
Normal file
11
model/data/room/lint-baseline.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="6" by="lint 8.10.1" type="baseline" client="gradle" dependencies="false" name="AGP (8.10.1)" variant="all" version="8.10.1">
|
||||
|
||||
<issue
|
||||
id="Aligned16KB"
|
||||
message="The native library `arm64-v8a/libmockkjvmtiagent.so` (from `io.mockk:mockk-agent-android:1.14.2`) is not 16 KB aligned">
|
||||
<location
|
||||
file="$GRADLE_USER_HOME/caches/8.11.1/transforms/9ee3fe20033b4dd897c7dfcf7c303d16/transformed/mockk-agent-android-1.14.2/jni/arm64-v8a/libmockkjvmtiagent.so"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
15
model/data/simple/build.gradle.kts
Normal file
15
model/data/simple/build.gradle.kts
Normal file
@ -0,0 +1,15 @@
|
||||
plugins {
|
||||
alias(libs.plugins.flights.android.library)
|
||||
alias(libs.plugins.flights.android.library.hilt)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "dev.adriankuta.flights.model.data.simple"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(projects.core.util)
|
||||
|
||||
implementation(libs.timber)
|
||||
implementation(libs.gson)
|
||||
}
|
10
model/data/simple/config/detekt/detekt.yml
Normal file
10
model/data/simple/config/detekt/detekt.yml
Normal file
@ -0,0 +1,10 @@
|
||||
# Deviations from defaults
|
||||
formatting:
|
||||
TrailingCommaOnCallSite:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
useTrailingCommaOnCallSite: true
|
||||
TrailingCommaOnDeclarationSite:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
useTrailingCommaOnDeclarationSite: true
|
11
model/data/simple/lint-baseline.xml
Normal file
11
model/data/simple/lint-baseline.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="6" by="lint 8.10.1" type="baseline" client="gradle" dependencies="false" name="AGP (8.10.1)" variant="all" version="8.10.1">
|
||||
|
||||
<issue
|
||||
id="Aligned16KB"
|
||||
message="The native library `arm64-v8a/libmockkjvmtiagent.so` (from `io.mockk:mockk-agent-android:1.14.2`) is not 16 KB aligned">
|
||||
<location
|
||||
file="$GRADLE_USER_HOME/caches/8.11.1/transforms/9ee3fe20033b4dd897c7dfcf7c303d16/transformed/mockk-agent-android-1.14.2/jni/arm64-v8a/libmockkjvmtiagent.so"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
59
model/data/simple/src/main/assets/characters.json
Normal file
59
model/data/simple/src/main/assets/characters.json
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"name": "Adam Małysz"
|
||||
}, {
|
||||
"name": "Harry Potter"
|
||||
}, {
|
||||
"name": "SpongeBob"
|
||||
}, {
|
||||
"name": "Miś uszatek"
|
||||
}, {
|
||||
"name": "Brzydkie kaczątko"
|
||||
}, {
|
||||
"name": "Papa Smerf"
|
||||
}, {
|
||||
"name": "Smerfetka"
|
||||
}, {
|
||||
"name": "Gargamel",
|
||||
"category": "Smerfy"
|
||||
}, {
|
||||
"name": "Ważniak",
|
||||
"category": "Smerfy"
|
||||
}, {
|
||||
"name": "Roszpunka"
|
||||
}, {
|
||||
"name": "Myszka Miki"
|
||||
}, {
|
||||
"name": "Król Lew"
|
||||
}, {
|
||||
"name": "Elsa",
|
||||
"category": "Kraina lodu"
|
||||
}, {
|
||||
"name": "Olaf",
|
||||
"category": "Kraina lodu"
|
||||
}, {
|
||||
"name": "Mała syrenka"
|
||||
}, {
|
||||
"name": "Kubuś Puchatek"
|
||||
}, {
|
||||
"name": "Prosiaczek",
|
||||
"category": "Kubuś Puchatek"
|
||||
}, {
|
||||
"name": "Kłapouchy",
|
||||
"category": "Kubuś Puchatek"
|
||||
}, {
|
||||
"name": "Królik",
|
||||
"category": "Kubuś Puchatek"
|
||||
}, {
|
||||
"name": "Maleństwo",
|
||||
"category": "Kubuś Puchatek"
|
||||
}, {
|
||||
"name": "Pan Sowa",
|
||||
"category": "Kubuś Puchatek"
|
||||
}, {
|
||||
"name": "Krzyś",
|
||||
"category": "Kubuś Puchatek"
|
||||
}
|
||||
]
|
||||
}
|
14
model/repository/build.gradle.kts
Normal file
14
model/repository/build.gradle.kts
Normal file
@ -0,0 +1,14 @@
|
||||
plugins {
|
||||
alias(libs.plugins.flights.android.library)
|
||||
alias(libs.plugins.flights.android.library.hilt)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "dev.adriankuta.flights.model.repository"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.timber)
|
||||
|
||||
testImplementation("io.mockk:mockk:1.13.8")
|
||||
}
|
10
model/repository/config/detekt/detekt.yml
Normal file
10
model/repository/config/detekt/detekt.yml
Normal file
@ -0,0 +1,10 @@
|
||||
# Deviations from defaults
|
||||
formatting:
|
||||
TrailingCommaOnCallSite:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
useTrailingCommaOnCallSite: true
|
||||
TrailingCommaOnDeclarationSite:
|
||||
active: true
|
||||
autoCorrect: true
|
||||
useTrailingCommaOnDeclarationSite: true
|
11
model/repository/lint-baseline.xml
Normal file
11
model/repository/lint-baseline.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="6" by="lint 8.10.1" type="baseline" client="gradle" dependencies="false" name="AGP (8.10.1)" variant="all" version="8.10.1">
|
||||
|
||||
<issue
|
||||
id="Aligned16KB"
|
||||
message="The native library `arm64-v8a/libmockkjvmtiagent.so` (from `io.mockk:mockk-agent-android:1.14.2`) is not 16 KB aligned">
|
||||
<location
|
||||
file="$GRADLE_USER_HOME/caches/8.11.1/transforms/9ee3fe20033b4dd897c7dfcf7c303d16/transformed/mockk-agent-android-1.14.2/jni/arm64-v8a/libmockkjvmtiagent.so"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
Reference in New Issue
Block a user