wip: common library

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey 2022-08-25 17:38:25 +02:00
parent e60ffc9246
commit aeb1c751fb
No known key found for this signature in database
GPG Key ID: 2585783189A62105
3 changed files with 12 additions and 0 deletions

View File

@ -332,6 +332,9 @@ dependencies {
// implementation 'androidx.activity:activity-ktx:1.4.0'
implementation project(':material-color-utilities')
//
implementation 'com.github.nextcloud:android-common:d11641e7b1992aab3b571127388012057755e439'
}
task installGitHooks(type: Copy, group: "development") {

View File

@ -31,6 +31,7 @@ import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import autodagger.AutoInjector
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.nextcloud.android.common.SampleLibraryClass
import com.nextcloud.talk.R
import com.nextcloud.talk.application.NextcloudTalkApplication
import com.nextcloud.talk.events.CertificateEvent
@ -68,6 +69,9 @@ open class BaseActivity : AppCompatActivity() {
public override fun onResume() {
super.onResume()
// TODO remove this, testing only
SampleLibraryClass()
if (appPreferences.isScreenSecured) {
window.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
} else {

View File

@ -20,3 +20,8 @@
include ':app'
include ':material-color-utilities'
includeBuild('../android-common') {
dependencySubstitution {
substitute module('com.github.nextcloud:android-common') using project(':core')
}
}