Skip to content

Commit bde3294

Browse files
authored
feat: use objectbox replace requery (#46)
1 parent 9cf34ba commit bde3294

File tree

452 files changed

+8625
-24702
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+8625
-24702
lines changed

app/build.gradle.kts

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ android {
9898
}
9999
}
100100

101-
kapt {
102-
keepJavacAnnotationProcessors = true
103-
}
101+
//kapt {
102+
// keepJavacAnnotationProcessors = true
103+
//}
104104

105105
apollo {
106106
packageName.set("com.fastaccess.github")
@@ -111,16 +111,16 @@ dependencies {
111111
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
112112

113113
// androidx
114-
implementation("androidx.appcompat:appcompat:1.4.1")
115-
implementation("androidx.fragment:fragment-ktx:1.4.1")
116-
implementation("com.google.android.material:material:1.5.0")
114+
implementation("androidx.appcompat:appcompat:1.4.2")
115+
implementation("androidx.fragment:fragment-ktx:1.5.0")
116+
implementation("com.google.android.material:material:1.6.1")
117117
implementation("androidx.cardview:cardview:1.0.0")
118118
implementation("androidx.recyclerview:recyclerview:1.2.1")
119119
implementation("androidx.legacy:legacy-preference-v14:1.0.0")
120120
implementation("androidx.browser:browser:1.4.0")
121121
implementation("androidx.palette:palette-ktx:1.0.0")
122122
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
123-
implementation("androidx.core:core-splashscreen:1.0.0-beta02")
123+
implementation("androidx.core:core-splashscreen:1.0.0-rc01")
124124

125125
// thirtyinch
126126
implementation("com.github.Grandcentrix.ThirtyInch:thirtyinch:v1.0.1")
@@ -172,8 +172,8 @@ dependencies {
172172
implementation("com.github.daniel-stoneuk:material-about-library:2.1.0")
173173

174174
// requery
175-
implementation("io.requery:requery:1.6.0")
176-
implementation("io.requery:requery-android:1.6.0")
175+
// implementation("io.requery:requery:1.6.0")
176+
// implementation("io.requery:requery-android:1.6.0")
177177
// kapt("io.requery:requery-processor:1.6.0")
178178

179179
// about lib
@@ -225,7 +225,22 @@ dependencies {
225225

226226
// androidx javax annotation
227227
implementation("org.glassfish:javax.annotation:10.0-b28")
228-
implementation("androidx.annotation:annotation:1.3.0")
228+
implementation("androidx.annotation:annotation:1.4.0")
229+
230+
231+
// shortbread
232+
implementation("com.github.matthiasrobbers:shortbread:1.4.0")
233+
// kapt("com.github.matthiasrobbers:shortbread-compiler:1.4.0")
234+
235+
// objectbox
236+
implementation("io.objectbox:objectbox-kotlin:3.1.2")
237+
implementation("io.objectbox:objectbox-rxjava:3.1.2")
238+
// debugImplementation("io.objectbox:objectbox-android-objectbrowser:3.1.2")
239+
implementation("io.objectbox:objectbox-android:3.1.2")
240+
241+
242+
// cache
243+
// implementation("com.github.ben-manes.caffeine:caffeine:3.0.6")
229244

230245
testImplementation("junit:junit:4.13.2")
231246
testImplementation("org.mockito:mockito-core:4.4.0")
@@ -237,9 +252,10 @@ dependencies {
237252
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
238253

239254
// 泄漏检测
240-
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.8.1")
255+
// debugImplementation("com.squareup.leakcanary:leakcanary-android:2.8.1")
241256
}
242257

258+
apply(plugin = "io.objectbox")
243259

244260
java {
245261
sourceCompatibility = JavaVersion.VERSION_1_8

0 commit comments

Comments
 (0)