diff --git a/app/build.gradle b/app/build.gradle index 87008ac..7269b7c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -37,6 +37,7 @@ dependencies { implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'com.google.android.material:material:1.5.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.3' + implementation project(path: ':filelogger') testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ded7775..0b792da 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,6 +2,9 @@ + + + (R.id.init).setOnClickListener { + applicationContext.getExternalFilesDir(null)?.let { + val config = Config.Builder(it.path) + .setDefaultTag("TAG") + .setLogcatEnable(true) + .build() + + FileLogger.init(config) + } + } + + findViewById