Skip to content

Commit

Permalink
记录hilt相关配置
Browse files Browse the repository at this point in the history
  • Loading branch information
liujingxing committed Jan 21, 2024
1 parent a61dd69 commit a043001
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
// id 'dagger.hilt.android.plugin'
id 'com.google.devtools.ksp' version "$ksp_version"
// id 'org.jetbrains.kotlin.plugin.serialization' version '1.7.10'
}
Expand Down Expand Up @@ -119,4 +120,7 @@ dependencies {
testImplementation 'com.squareup:kotlinpoet:1.14.2'
testImplementation 'com.squareup:kotlinpoet-ksp:1.14.2'
testImplementation project(':rxhttp-compiler')

// implementation "com.google.dagger:hilt-android:2.48.1"
// ksp "com.google.dagger:hilt-android-compiler:2.48.1"
}
1 change: 1 addition & 0 deletions app/src/main/java/com/example/httpsender/AppHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Date: 2019/3/31
* Time: 09:11
*/
//@HiltAndroidApp
public class AppHolder extends Application {

private static AppHolder instance;
Expand Down
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ buildscript {

dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
// classpath 'com.google.dagger:hilt-android-gradle-plugin:2.48.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

//plugins {
// id("com.google.devtools.ksp") version "$ksp_version" apply false
//}

task clean(type: Delete) {
delete rootProject.buildDir
}

0 comments on commit a043001

Please sign in to comment.