Skip to content

Commit 71df875

Browse files
committed
Bug fix
fix title, content misplace in editor move Cavern to a dependent module use custom error instead of volleyError
1 parent 8477432 commit 71df875

File tree

85 files changed

+530
-418
lines changed

Some content is hidden

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

85 files changed

+530
-418
lines changed

android-Cavern.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</configuration>
99
</facet>
1010
</component>
11-
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true">
11+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
1212
<exclude-output />
1313
<content url="file://$MODULE_DIR$">
1414
<excludeFolder url="file://$MODULE_DIR$/.gradle" />

app/app.iml

Lines changed: 5 additions & 12 deletions
Large diffs are not rendered by default.

app/build.gradle

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ android {
1313
applicationId "tech.stoneapp.secminhr.cavern"
1414
minSdkVersion 19
1515
targetSdkVersion 28
16-
versionCode 5
17-
versionName "3.0.1"
16+
versionCode 6
17+
versionName "3.1.1"
1818
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1919
vectorDrawables.useSupportLibrary = true
2020
multiDexEnabled true
@@ -66,10 +66,9 @@ dependencies {
6666
androidTestImplementation 'androidx.test:runner:1.1.1'
6767
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
6868
implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
69-
implementation 'org.jsoup:jsoup:1.11.3'
7069
implementation "android.arch.navigation:navigation-fragment-ktx:1.0.0"
7170
implementation "android.arch.navigation:navigation-ui-ktx:1.0.0"
72-
implementation 'androidx.core:core-ktx:1.0.1'
71+
implementation 'androidx.core:core-ktx:1.0.2'
7372
implementation "ru.noties.markwon:core:3.0.0"
7473
implementation "ru.noties.markwon:ext-latex:3.0.0"
7574
implementation "ru.noties.markwon:ext-strikethrough:3.0.0"
@@ -88,15 +87,11 @@ dependencies {
8887
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
8988
implementation 'com.google.firebase:firebase-firestore:20.0.0'
9089
implementation 'com.google.firebase:firebase-messaging:19.0.0'
91-
implementation 'com.android.volley:volley:1.1.1'
9290
implementation 'androidx.multidex:multidex:2.0.1'
9391
implementation 'com.squareup.picasso:picasso:2.71828'
94-
implementation "androidx.room:room-runtime:2.1.0-alpha06"
95-
kapt "androidx.room:room-compiler:2.1.0-alpha06"
9692
implementation "com.atlassian.commonmark:commonmark-ext-autolink:0.12.1"
9793
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
9894
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
9995
implementation 'androidx.recyclerview:recyclerview:1.0.0'
100-
implementation 'com.google.firebase:firebase-database:18.0.0'
101-
implementation 'com.google.firebase:firebase-functions:18.0.0'
96+
implementation project(":cavern")
10297
}

app/debug/app-debug.apk

229 Bytes
Binary file not shown.

app/debug/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":4,"versionName":"3.0.0","enabled":true,"outputFile":"app-debug.apk","fullName":"debug","baseName":"debug"},"path":"app-debug.apk","properties":{}}]
1+
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":5,"versionName":"3.0.1","enabled":true,"outputFile":"app-debug.apk","fullName":"debug","baseName":"debug"},"path":"app-debug.apk","properties":{}}]

app/release/Cavern.apk

21.4 KB
Binary file not shown.

app/release/app-release.apk

-741 Bytes
Binary file not shown.

app/release/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":4,"versionName":"3.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
1+
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":6,"versionName":"3.1.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]

app/src/main/java/tech/stoneapp/secminhr/cavern/CavernApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package tech.stoneapp.secminhr.cavern
22

33
import androidx.multidex.MultiDexApplication
4-
import tech.stoneapp.secminhr.cavern.cavernService.CavernCookieStore
4+
import stoneapp.secminhr.cavern.cavernService.CavernCookieStore
55
import java.net.CookieHandler
66
import java.net.CookieManager
77
import java.net.CookiePolicy

app/src/main/java/tech/stoneapp/secminhr/cavern/CavernMarkdownTextView.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import android.text.method.LinkMovementMethod
66
import android.util.AttributeSet
77
import android.widget.TextView
88
import androidx.annotation.RequiresApi
9-
import com.android.volley.VolleyError
109
import ru.noties.markwon.Markwon
1110
import ru.noties.markwon.ext.latex.JLatexMathPlugin
1211
import ru.noties.markwon.ext.strikethrough.StrikethroughPlugin
@@ -15,7 +14,8 @@ import ru.noties.markwon.ext.tasklist.TaskListPlugin
1514
import ru.noties.markwon.html.HtmlPlugin
1615
import ru.noties.markwon.image.ImagesPlugin
1716
import ru.noties.markwon.image.okhttp.OkHttpImagesPlugin
18-
import tech.stoneapp.secminhr.cavern.api.results.Author
17+
import stoneapp.secminhr.cavern.api.results.Author
18+
import stoneapp.secminhr.cavern.cavernError.CavernError
1919
import tech.stoneapp.secminhr.cavern.articlecontent.AtUsernameSpan.AtUsernamePlugin
2020
import tech.stoneapp.secminhr.cavern.articlecontent.AtUsernameSpan.AtUsernameVisitor
2121
import tech.stoneapp.secminhr.cavern.articlecontent.markwonUtils.CavernPlugin
@@ -40,14 +40,14 @@ class CavernMarkdownTextView: TextView {
4040
}
4141

4242
private var onUsernameClickedListeners: ((Author) -> Unit)? = null
43-
private var errorListeners: ((VolleyError) -> Unit)? = null
43+
private var errorListeners: ((CavernError) -> Unit)? = null
4444

4545
fun addOnUsernameClickedListener(listener: (Author) -> Unit): CavernMarkdownTextView {
4646
onUsernameClickedListeners = listener
4747
return this
4848
}
4949

50-
fun addErrorListener(listener: (VolleyError) -> Unit): CavernMarkdownTextView {
50+
fun addErrorListener(listener: (CavernError) -> Unit): CavernMarkdownTextView {
5151
errorListeners = listener
5252
return this
5353
}

0 commit comments

Comments
 (0)