diff --git a/.idea/misc.xml b/.idea/misc.xml index 0ad17cb..8978d23 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/app/src/main/java/com/pirouette/chibichat/MainActivity.kt b/app/src/main/java/com/pirouette/chibichat/MainActivity.kt index a0832f0..9658ded 100644 --- a/app/src/main/java/com/pirouette/chibichat/MainActivity.kt +++ b/app/src/main/java/com/pirouette/chibichat/MainActivity.kt @@ -36,7 +36,7 @@ class MainActivity : AppCompatActivity() { val stopTokenArray: ArrayList = ArrayList() val subStringArray: ArrayList = ArrayList() var msgData = ArrayList() - val savedStoryData = ArrayList() + var savedStoryData = ArrayList() var convArray = mutableListOf() @@ -52,6 +52,7 @@ class MainActivity : AppCompatActivity() { recyclerview.layoutManager = LinearLayoutManager(this) adapter = RvAdapter(msgData) recyclerview.adapter = adapter + savedStoryData = loadArrayFromFile(this) btnSend.setOnClickListener() { LoadData() @@ -278,7 +279,6 @@ class MainActivity : AppCompatActivity() { } } catch (e: Exception) { e.printStackTrace() - msgData.add(Message("System: " + e.toString(), 2)) ArrayList() } } diff --git a/build.gradle b/build.gradle index 9879da1..3b5eb03 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id 'com.android.application' version '7.4.1' apply false - id 'com.android.library' version '7.4.1' apply false + id 'com.android.application' version '8.0.0' apply false + id 'com.android.library' version '8.0.0' apply false id 'org.jetbrains.kotlin.android' version '1.8.21' apply false } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 3c5031e..a2e90d8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,4 +20,6 @@ kotlin.code.style=official # Enables namespacing of each library's R class so that its R class includes only the # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library -android.nonTransitiveRClass=true \ No newline at end of file +android.nonTransitiveRClass=true +android.defaults.buildfeatures.buildconfig=true +android.nonFinalResIds=false \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index d4df6dd..e3484e8 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Wed May 31 18:53:53 AST 2023 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists