android-library icon indicating copy to clipboard operation
android-library copied to clipboard

Logcat Android 11; optional live logging

Open hannesa2 opened this issue 3 years ago • 2 comments

It includes

  • Sharing for Android 11 https://github.com/AppDevNext/Logcat/releases/tag/2.5.0
  • Optional live logging https://github.com/AppDevNext/Logcat/releases/tag/2.4.0

hannesa2 avatar Mar 12 '21 06:03 hannesa2

Hey, @hannesa2 we got a conflict, could you take a look?

/android/owncloudApp/src/debug/AndroidManifest.xml:182:13-66 Error:
	Attribute provider#androidx.core.content.FileProvider@authorities value=(@string/file_provider_authority) from AndroidManifest.xml:182:13-66
	is also present at [com.github.AppDevNext.Logcat:LogcatCore:2.5.0] AndroidManifest.xml:25:13-60 value=(com.owncloud.android.debug.provider).
	Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml:180:9-188:20 to override.
/android/owncloudApp/src/debug/AndroidManifest.xml:187:17-58 Error:
	Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/exposed_filepaths) from AndroidManifest.xml:187:17-58
	is also present at [com.github.AppDevNext.Logcat:LogcatCore:2.5.0] AndroidManifest.xml:30:17-55 value=(@xml/provider_paths).
	Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml to override.

abelgardep avatar Mar 15 '21 10:03 abelgardep

The library needs the provider too, but it conflicts with yours, this is not a big thing, but there are several ways to solve

  • overwrite it
  • make it unique
  • make it dynamic
  • use it from library

yours: you use a string to access it in source too. Next to advantages, it has disadvantages concerning coexist of debug and release version on same devices.

    <provider
        android:name="androidx.core.content.FileProvider"
        android:authorities="@string/file_provider_authority"

Library uses dynamic values

    <provider
        android:name="androidx.core.content.FileProvider"
        android:authorities="${applicationId}.provider"

The paths differs too

yours:

<paths>
    <external-path
        name="file"
        path="/" />
</paths>

library:

<paths>
    <external-path
        name="external_files"
        path="." />
</paths>

I will make a proposal in app

hannesa2 avatar Apr 06 '21 07:04 hannesa2