mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(deps): update Gradle to v7.6 to fix source set issues
This commit is contained in:
Binary file not shown.
@@ -33,6 +33,7 @@ import com.itsaky.androidide.preferences.internal.enableMaterialYou
|
||||
import com.itsaky.androidide.preferences.internal.uiMode
|
||||
import com.itsaky.androidide.tasks.executeAsync
|
||||
import com.itsaky.androidide.utils.ILogger
|
||||
import com.itsaky.androidide.utils.VMUtils
|
||||
import com.itsaky.toaster.Toaster.Type.ERROR
|
||||
import com.itsaky.toaster.toast
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
@@ -44,9 +45,11 @@ class IDEApplication : BaseApplication() {
|
||||
private var uncaughtExceptionHandler: UncaughtExceptionHandler? = null
|
||||
|
||||
init {
|
||||
System.loadLibrary("android-tree-sitter")
|
||||
System.loadLibrary("tree-sitter-java")
|
||||
System.loadLibrary("tree-sitter-xml")
|
||||
if (!VMUtils.isJvm()) {
|
||||
System.loadLibrary("android-tree-sitter")
|
||||
System.loadLibrary("tree-sitter-java")
|
||||
System.loadLibrary("tree-sitter-xml")
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCreate() {
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
package com.itsaky.androidide.utils
|
||||
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
import org.robolectric.RobolectricTestRunner
|
||||
import org.robolectric.annotation.Config
|
||||
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
@Config(manifest = Config.NONE)
|
||||
class ProjectWriterTest {
|
||||
|
||||
@Test
|
||||
fun `test activity layout name creation from java file name`() {
|
||||
val javaName = "MainActivity.java"
|
||||
val layoutName = ProjectWriter.createLayoutName(javaName)
|
||||
assertThat(layoutName).isEqualTo("activity_main.xml")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test fragment layout name creation from java file name`() {
|
||||
val javaName = "MainFragment.java"
|
||||
val layoutName = ProjectWriter.createLayoutName(javaName)
|
||||
assertThat(layoutName).isEqualTo("fragment_main.xml")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test layout name creation from non-suffixed java file name`() {
|
||||
val javaName = "Main.java"
|
||||
val layoutName = ProjectWriter.createLayoutName(javaName)
|
||||
assertThat(layoutName).isEqualTo("layout_main.xml")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `test layout name creation from lowercase non-suffixed java file name`() {
|
||||
val javaName = "main.java"
|
||||
val layoutName = ProjectWriter.createLayoutName(javaName)
|
||||
assertThat(layoutName).isEqualTo("layout_main.xml")
|
||||
}
|
||||
}
|
||||
@@ -92,5 +92,4 @@ tests-mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version =
|
||||
[plugins]
|
||||
android-application = { id = "com.android.application", version.ref = "agp" }
|
||||
android-library = { id = "com.android.library", version.ref = "agp" }
|
||||
kotlin = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||
oss-licenses = { id = "com.google.android.gms.oss-licenses-plugin", version = "0.10.6" }
|
||||
kotlin = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import org.robolectric.RobolectricTestRunner
|
||||
|
||||
/** @author Akash Yadav */
|
||||
@RunWith(RobolectricTestRunner::class)
|
||||
class AdapterIndexText {
|
||||
class AdapterIndexTest {
|
||||
|
||||
@Test
|
||||
fun `verify instances of adapters`() {
|
||||
Reference in New Issue
Block a user