forked from GitHub-Mirror/riotX-android
Merge pull request #189 from vector-im/feature/third_party_notice
Feature/third party notice
This commit is contained in:
commit
ad601c7d5a
@ -17,6 +17,7 @@ buildscript {
|
||||
classpath "com.airbnb.okreplay:gradle-plugin:1.4.0"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2'
|
||||
classpath 'com.google.android.gms:oss-licenses-plugin:0.9.5'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
@ -1,4 +1,5 @@
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
@ -162,6 +163,9 @@ dependencies {
|
||||
implementation "com.squareup.moshi:moshi-adapters:$moshi_version"
|
||||
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version"
|
||||
|
||||
// OSS License
|
||||
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
|
||||
|
||||
// Log
|
||||
implementation 'com.jakewharton.timber:timber:4.7.1'
|
||||
|
||||
@ -172,6 +176,7 @@ dependencies {
|
||||
implementation 'io.reactivex.rxjava2:rxkotlin:2.3.0'
|
||||
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
|
||||
implementation 'com.jakewharton.rxrelay2:rxrelay:2.1.0'
|
||||
// TODO RxBindings3 exists
|
||||
implementation 'com.jakewharton.rxbinding2:rxbinding:2.2.0'
|
||||
|
||||
implementation("com.airbnb.android:epoxy:$epoxy_version")
|
||||
@ -181,7 +186,7 @@ dependencies {
|
||||
// Work
|
||||
implementation "android.arch.work:work-runtime-ktx:1.0.0"
|
||||
|
||||
// FP
|
||||
// Functional Programming
|
||||
implementation "io.arrow-kt:arrow-core:$arrow_version"
|
||||
|
||||
// Pref
|
||||
|
@ -21,11 +21,12 @@
|
||||
div {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<p>Riot Android</p>
|
||||
<p>RiotX Android</p>
|
||||
<p>Third Party Licenses</p>
|
||||
</div>
|
||||
|
||||
@ -173,6 +174,62 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</pre>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<b>Tapadoo/Alerter</b>
|
||||
<br/>
|
||||
Tapadoo/Alerter is licensed under the MIT License
|
||||
Copyright 2017 Tapadoo, Dublin.
|
||||
</li>
|
||||
</ul>
|
||||
<pre>
|
||||
|
||||
Copyright 2017 Tapadoo, Dublin.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
</pre>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<b>com.github.piasy:BigImageViewer</b>
|
||||
<br/>
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 Piasy
|
||||
</li>
|
||||
</ul>
|
||||
<pre>
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
</pre>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<b>textdrawable</b>
|
||||
<br/>
|
||||
textdrawable is licensed under the MIT License
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3>
|
||||
Apache License
|
||||
@ -192,78 +249,25 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Copyright (c) 2019 The Matrix.org Foundation C.I.C
|
||||
</li>
|
||||
<li>
|
||||
<b>Jitsi Meet (<a
|
||||
href="https://github.com/jitsi/jitsi-meet">jitsi-meet</a>)</b>
|
||||
<b>rxkotlin</b>
|
||||
<br/>
|
||||
Copyright @ 2018-present 8x8, Inc.
|
||||
<br/>
|
||||
Copyright @ 2017-2018 Atlassian Pty Ltd
|
||||
Copyright io.reactivex.
|
||||
</li>
|
||||
<li>
|
||||
<b>Retrofit</b>
|
||||
<b>rxandroid</b>
|
||||
<br/>
|
||||
Copyright 2013 Square, Inc.
|
||||
Copyright io.reactivex.
|
||||
</li>
|
||||
<li>
|
||||
<b>okhttp</b>
|
||||
<b>rxrelay</b>
|
||||
<br/>
|
||||
Copyright 2016 Square, Inc.
|
||||
Copyright 2014 Netflix, Inc.
|
||||
Copyright 2015 Jake Wharton
|
||||
</li>
|
||||
<li>
|
||||
<b>ShortcutBadger</b>
|
||||
<b>rxbinding</b>
|
||||
<br/>
|
||||
Copyright 2014 Leo Lin
|
||||
</li>
|
||||
<li>
|
||||
<b>html-textview</b>
|
||||
<br/>
|
||||
Copyright (C) 2013-2015 Dominik Schürmann
|
||||
<br/>
|
||||
Copyright (C) 2013-2015 Juha Kuitunen
|
||||
<br/>
|
||||
Copyright (C) 2013 Mohammed Lakkadshaw
|
||||
<br/>
|
||||
Copyright (C) 2007 The Android Open Source Project
|
||||
</li>
|
||||
<li>
|
||||
<b>anddown</b>
|
||||
<br/>
|
||||
Copyright (c) 2016 CommonsWare, LLC
|
||||
</li>
|
||||
<li>
|
||||
<b>zip4j</b>
|
||||
<br/>
|
||||
Copyright 2010 Srikanth Reddy Lingala
|
||||
</li>
|
||||
<li>
|
||||
<b>SwipeBack</b>
|
||||
<br/>
|
||||
Copyright 2015 Eric Liu
|
||||
</li>
|
||||
<li>
|
||||
<b>Libphonenumber</b>
|
||||
<br/>
|
||||
Copyright 2017 Google
|
||||
</li>
|
||||
<li>
|
||||
<b>Butter Knife</b>
|
||||
<br/>
|
||||
Copyright 2013 Jake Wharton
|
||||
</li>
|
||||
<li>
|
||||
<b>FloatingActionButton</b>
|
||||
<br/>
|
||||
Copyright (C) 2014 Jerzy Chalupski
|
||||
</li>
|
||||
<li>
|
||||
<b>Spanny</b>
|
||||
<br/>
|
||||
Copyright 2015 Pavlovsky Ivan
|
||||
</li>
|
||||
<li>
|
||||
<b>PhotoView</b>
|
||||
<br/>
|
||||
Copyright 2018 Chris Banes
|
||||
Copyright (C) 2015 Jake Wharton
|
||||
</li>
|
||||
<li>
|
||||
<b>Epoxy</b>
|
||||
@ -271,9 +275,69 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Copyright 2016 Airbnb, Inc.
|
||||
</li>
|
||||
<li>
|
||||
<b>Anko</b>
|
||||
<b>mvrx</b>
|
||||
<br/>
|
||||
Copyright 2016 JetBrains s.r.o.
|
||||
Copyright 2018 Airbnb, Inc.
|
||||
</li>
|
||||
<li>
|
||||
<b>arrow-core</b>
|
||||
<br/>
|
||||
Copyright (C) 2017 The Λrrow Authors
|
||||
</li>
|
||||
<li>
|
||||
<b>material</b>
|
||||
<br/>
|
||||
Copyright (C) 2016 Google
|
||||
</li>
|
||||
<li>
|
||||
<b>span</b>
|
||||
<br/>
|
||||
Copyright 2018 Jun Gu
|
||||
</li>
|
||||
<li>
|
||||
<b>ru.noties.markwon</b>
|
||||
<br/>
|
||||
Copyright 2017 Dimitry Ivanov (mail@dimitryivanov.ru)
|
||||
</li>
|
||||
<li>
|
||||
<b>better-link-movement-method</b>
|
||||
<br/>
|
||||
Copyright 2018 Saket Narayan.
|
||||
</li>
|
||||
<li>
|
||||
<b>zxcvbn</b>
|
||||
<br/>
|
||||
Copyright (c) 2012-2016 Dan Wheeler and Dropbox, Inc.
|
||||
</li>
|
||||
<li>
|
||||
<b>com.otaliastudios:autocomplete</b>
|
||||
<br/>
|
||||
Copyright (c) 2017
|
||||
</li>
|
||||
<li>
|
||||
<b>Butterknife</b>
|
||||
<br/>
|
||||
Copyright 2013 Jake Wharton
|
||||
</li>
|
||||
<li>
|
||||
<b>seismic</b>
|
||||
<br/>
|
||||
Copyright 2012 Square, Inc.
|
||||
</li>
|
||||
<li>
|
||||
<b>videocache</b>
|
||||
<br/>
|
||||
Copyright 2014-2017 Alexey Danilov
|
||||
</li>
|
||||
<li>
|
||||
<b>ShortcutBadger</b>
|
||||
<br/>
|
||||
Copyright 2014 Leo Lin
|
||||
</li>
|
||||
<li>
|
||||
<b>FilePicker</b>
|
||||
<br/>
|
||||
Copyright (c) 2018, Jaisel Rahman
|
||||
</li>
|
||||
</ul>
|
||||
<pre>
|
||||
@ -453,25 +517,5 @@ Apache License
|
||||
of your accepting any such warranty or additional liability.
|
||||
</pre>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<b>Tapadoo/Alerter</b>
|
||||
<br/>
|
||||
Tapadoo/Alerter is licensed under the MIT License
|
||||
Copyright 2017 Tapadoo, Dublin.
|
||||
</li>
|
||||
</ul>
|
||||
<pre>
|
||||
|
||||
Copyright 2017 Tapadoo, Dublin.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -20,6 +20,7 @@ package im.vector.riotredesign.core.utils
|
||||
|
||||
import android.content.Context
|
||||
import android.webkit.WebView
|
||||
import android.webkit.WebViewClient
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
|
||||
/**
|
||||
@ -29,9 +30,13 @@ import androidx.appcompat.app.AlertDialog
|
||||
*/
|
||||
fun Context.displayInWebView(url: String) {
|
||||
val wv = WebView(this)
|
||||
|
||||
// Set a WebViewClient to ensure redirection is handled directly in the WebView
|
||||
wv.webViewClient = WebViewClient()
|
||||
|
||||
wv.loadUrl(url)
|
||||
AlertDialog.Builder(this)
|
||||
.setView(wv)
|
||||
.setPositiveButton(android.R.string.ok, null)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
|
@ -54,6 +54,7 @@ public class PreferencesManager {
|
||||
public static final String SETTINGS_NOTIFICATION_TROUBLESHOOT_PREFERENCE_KEY = "SETTINGS_NOTIFICATION_TROUBLESHOOT_PREFERENCE_KEY";
|
||||
public static final String SETTINGS_NOTIFICATION_ADVANCED_PREFERENCE_KEY = "SETTINGS_NOTIFICATION_ADVANCED_PREFERENCE_KEY";
|
||||
public static final String SETTINGS_THIRD_PARTY_NOTICES_PREFERENCE_KEY = "SETTINGS_THIRD_PARTY_NOTICES_PREFERENCE_KEY";
|
||||
public static final String SETTINGS_OTHER_THIRD_PARTY_NOTICES_PREFERENCE_KEY = "SETTINGS_OTHER_THIRD_PARTY_NOTICES_PREFERENCE_KEY";
|
||||
public static final String SETTINGS_COPYRIGHT_PREFERENCE_KEY = "SETTINGS_COPYRIGHT_PREFERENCE_KEY";
|
||||
public static final String SETTINGS_CLEAR_CACHE_PREFERENCE_KEY = "SETTINGS_CLEAR_CACHE_PREFERENCE_KEY";
|
||||
public static final String SETTINGS_CLEAR_MEDIA_CACHE_PREFERENCE_KEY = "SETTINGS_CLEAR_MEDIA_CACHE_PREFERENCE_KEY";
|
||||
|
@ -41,6 +41,7 @@ import androidx.core.content.ContextCompat
|
||||
import androidx.core.content.edit
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.preference.*
|
||||
import com.google.android.gms.oss.licenses.OssLicensesMenuActivity
|
||||
import com.google.android.material.textfield.TextInputEditText
|
||||
import com.google.android.material.textfield.TextInputLayout
|
||||
import im.vector.matrix.android.api.Matrix
|
||||
@ -693,6 +694,13 @@ class VectorSettingsPreferencesFragment : VectorPreferenceFragment(), SharedPref
|
||||
false
|
||||
}
|
||||
|
||||
findPreference(PreferencesManager.SETTINGS_OTHER_THIRD_PARTY_NOTICES_PREFERENCE_KEY)
|
||||
.onPreferenceClickListener = Preference.OnPreferenceClickListener {
|
||||
// See https://developers.google.com/android/guides/opensource
|
||||
startActivity(Intent(requireActivity(), OssLicensesMenuActivity::class.java))
|
||||
false
|
||||
}
|
||||
|
||||
// update keep medias period
|
||||
findPreference(PreferencesManager.SETTINGS_MEDIA_SAVING_PERIOD_KEY).let {
|
||||
it.summary = PreferencesManager.getSelectedMediasSavingPeriodString(activity)
|
||||
|
@ -7,5 +7,6 @@
|
||||
<string name="import_e2e_keys_from_file">"Import e2e keys from file \"%1$s\"."</string>
|
||||
|
||||
<string name="settings_sdk_version">Matrix SDK Version</string>
|
||||
<string name="settings_other_third_party_notices">Other third party notices</string>
|
||||
|
||||
</resources>
|
@ -480,6 +480,10 @@
|
||||
android:key="SETTINGS_THIRD_PARTY_NOTICES_PREFERENCE_KEY"
|
||||
android:title="@string/settings_third_party_notices" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_OTHER_THIRD_PARTY_NOTICES_PREFERENCE_KEY"
|
||||
android:title="@string/settings_other_third_party_notices" />
|
||||
|
||||
<im.vector.riotredesign.core.preference.VectorPreference
|
||||
android:key="SETTINGS_MEDIA_SAVING_PERIOD_KEY"
|
||||
android:title="@string/settings_keep_media" />
|
||||
|
Loading…
Reference in New Issue
Block a user