Skip to content

Commit

Permalink
Update build.gradle.kts
Browse files Browse the repository at this point in the history
  • Loading branch information
ysy950803 committed Apr 2, 2024
1 parent e4e676c commit 65072bf
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 11 deletions.
13 changes: 11 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("kotlin-kapt")
id("com.google.devtools.ksp")
id("androidx.room")
}

android {
Expand All @@ -18,6 +19,10 @@ android {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

room {
schemaDirectory("$projectDir/schemas")
}

buildTypes {
release {
isMinifyEnabled = false
Expand All @@ -34,6 +39,10 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
compose = false
viewBinding = true
}
}

dependencies {
Expand All @@ -46,7 +55,7 @@ dependencies {
implementation("com.google.android.material:material:1.11.0")

val roomVersion = "2.6.1"
kapt("androidx.room:room-compiler:$roomVersion")
ksp("androidx.room:room-compiler:$roomVersion")
implementation("androidx.room:room-ktx:$roomVersion")

implementation(project(":wcdbroomx"))
Expand Down
12 changes: 9 additions & 3 deletions app/src/main/java/com/ysy/wcdbroomx/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
package com.ysy.wcdbroomx

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.ysy.wcdbroomx.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {

private lateinit var binding: ActivityMainBinding

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
binding = ActivityMainBinding.inflate(layoutInflater)
val view = binding.root
setContentView(view)
}
}
}
8 changes: 5 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "8.2.0" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
id("com.android.library") version "8.2.0" apply false
id("com.android.application") version "8.3.1" apply false
id("com.android.library") version "8.3.1" apply false
id("org.jetbrains.kotlin.android") version "1.9.23" apply false
id("com.google.devtools.ksp") version "1.9.23-1.0.19" apply false
id("androidx.room") version "2.6.1" apply false
}
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true

android.enableJetifier=true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Mar 27 14:35:17 CST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion wcdbroomx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ afterEvaluate {

groupId = "com.github.ysy950803"
artifactId = "WCDBRoomX"
version = "1.0.0"
version = "1.0.1"
}
}
}
Expand Down

0 comments on commit 65072bf

Please sign in to comment.