-
Notifications
You must be signed in to change notification settings - Fork 0
Update library 20240920 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
068b96b
kts 化, version catalog 化, kotlin 2.0
caad1229 cc95cb1
delete build.gradel
caad1229 2931054
enable kapt, parcelize, serialization
caad1229 11679bc
add hilt
caad1229 28b7938
room plugin
caad1229 6723284
library を移植
caad1229 2b25be5
version catalog for room
caad1229 e5b853f
okhttp
caad1229 601d647
glide
caad1229 5910cb2
kotlin coroutine
caad1229 5e234da
rxjava3
caad1229 92e0d36
retrofit2
caad1229 dd494c6
gson, moshi, timber, serialization
caad1229 431bcf9
lifecycle
caad1229 471c03e
for test library
caad1229 082286d
compose bom
caad1229 983201e
実機テスト削除
caad1229 4cb7d06
整理
caad1229 a9302ca
すべて最新にする
caad1229 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,174 @@ | ||
| plugins { | ||
| alias(libs.plugins.android.application) | ||
| alias(libs.plugins.compose.compiler) | ||
| alias(libs.plugins.kotlin.android) | ||
| alias(libs.plugins.kotlin.kapt) | ||
| alias(libs.plugins.kotlin.parcelize) | ||
| alias(libs.plugins.kotlin.serialization) | ||
| alias(libs.plugins.google.dagger.hilt.android) | ||
| alias(libs.plugins.androidx.room) | ||
| } | ||
|
|
||
| android { | ||
| namespace = "us.mitene.practicalexam" | ||
| compileSdk = 34 | ||
|
|
||
| defaultConfig { | ||
| applicationId = "us.mitene.practicalexam" | ||
| minSdk = 26 | ||
| targetSdk = 34 | ||
| versionCode = 1 | ||
| versionName = "1.0" | ||
|
|
||
| testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
| vectorDrawables { | ||
| useSupportLibrary = true | ||
| } | ||
| } | ||
|
|
||
| buildTypes { | ||
| release { | ||
| isMinifyEnabled = false | ||
| proguardFiles( | ||
| getDefaultProguardFile("proguard-android-optimize.txt"), | ||
| "proguard-rules.pro" | ||
| ) | ||
| } | ||
| } | ||
| compileOptions { | ||
| sourceCompatibility = JavaVersion.VERSION_1_8 | ||
| targetCompatibility = JavaVersion.VERSION_1_8 | ||
| } | ||
| kotlinOptions { | ||
| jvmTarget = "1.8" | ||
| } | ||
| buildFeatures { | ||
| dataBinding = true | ||
| viewBinding = true | ||
| compose = true | ||
| } | ||
| packaging { | ||
| resources { | ||
| excludes += "/META-INF/{AL2.0,LGPL2.1}" | ||
| } | ||
| } | ||
| kapt { | ||
| correctErrorTypes = true | ||
| } | ||
| room { | ||
| schemaDirectory("$projectDir/schemas") | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation(libs.androidx.core.ktx) | ||
| implementation(libs.androidx.appcompat) | ||
| implementation(libs.androidx.activity.compose) | ||
| implementation(libs.androidx.activity.ktx) | ||
| implementation(libs.androidx.constraintlayout) | ||
| implementation(libs.androidx.fragment.ktx) | ||
| implementation(libs.androidx.recyclerview) | ||
| testImplementation(libs.junit) | ||
|
|
||
| // hilt | ||
| implementation(libs.google.dagger.hilt.android) | ||
| kapt(libs.google.dagger.hilt.compiler) | ||
| testImplementation(libs.google.dagger.hilt.android) | ||
| testImplementation(libs.google.dagger.hilt.android.testing) | ||
| kaptTest(libs.google.dagger.hilt.compiler) | ||
|
|
||
| // traditional theme | ||
| implementation(libs.google.material) | ||
|
|
||
| // jetpack compose BOM : https://developer.android.com/jetpack/compose/bom/bom-mapping | ||
| implementation(platform(libs.androidx.compose.bom)) | ||
| implementation(libs.androidx.compose.material) | ||
| implementation(libs.androidx.compose.material3) | ||
| implementation(libs.androidx.compose.animation.core) | ||
| implementation(libs.androidx.compose.ui) | ||
| implementation(libs.androidx.compose.ui.util) | ||
| implementation(libs.androidx.compose.ui.tooling.preview) | ||
| implementation(libs.androidx.compose.ui.tooling) | ||
| testImplementation(libs.androidx.compose.ui.test) | ||
| testImplementation(libs.androidx.compose.ui.test.junit4) | ||
| implementation(libs.androidx.compose.ui.test.manifest) | ||
|
|
||
| // for test | ||
| testImplementation(libs.robolectric) | ||
| testImplementation(libs.mockito.android) | ||
| testImplementation(libs.mockito.core) | ||
| testImplementation(libs.mockitokotlin2) | ||
| testImplementation(libs.turbine) | ||
| testImplementation(libs.mockk) | ||
|
|
||
| // androidx test | ||
| testImplementation(libs.androidx.test.core.ktx) | ||
| testImplementation(libs.androidx.test.ext.junit) | ||
| testImplementation(libs.androidx.test.ext.junit.ktx) | ||
| testImplementation(libs.androidx.test.runner) | ||
| testImplementation(libs.androidx.test.rules) | ||
| testImplementation(libs.androidx.test.espresso.core) | ||
| testImplementation(libs.androidx.test.espresso.intents) | ||
| testImplementation(libs.androidx.test.uiautomator) | ||
|
|
||
| // androidx.lifecycle | ||
| implementation(libs.androidx.lifecycle.livedata.ktx) | ||
| implementation(libs.androidx.lifecycle.viewmodel.ktx) | ||
| implementation(libs.androidx.lifecycle.viewmodel.savedstate) | ||
| implementation(libs.androidx.lifecycle.viewmodel.compose) | ||
| implementation(libs.androidx.lifecycle.service) | ||
| implementation(libs.androidx.lifecycle.process) | ||
| implementation(libs.androidx.lifecycle.runtime.compose) | ||
| implementation(libs.androidx.lifecycle.runtime.ktx) | ||
| implementation(libs.androidx.lifecycle.runtime.testing) | ||
| implementation(libs.androidx.lifecycle.common.java8) | ||
|
|
||
| // room | ||
| implementation(libs.androidx.room.runtime) | ||
| implementation(libs.androidx.room.ktx) | ||
| implementation(libs.androidx.room.rxjava2) | ||
| implementation(libs.androidx.room.rxjava3) | ||
| testImplementation(libs.androidx.room.testing) | ||
| kapt(libs.androidx.room.compiler) | ||
|
|
||
| // okhttp | ||
| implementation(libs.squareup.okhttp3.okhttp) | ||
| implementation(libs.squareup.okhttp3.logging.interceptor) | ||
| testImplementation(libs.squareup.okhttp3.mockwebserver) | ||
|
|
||
| // glide | ||
| implementation(libs.bumptech.glide) | ||
| implementation(libs.bumptech.glide.annotations) | ||
| implementation(libs.bumptech.glide.compose) | ||
| kapt(libs.bumptech.glide.compiler) | ||
|
|
||
| // coroutine | ||
| implementation(libs.kotlinx.coroutines.android) | ||
| implementation(libs.kotlinx.coroutines.core) | ||
| implementation(libs.kotlinx.coroutines.rx3) | ||
| testImplementation(libs.kotlinx.coroutines.test) | ||
|
|
||
| // rxjava3 | ||
| implementation(libs.reactivex.rxjava3.rxandroid) | ||
| implementation(libs.reactivex.rxjava3.rxjava) | ||
| implementation(libs.reactivex.rxjava3.rxkotlin) | ||
|
|
||
| // retrofit | ||
| implementation(libs.squareup.retrofit2.retrofit) | ||
| implementation(libs.squareup.retrofit2.adapter.rxjava3) | ||
| implementation(libs.squareup.retrofit2.converter.gson) | ||
| implementation(libs.squareup.retrofit2.converter.moshi) | ||
| implementation(libs.squareup.retrofit2.converter.kotlinx.serialization) | ||
|
|
||
| // gson | ||
| implementation(libs.google.code.gson) | ||
|
|
||
| // moshi | ||
| implementation(libs.squareup.moshi) | ||
|
|
||
| // serialization | ||
| implementation(libs.kotlinx.serialization.json) | ||
|
|
||
| // timber | ||
| implementation(libs.jakewharton.timber) | ||
| } | ||
24 changes: 0 additions & 24 deletions
24
app/src/androidTest/java/us/mitene/practicalexam/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
room gradle plugin
https://developer.android.com/jetpack/androidx/releases/room?hl=ja#gradle-plugin