This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hi All! | |
| I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future. | |
| Feel free to request any features you'd like to see, and I'll prioritize them accordingly. | |
| One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it. | |
| Here's the link to the repository: https://github.com/Pulimet/ADBugger | |
| App Description: | |
| ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private fun setParamsFromLocalProperties() { | |
| MyLogKt.isThreadNameVisible = BuildConfig.isThreadNameVisible | |
| MyLogKt.isTimeVisible = BuildConfig.isTimeVisible | |
| MyLogKt.isPackageNameVisible = BuildConfig.isPackageNameVisible | |
| MyLogKt.isClassNameVisible = BuildConfig.isClassNameVisible | |
| MyLogKt.isMethodNameVisible = BuildConfig.isMethodNameVisible | |
| MyLogKt.isSpacingEnabled = BuildConfig.isSpacingEnabled | |
| MyLogKt.isLengthShouldWrap = BuildConfig.isLengthShouldWrap | |
| MyLogKt.classNameLength = BuildConfig.classNameLength | |
| MyLogKt.methodNameLength = BuildConfig.methodNameLength |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Short way to collect StateFlow on coroutine when Activity Started. | |
| // Useful when you need to collect one StateFlow, but could be used for many. | |
| fun <T> StateFlow<T>.collectIt(lifecycleOwner: LifecycleOwner, function: (T) -> Unit) { | |
| lifecycleOwner.lifecycleScope.launch { | |
| lifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) { | |
| collect { | |
| function.invoke(it) | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Gradle files | |
| .gradle/ | |
| # Intellij | |
| .idea/ | |
| *.iml | |
| # Build | |
| build/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android { | |
| Properties properties = new Properties() | |
| if (project.rootProject.file("local.properties").exists()) { | |
| properties.load(project.rootProject.file("local.properties").newDataInputStream()) | |
| } | |
| defaultConfig { | |
| buildConfigField "boolean", "isThreadNameVisible", properties.getProperty("logger.isThreadNameVisible", "false") | |
| buildConfigField "boolean", "isTimeVisible", properties.getProperty("logger.isTimeVisible","false") | |
| buildConfigField "boolean", "isPackageNameVisible", properties.getProperty("logger.isPackageNameVisible", "false") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: 'com.android.application' | |
| apply plugin: 'kotlin-android' | |
| apply plugin: 'kotlin-android-extensions' | |
| apply from: 'logger.gradle' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Removes all the logging functions | |
| -assumenosideeffects class net.alexandroid.utils.mylogkt.MyLogKtKt { *; } | |
| # Removes only logD() and logV() function | |
| -assumenosideeffects class net.alexandroid.utils.mylogkt.MyLogKtKt { | |
| public static *** logD$default(...); | |
| public static *** logV$default(...); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private String gdprCounries[] = new String[]{ | |
| "US", //United States | |
| "UM", //United States Minor Outlying Islands | |
| "AT", //Austria | |
| "BE", //Belgium | |
| "BG", //Bulgaria | |
| "HR", //Croatia | |
| "CY", //Cyprus | |
| "CZ", //Czech Republic | |
| "DK", //Denmark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (String key : bundle.keySet()) { | |
| Object value = bundle.get(key); | |
| Log.d(TAG, String.format("%s %s (%s)", key, | |
| value.toString(), value.getClass().getName())); | |
| } |
NewerOlder