Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel authored and belyy_me committed Apr 28, 2023
1 parent 71d451e commit f273f91
Show file tree
Hide file tree
Showing 59 changed files with 411 additions and 360 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand Down
29 changes: 19 additions & 10 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
import java.io.FileInputStream
import org.apache.commons.io.output.ByteArrayOutputStream
import org.jetbrains.kotlin.konan.properties.Properties
import java.io.FileInputStream

@Suppress("dsl_scope_violation")
plugins {
id("movies-android-application")
id("movies-android-application-compose")
alias(libs.plugins.application)
alias(libs.plugins.kotlin)
alias(libs.plugins.androidx.navigation.safeargs)
alias(libs.plugins.google.services)
alias(libs.plugins.firebase.appdistribution)
alias(libs.plugins.firebase.crashlytics)
alias(libs.plugins.palantir.git)
id("movies-android-hilt")
id("androidx.navigation.safeargs")
id("com.google.gms.google-services")
id("com.google.firebase.appdistribution")
id("com.google.firebase.crashlytics")
id("com.palantir.git-version")
}

val gitCommitsCount: Int by lazy {
Expand All @@ -27,11 +28,11 @@ val currentTime: Long by lazy {
System.currentTimeMillis()
}

val admobAppId: String by lazy {
val admobAppId: String? by lazy {
gradleLocalProperties(rootDir).getProperty("ADMOB_APP_ID")
}

val admobBannerId: String by lazy {
val admobBannerId: String? by lazy {
gradleLocalProperties(rootDir).getProperty("ADMOB_BANNER_ID")
}

Expand Down Expand Up @@ -129,13 +130,19 @@ android {
}

buildFeatures {
buildConfig = true
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
quiet = true
abortOnError = false
Expand Down Expand Up @@ -165,4 +172,6 @@ dependencies {
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.androidx.compose.ui.test.junit4)
androidTestImplementation(libs.androidx.benchmark.junit)

lintChecks(libs.lint.checks)
}
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@Suppress("dsl_scope_violation")
plugins {
alias(libs.plugins.application) apply false
alias(libs.plugins.library) apply false
Expand All @@ -12,10 +13,9 @@ plugins {
alias(libs.plugins.hilt) apply false
alias(libs.plugins.spotless)
alias(libs.plugins.detekt)

id("com.github.ben-manes.versions") version "0.46.0"
id("nl.littlerobots.version-catalog-update") version "0.8.0"
id("com.palantir.git-version") version "2.0.0"
alias(libs.plugins.palantir.git)
alias(libs.plugins.ben.manes.versions)
alias(libs.plugins.littlerobots.version.catalog.update)
}

/**
Expand Down
16 changes: 0 additions & 16 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ dependencies {

gradlePlugin {
plugins {
register("androidApplication") {
id = "movies-android-application"
implementationClass = "plugins.AndroidApplicationConventionPlugin"
}
register("androidLibrary") {
id = "movies-android-library"
implementationClass = "plugins.AndroidLibraryConventionPlugin"
}
register("androidComposeApplication") {
id = "movies-android-application-compose"
implementationClass = "plugins.AndroidComposeApplicationConventionPlugin"
}
register("androidComposeLibrary") {
id = "movies-android-library-compose"
implementationClass = "plugins.AndroidComposeLibraryConventionPlugin"
}
register("androidHilt") {
id = "movies-android-hilt"
implementationClass = "plugins.AndroidHiltConventionPlugin"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions buildSrc/src/main/kotlin/plugins/AndroidLibraryConventionPlugin.kt

This file was deleted.

9 changes: 8 additions & 1 deletion core/ads/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@Suppress("dsl_scope_violation")
plugins {
id("movies-android-library")
alias(libs.plugins.library)
alias(libs.plugins.kotlin)
}

android {
Expand All @@ -18,6 +20,11 @@ android {
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
quiet = true
abortOnError = false
Expand Down
9 changes: 8 additions & 1 deletion core/analytics/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@Suppress("dsl_scope_violation")
plugins {
id("movies-android-library")
alias(libs.plugins.library)
alias(libs.plugins.kotlin)
id("movies-android-hilt")
}

Expand All @@ -19,6 +21,11 @@ android {
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
quiet = true
abortOnError = false
Expand Down
13 changes: 11 additions & 2 deletions core/common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@Suppress("dsl_scope_violation")
plugins {
id("movies-android-library")
id("movies-android-library-compose")
alias(libs.plugins.library)
alias(libs.plugins.kotlin)
id("movies-android-hilt")
}

Expand Down Expand Up @@ -29,13 +30,19 @@ android {
}

buildFeatures {
buildConfig = true
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
quiet = true
abortOnError = false
Expand All @@ -60,4 +67,6 @@ dependencies {
implementation(libs.firebase.crashlytics)
implementation(libs.androidx.startup.runtime)
implementation(libs.androidx.browser)

lintChecks(libs.lint.checks)
}
12 changes: 9 additions & 3 deletions core/domain/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@Suppress("dsl_scope_violation")
plugins {
id("movies-android-library")
alias(libs.plugins.library)
alias(libs.plugins.kotlin)
alias(libs.plugins.kotlin.ksp)
id("movies-android-hilt")
id("com.google.devtools.ksp")
}

android {
Expand All @@ -28,6 +30,11 @@ android {
)
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
quiet = true
abortOnError = false
Expand All @@ -45,7 +52,6 @@ dependencies {
implementation(libs.bundles.datastore)
implementation(libs.bundles.room)
api(libs.androidx.hilt.work)
kapt(libs.androidx.hilt.compiler)
api(libs.androidx.work.runtime.ktx)
ksp(libs.androidx.room.compiler)
}
13 changes: 12 additions & 1 deletion core/entities/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties

@Suppress("dsl_scope_violation")
plugins {
id("movies-android-library")
alias(libs.plugins.library)
alias(libs.plugins.kotlin)
id("movies-android-hilt")
}

Expand All @@ -28,6 +30,15 @@ android {
}
}

buildFeatures {
buildConfig = true
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
quiet = true
abortOnError = false
Expand Down
9 changes: 8 additions & 1 deletion core/navigation/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@Suppress("dsl_scope_violation")
plugins {
id("movies-android-library")
alias(libs.plugins.library)
alias(libs.plugins.kotlin)
}

android {
Expand All @@ -18,6 +20,11 @@ android {
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
quiet = true
abortOnError = false
Expand Down
Loading

0 comments on commit f273f91

Please sign in to comment.