Skip to content
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

Type-safe project accessors #119

Merged
merged 5 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions api/anilist/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ plugins {
}

android {
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
Expand All @@ -26,7 +22,7 @@ kotlin {
}

dependencies {
implementation(project(":api:preferences"))
implementation(projects.api.preferences)

// Apollo Kotlin
implementation(libs.apollo.runtime)
Expand Down
4 changes: 0 additions & 4 deletions api/preferences/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ plugins {
}

android {
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
Expand Down
12 changes: 5 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ android {
applicationId = "com.imashnake.animite"
versionCode = 8
versionName = "0.0.1-alpha08"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
Expand Down Expand Up @@ -48,11 +46,11 @@ ksp {
}

dependencies {
implementation(project(":api:anilist"))
implementation(project(":core"))
implementation(project(":profile"))
implementation(project(":rslash"))
implementation(project(":material-color-utilities"))
implementation(projects.api.anilist)
implementation(projects.core)
implementation(projects.profile)
implementation(projects.rslash)
implementation(projects.materialColorUtilities)

// AndroidX
implementation(libs.androidx.activityCompose)
Expand Down
4 changes: 0 additions & 4 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ plugins {
}

android {
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
Expand Down
22 changes: 11 additions & 11 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ desugaring = "2.0.4"

# Android Gradle Plugin
# https://developer.android.com/studio/releases/gradle-plugin.
agp = "8.2.0"
agp = "8.2.1"

# AndroidX
# https://androidx.tech.
activity = "1.8.2"
core = "1.13.0-alpha02"
lifecycle = "2.7.0-rc02"
core = "1.13.0-alpha03"
imashnake0 marked this conversation as resolved.
Show resolved Hide resolved
lifecycle = "2.7.0"
extJunit = "1.2.0-alpha02"
espresso = "3.6.0-alpha02"

Expand All @@ -42,17 +42,17 @@ coil = "2.5.0"

# Compose Destinations
# https://github.com/raamcosta/compose-destinations/releases.
composeDestinations = "1.9.55"
composeDestinations = "1.9.59"

# Compose
# https://developer.android.com/jetpack/androidx/releases/compose.
composeAnimation = "1.6.0-beta03"
composeAnimation = "1.6.0-rc01"
composeCompiler = "1.5.7"
imashnake0 marked this conversation as resolved.
Show resolved Hide resolved
composeFoundation = "1.6.0-beta03"
composeMaterial = "1.6.0-beta03"
composeMaterial3 = "1.2.0-beta01"
composeRuntime = "1.6.0-beta03"
composeUi = "1.6.0-beta03"
composeFoundation = "1.6.0-rc01"
composeMaterial = "1.6.0-rc01"
composeMaterial3 = "1.2.0-beta02"
composeRuntime = "1.6.0-rc01"
composeUi = "1.6.0-rc01"

# Dagger
# https://github.com/google/dagger/releases.
Expand All @@ -69,7 +69,7 @@ coroutines = "1.8.0-RC2"

# KSP
# https://github.com/google/ksp/releases.
ksp = "1.9.21-1.0.16"
ksp = "1.9.22-1.0.16"
imashnake0 marked this conversation as resolved.
Show resolved Hide resolved

# Test
# https://github.com/junit-team/junit4/releases.
Expand Down
10 changes: 3 additions & 7 deletions profile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ plugins {
}

android {
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
Expand Down Expand Up @@ -37,9 +33,9 @@ ksp {
}

dependencies {
implementation(project(":core"))
implementation(project(":api:anilist"))
implementation(project(":api:preferences"))
implementation(projects.core)
implementation(projects.api.anilist)
implementation(projects.api.preferences)

// AndroidX
implementation(libs.androidx.activityCompose)
Expand Down
6 changes: 1 addition & 5 deletions rslash/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ plugins {
}

android {
defaultConfig {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
isMinifyEnabled = false
Expand Down Expand Up @@ -37,7 +33,7 @@ ksp {
}

dependencies {
implementation(project(":core"))
implementation(projects.core)

// AndroidX
implementation(libs.androidx.activityCompose)
Expand Down
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@file:Suppress("UnstableApiUsage")

import com.android.build.api.dsl.SettingsExtension
import org.gradle.api.internal.FeaturePreviews

pluginManagement {
repositories {
Expand Down Expand Up @@ -37,3 +39,5 @@ configure<SettingsExtension> {
compileSdk = 34
minSdk = 29
}

enableFeaturePreview(FeaturePreviews.Feature.TYPESAFE_PROJECT_ACCESSORS.name)