Skip to content
Proyek

vypdev/stringcare-android

Lihat di GitHub

Tentang

Android library to reveal or obfuscate strings and assets at runtime

Pengembangan web dan aplikasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Maven Central

StringCare Android v5.0.0 — Compile-time obfuscation for strings and assets; runtime reveal in your app. GroupId: dev.vyp.stringcare.

Full documentation is in the docs/ directory (getting started, configuration, API, publishing, troubleshooting).

StringCare Android Library

Installation (Kotlin DSL)

1. Plugin — In the project root settings.gradle.kts:

pluginManagement {
    repositories {
        gradlePluginPortal()
        mavenCentral()
        google()
    }
}
// If publishing locally: includeBuild("../path/to/stringcare-android/plugin")

In the app (or module) build.gradle.kts:

plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
    id("dev.vyp.stringcare.plugin")
}

stringcare {
    debug = false
    skip = false
    assetsFiles = mutableListOf("*.json")
    stringFiles = mutableListOf("strings.xml")
    srcFolders = mutableListOf("src/main")
}

2. Library — In the same module:

dependencies {
    implementation("dev.vyp.stringcare:library:5.0.0")
}

For Groovy use buildscript / apply plugin: 'dev.vyp.stringcare.plugin' and implementation 'dev.vyp.stringcare:library:5.0.0'. See Migration from 4.x if upgrading.

Flutter Support

What Is StringCare

Migration from 4.x to 5.0

Implementation

Strings Usage

Assets Usage

Configuration

Publish APK

Limitations

Compatibility

Tasks

Resource Tips

Build / CI: This project uses the JNI native library as a Git submodule (stringcare-jni, e.g. stringcare-android-c). Clone with submodules: git clone --recurse-submodules ... or run git submodule update --init --recursive after clone. CI workflows must use checkout with submodules: true.

Plugin host natives: With submodule stringcare-jni and dist/ built, the plugin mirrors the whole dist/ tree (e.g. macos/, linux/, windows/) into the JAR on each preparePluginNativeLibraries. To sync that tree into plugin/.../internal/jni/, run ./gradlew syncPluginNativesFromDist (root) or ./gradlew -p plugin syncDistNativesToPluginJni. macOS: universal libsignKey.dylib; Linux/Windows: x64 + arm64 *.so / *.dll.

Publishing (release workflow): See CONTRIBUTING.md for required secrets: NEXUS_USERNAME, NEXUS_PASSWORD, GPG_KEY_ID, GPG_PASSPHRASE, PAT. When dispatching the release workflow, set Publish Maven to true to run the publish job (publishes both dev.vyp.stringcare:library and dev.vyp.stringcare:plugin).

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Jelajahi proyek terkait

Memuat…