Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
fix: 构建失败
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanCheng65 committed Feb 2, 2024
1 parent 625a9b9 commit 30514e6
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 34 deletions.
27 changes: 14 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ plugins {
autowire(libs.plugins.com.android.application)
autowire(libs.plugins.kotlin.android)
autowire(libs.plugins.kotlin.kapt)
autowire(libs.plugins.kotlin.ksp)
autowire(libs.plugins.kotlin.serialization)
autowire(libs.plugins.kotlin.parcelize)
autowire(libs.plugins.hilt.android)
autowire(libs.plugins.kotlin.ksp)
autowire(libs.plugins.com.squareup.wire)
}

Expand All @@ -24,6 +24,16 @@ if (!isSelfBuild && !sha.isNullOrEmpty()) {
applicationVersionName += "+${sha.substring(0, 7)}"
}

wire {
sourcePath {
srcDir("src/main/protos")
}

kotlin {
android = true
}
}

android {
buildToolsVersion = "34.0.0"
compileSdk = 34
Expand Down Expand Up @@ -119,16 +129,6 @@ android {
}
}

wire {
sourcePath {
srcDir("src/main/protos")
}

kotlin {
android = true
}
}

dependencies {
//Local Files
// implementation fileTree(include: ["*.jar"], dir: "libs")
Expand All @@ -153,9 +153,9 @@ dependencies {
api(wire.runtime)

implementation(hilt.android)
ksp(hilt.compiler)
kapt(hilt.compiler)
implementation(androidx.hilt.navigation.compose)
ksp(androidx.hilt.compiler)
kapt(androidx.hilt.compiler)

implementation(accompanist.drawablepainter)
implementation(accompanist.insets.ui)
Expand All @@ -164,6 +164,7 @@ dependencies {

implementation(sketch.core)
implementation(sketch.compose)
implementation(sketch.ext.compose)
implementation(sketch.gif)
implementation(sketch.okhttp)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import android.content.Context
import android.os.Build
import android.os.Handler
import android.os.Looper
import com.hjq.permissions.IPermissionInterceptor
import com.hjq.permissions.OnPermissionCallback
import com.hjq.permissions.OnPermissionInterceptor
import com.hjq.permissions.Permission
import com.hjq.permissions.XXPermissions
import com.huanchengfly.tieba.post.R
Expand Down Expand Up @@ -369,7 +369,7 @@ object PermissionUtils {
}

class ShowPermissionTipInterceptor(val permissions: List<String>, val description: String) :
IPermissionInterceptor {
OnPermissionInterceptor {
companion object {
@JvmStatic
val HANDLER: Handler = Handler(Looper.getMainLooper())
Expand Down
48 changes: 29 additions & 19 deletions gradle/sweet-dependency/sweet-dependency-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ repositories:
# JitPack
jit-pack:

versions:
accompanist: 0.34.0
hilt: 2.46.1
kotlin: 1.9.22
sketch: 3.3.0
wire: 4.9.3

# Configure plugins that need to be used
# For example:
# plugins:
Expand All @@ -50,24 +57,24 @@ plugins:
version: 8.2.2
org.jetbrains.kotlin.android:
alias: kotlin-android
version: 1.9.22
version-ref: kotlin
org.jetbrains.kotlin.kapt:
alias: kotlin-kapt
version-ref: kotlin-android
version-ref: kotlin
com.google.devtools.ksp:
alias: kotlin-ksp
version: 1.9.22-1.0.17
org.jetbrains.kotlin.plugin.serialization:
alias: kotlin-serialization
version-ref: kotlin-android
version-ref: kotlin
org.jetbrains.kotlin.plugin.parcelize:
alias: kotlin-parcelize
version-ref: kotlin-android
version-ref: kotlin
com.google.dagger.hilt.android:
alias: hilt-android
version: 2.46.1
version-ref: hilt
com.squareup.wire:
version: 4.9.5
version-ref: wire

# Configure libraries that need to be used
# For example:
Expand Down Expand Up @@ -120,7 +127,7 @@ libraries:
com.squareup.wire:
wire-runtime:
alias: wire-runtime
version: 4.9.3
version-ref: wire
net.swiftzer.semver:
semver:
alias: swiftzer-semver
Expand Down Expand Up @@ -170,10 +177,10 @@ libraries:
com.google.dagger:
hilt-android:
alias: hilt-android
version: 2.48
version-ref: hilt
hilt-compiler:
alias: hilt-compiler
version-ref: hilt-android
version-ref: hilt
androidx.hilt:
hilt-navigation-compose:
alias: androidx-hilt-navigation-compose
Expand All @@ -184,29 +191,32 @@ libraries:
com.google.accompanist:
accompanist-drawablepainter:
alias: accompanist-drawablepainter
version: 0.34.0
version-ref: accompanist
accompanist-insets-ui:
alias: accompanist-insets-ui
version-ref: accompanist-drawablepainter
version-ref: accompanist
accompanist-systemuicontroller:
alias: accompanist-systemuicontroller
version-ref: accompanist-drawablepainter
version-ref: accompanist
accompanist-placeholder-material:
alias: accompanist-placeholder-material
version-ref: accompanist-drawablepainter
version-ref: accompanist
io.github.panpf.sketch3:
sketch:
alias: sketch-core
version: 3.3.0
version-ref: sketch
sketch-compose:
alias: sketch-compose
version-ref: sketch-core
version-ref: sketch
sketch-extensions-compose:
alias: sketch-ext-compose
version-ref: sketch
sketch-gif:
alias: sketch-gif
version-ref: sketch-core
version-ref: sketch
sketch-okhttp:
alias: sketch-okhttp
version-ref: sketch-core
version-ref: sketch
io.github.panpf.zoomimage:
zoomimage-compose-sketch:
alias: zoomimage-compose-sketch
Expand Down Expand Up @@ -256,10 +266,10 @@ libraries:
org.jetbrains.kotlin:
kotlin-stdlib:
alias: kotlin-stdlib
version: 1.9.22
version-ref: kotlin
kotlin-reflect:
alias: kotlin-reflect
version-ref: kotlin-stdlib
version-ref: kotlin
androidx.lifecycle:
lifecycle-runtime-ktx:
alias: androidx-lifecycle-runtime
Expand Down

0 comments on commit 30514e6

Please sign in to comment.