https://github.com/libchecker/libchecker-rules-bundle
https://github.com/libchecker/libchecker-rules-bundle
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/libchecker/libchecker-rules-bundle
- Owner: LibChecker
- License: apache-2.0
- Created: 2022-03-12T08:47:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T10:04:41.000Z (about 1 month ago)
- Last Synced: 2025-04-08T11:22:39.792Z (about 1 month ago)
- Language: Kotlin
- Size: 582 KB
- Stars: 16
- Watchers: 3
- Forks: 4
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LibChecker-Rules-Bundle
[](https://jitpack.io/v/LibChecker/LibChecker-Rules-Bundle.svg)
Make it easy to use [LibChecker](https://github.com/LibChecker/LibChecker) marked libraries rules in your apps.
## Download
```groovy
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation "com.github.LibChecker:LibChecker-Rules-Bundle:${latest_version}"// Required: AndroidX Room
implementation 'androidx.room:room-runtime:2.5.0'
implementation 'androidx.room:room-ktx:2.5.0'// Required: Kotlin Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'
}
```## Quick Tutorial
Initialize SDK in `Application` class
```kotlin
class App : Application() {override fun onCreate() {
super.onCreate()
LCRules.init(this)
// Optional: set online repo (GitHub repo as default)
LCRules.setRemoteRepo(LCRemoteRepo.GitHub)
// WIP: set rules locale
LCRules.setLocale(LCLocale.ZH)
}
```Get marked rule
```kotlin
// Native library
val rule: Rule = LCRules.getRule(name = "libflutter.so", type = NATIVE, useRegex = false)// Activity library
val rule2: Rule = LCRules.getRule(name = "androidx.compose.ui.tooling.PreviewActivity", type = ACTIVITY, useRegex = false)// Query library with RegEx
val rule3: Rule = LCRules.getRule(name = "libAMapSDK_MAP_v7_9_1.so", type = NATIVE, useRegex = true)
```