Skip to content
Snippets Groups Projects
Commit c5f80c61 authored by John's avatar John
Browse files

Open URL in browser if no routing exists

parent b5e1981f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -94,13 +94,13 @@ android {
ext {
supportLibVersion = '27.1.1'
retrofitVersion = '2.4.0'
okHttpVersion = '3.10.0'
okHttpVersion = '3.11.0'
butterknifeVersion = '8.8.1'
parcelerVersion = '1.1.10'
parcelerVersion = '1.1.11'
reptarVersion = '2.5.1'
adapterLayout = '1.1.2'
materialDialogsVersion = '0.9.6.0'
leakCanaryVersion = '1.5.4'
leakCanaryVersion = '1.6.1'
addendumVersion = '2.0.0'
moshiVersion = '1.6.0'
autodisposeVersion = '0.8.0'
Loading
Loading
@@ -140,12 +140,12 @@ dependencies {
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
implementation "com.jakewharton:butterknife:$butterknifeVersion"
kapt "com.jakewharton:butterknife-compiler:$butterknifeVersion"
implementation 'com.jakewharton.timber:timber:4.7.0'
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'com.jakewharton.threetenabp:threetenabp:1.1.0'
 
implementation 'org.greenrobot:eventbus:3.1.1'
 
implementation 'io.reactivex.rxjava2:rxjava:2.1.14'
implementation 'io.reactivex.rxjava2:rxjava:2.1.16'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
 
implementation "com.uber.autodispose:autodispose-kotlin:$autodisposeVersion"
Loading
Loading
@@ -181,7 +181,7 @@ dependencies {
implementation "com.github.Commit451.Addendum:addendum-design:$addendumVersion"
implementation "com.github.Commit451.Addendum:addendum-parceler:$addendumVersion"
 
implementation 'com.github.chrisbanes:PhotoView:2.1.3'
implementation 'com.github.chrisbanes:PhotoView:2.1.4'
 
implementation 'me.zhanghai.android.materialprogressbar:library:1.4.2'
 
Loading
Loading
@@ -193,7 +193,7 @@ dependencies {
 
implementation 'com.github.alorma:diff-textview:1.3.0'
 
implementation 'com.wdullaer:materialdatetimepicker:3.6.0'
implementation 'com.wdullaer:materialdatetimepicker:3.6.3'
 
implementation 'com.github.novoda:simple-chrome-custom-tabs:0.1.6'
 
Loading
Loading
@@ -206,7 +206,7 @@ dependencies {
exclude group: 'org.json', module: 'json'
}
 
implementation 'com.github.jkwiecien:EasyImage:2.0.4'
implementation 'com.github.jkwiecien:EasyImage:2.1.0'
 
implementation 'com.atlassian.commonmark:commonmark:0.11.0'
 
Loading
Loading
Loading
Loading
@@ -58,7 +58,7 @@ class RoutingActivity : BaseActivity() {
 
override fun onRouteUnknown(url: String?) {
Timber.d("Route unknown. Opening original Uri if it exists")
if (originalUri != null) {
if (url != null) {
IntentUtil.openPage(this@RoutingActivity, url.toString(), App.get().currentAccount)
} else {
Toast.makeText(this@RoutingActivity, R.string.deeplink_navigate_error, Toast.LENGTH_SHORT)
Loading
Loading
apply plugin: 'com.github.ben-manes.versions'
buildscript {
ext.kotlinVersion = '1.2.50'
ext.kotlinVersion = '1.2.51'
repositories {
google()
jcenter()
Loading
Loading
@@ -8,7 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.19.0'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
}
}
 
Loading
Loading
Loading
Loading
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment