diff --git a/app/build.gradle b/app/build.gradle index 2951f230..a3d49b6b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' } @@ -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" } diff --git a/app/src/main/java/com/example/httpsender/AppHolder.java b/app/src/main/java/com/example/httpsender/AppHolder.java index 3a6e84e7..706f587f 100644 --- a/app/src/main/java/com/example/httpsender/AppHolder.java +++ b/app/src/main/java/com/example/httpsender/AppHolder.java @@ -10,6 +10,7 @@ * Date: 2019/3/31 * Time: 09:11 */ +//@HiltAndroidApp public class AppHolder extends Application { private static AppHolder instance; diff --git a/build.gradle b/build.gradle index 82bde3ed..2f354469 100644 --- a/build.gradle +++ b/build.gradle @@ -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 }