|
1 | | -[](https://search.maven.org/search?q=g:%22dev.vyp.stringcare%22%20AND%20a:%22library%22) |
2 | | - |
3 | | -**StringCare Android** v5.0.0 — Compile-time obfuscation for strings and assets; runtime reveal in your app. GroupId: `dev.vyp.stringcare`. |
4 | | - |
5 | | -Full documentation is in the [docs/](docs/) directory (getting started, configuration, API, publishing, troubleshooting). |
6 | | - |
7 | | -<p align="center"><img width="10%" vspace="10" src="https://github.com/StringCare/AndroidLibrary/raw/develop/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"></p> |
8 | | - |
9 | | -<h3 align="center" style="margin-bottom:30px" vspace="20">StringCare Android Library</h3> |
10 | | - |
11 | | -<p align="center"><img width="10%" vspace="20" src="https://github.com/StringCare/AndroidLibrary/raw/develop/white.png"></p> |
12 | | - |
13 | | -### Installation (Kotlin DSL) |
14 | | - |
15 | | -**1. Plugin** — In the project root `settings.gradle.kts`: |
16 | | - |
17 | | -```kotlin |
18 | | -pluginManagement { |
19 | | - repositories { |
20 | | - gradlePluginPortal() |
21 | | - mavenCentral() |
22 | | - google() |
23 | | - } |
24 | | -} |
25 | | -// If publishing locally: includeBuild("../path/to/stringcare-android/plugin") |
26 | | -``` |
27 | | - |
28 | | -In the app (or module) `build.gradle.kts`: |
29 | | - |
30 | | -```kotlin |
31 | | -plugins { |
32 | | - id("com.android.application") |
33 | | - id("org.jetbrains.kotlin.android") |
34 | | - id("dev.vyp.stringcare.plugin") |
35 | | -} |
36 | | - |
37 | | -stringcare { |
38 | | - debug = false |
39 | | - skip = false |
40 | | - assetsFiles = mutableListOf("*.json") |
41 | | - stringFiles = mutableListOf("strings.xml") |
42 | | - srcFolders = mutableListOf("src/main") |
43 | | -} |
44 | | -``` |
45 | | - |
46 | | -**2. Library** — In the same module: |
47 | | - |
48 | | -```kotlin |
49 | | -dependencies { |
50 | | - implementation("dev.vyp.stringcare:library:5.0.0") |
51 | | -} |
52 | | -``` |
53 | | - |
54 | | -For **Groovy** use `buildscript` / `apply plugin: 'dev.vyp.stringcare.plugin'` and `implementation 'dev.vyp.stringcare:library:5.0.0'`. See [Migration from 4.x](MIGRATION.md) if upgrading. |
55 | | - |
56 | | -#### [Flutter Support](https://github.com/StringCare/stringcare) |
57 | | - |
58 | | -#### [What Is StringCare](https://github.com/StringCare/AndroidLibrary/wiki/What-is-StringCare) |
59 | | - |
60 | | -#### [Migration from 4.x to 5.0](MIGRATION.md) |
61 | | - |
62 | | -#### [Implementation](https://github.com/StringCare/AndroidLibrary/wiki/Implementation) |
63 | | - |
64 | | -#### [Strings Usage](https://github.com/StringCare/AndroidLibrary/wiki/Strings-Usage) |
65 | | - |
66 | | -#### [Assets Usage](https://github.com/StringCare/AndroidLibrary/wiki/Assets-Usage) |
67 | | - |
68 | | -#### [Configuration](https://github.com/StringCare/AndroidLibrary/wiki/Configuration) |
69 | | - |
70 | | -#### [Publish APK](https://github.com/StringCare/AndroidLibrary/wiki/Publish-APK) |
71 | | - |
72 | | -#### [Limitations](https://github.com/StringCare/AndroidLibrary/wiki/Limitations) |
73 | | - |
74 | | -#### [Compatibility](https://github.com/StringCare/AndroidLibrary/wiki/Compatibility) |
75 | | - |
76 | | -#### [Tasks](https://github.com/StringCare/AndroidLibrary/wiki/Tasks) |
77 | | - |
78 | | -#### [Resource Tips](https://github.com/StringCare/AndroidLibrary/wiki/Resource-Tips) |
79 | | - |
80 | | -**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`. |
81 | | - |
82 | | -**Plugin host natives:** With submodule `stringcare-jni` and `dist/` built, the plugin JAR picks up **`dist/{macos,linux,windows}/`** automatically on each **`preparePluginNativeLibraries`** (runs before `processResources`). Use **`./gradlew :plugin:syncPluginNativeLibraries`** only if you want to commit those binaries under `plugin/.../jni/`. macOS: universal `libsignKey.dylib`; Linux/Windows: x64 + arm64 `*.so` / `*.dll`. |
83 | | - |
84 | | -**Publishing (release workflow):** See [CONTRIBUTING.md](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`). |
85 | | - |
86 | | -<p align="center"><img width="10%" vspace="20" src="https://github.com/StringCare/AndroidLibrary/raw/develop/white.png"></p> |
87 | | - |
88 | | -<p align="center"><img width="40%" vspace="20" src="https://raw.githubusercontent.com/efraespada/AndroidStringObfuscator/develop/sample.png"> <img width="40%" vspace="20" src="https://raw.githubusercontent.com/efraespada/AndroidStringObfuscator/develop/sample2.png"></p> |
89 | | - |
90 | | - |
91 | | -<p align="center"><img width="10%" vspace="20" src="https://github.com/StringCare/AndroidLibrary/raw/develop/white.png"></p> |
92 | | - |
93 | | -License |
94 | | -------- |
95 | | - |
96 | | - Licensed under the Apache License, Version 2.0 (the "License"); |
97 | | - you may not use this file except in compliance with the License. |
98 | | - You may obtain a copy of the License at |
99 | | - |
100 | | - http://www.apache.org/licenses/LICENSE-2.0 |
101 | | - |
102 | | - Unless required by applicable law or agreed to in writing, software |
103 | | - distributed under the License is distributed on an "AS IS" BASIS, |
104 | | - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
105 | | - See the License for the specific language governing permissions and |
106 | | - limitations under the License. |
107 | | - |
| 1 | +[](https://search.maven.org/search?q=g:%22dev.vyp.stringcare%22%20AND%20a:%22library%22) |
| 2 | + |
| 3 | +**StringCare Android** v5.0.0 — Compile-time obfuscation for strings and assets; runtime reveal in your app. GroupId: `dev.vyp.stringcare`. |
| 4 | + |
| 5 | +Full documentation is in the [docs/](docs/) directory (getting started, configuration, API, publishing, troubleshooting). |
| 6 | + |
| 7 | +<p align="center"><img width="10%" vspace="10" src="https://github.com/StringCare/AndroidLibrary/raw/develop/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"></p> |
| 8 | + |
| 9 | +<h3 align="center" style="margin-bottom:30px" vspace="20">StringCare Android Library</h3> |
| 10 | + |
| 11 | +<p align="center"><img width="10%" vspace="20" src="https://github.com/StringCare/AndroidLibrary/raw/develop/white.png"></p> |
| 12 | + |
| 13 | +### Installation (Kotlin DSL) |
| 14 | + |
| 15 | +**1. Plugin** — In the project root `settings.gradle.kts`: |
| 16 | + |
| 17 | +```kotlin |
| 18 | +pluginManagement { |
| 19 | + repositories { |
| 20 | + gradlePluginPortal() |
| 21 | + mavenCentral() |
| 22 | + google() |
| 23 | + } |
| 24 | +} |
| 25 | +// If publishing locally: includeBuild("../path/to/stringcare-android/plugin") |
| 26 | +``` |
| 27 | + |
| 28 | +In the app (or module) `build.gradle.kts`: |
| 29 | + |
| 30 | +```kotlin |
| 31 | +plugins { |
| 32 | + id("com.android.application") |
| 33 | + id("org.jetbrains.kotlin.android") |
| 34 | + id("dev.vyp.stringcare.plugin") |
| 35 | +} |
| 36 | + |
| 37 | +stringcare { |
| 38 | + debug = false |
| 39 | + skip = false |
| 40 | + assetsFiles = mutableListOf("*.json") |
| 41 | + stringFiles = mutableListOf("strings.xml") |
| 42 | + srcFolders = mutableListOf("src/main") |
| 43 | +} |
| 44 | +``` |
| 45 | + |
| 46 | +**2. Library** — In the same module: |
| 47 | + |
| 48 | +```kotlin |
| 49 | +dependencies { |
| 50 | + implementation("dev.vyp.stringcare:library:5.0.0") |
| 51 | +} |
| 52 | +``` |
| 53 | + |
| 54 | +For **Groovy** use `buildscript` / `apply plugin: 'dev.vyp.stringcare.plugin'` and `implementation 'dev.vyp.stringcare:library:5.0.0'`. See [Migration from 4.x](MIGRATION.md) if upgrading. |
| 55 | + |
| 56 | +#### [Flutter Support](https://github.com/StringCare/stringcare) |
| 57 | + |
| 58 | +#### [What Is StringCare](https://github.com/StringCare/AndroidLibrary/wiki/What-is-StringCare) |
| 59 | + |
| 60 | +#### [Migration from 4.x to 5.0](MIGRATION.md) |
| 61 | + |
| 62 | +#### [Implementation](https://github.com/StringCare/AndroidLibrary/wiki/Implementation) |
| 63 | + |
| 64 | +#### [Strings Usage](https://github.com/StringCare/AndroidLibrary/wiki/Strings-Usage) |
| 65 | + |
| 66 | +#### [Assets Usage](https://github.com/StringCare/AndroidLibrary/wiki/Assets-Usage) |
| 67 | + |
| 68 | +#### [Configuration](https://github.com/StringCare/AndroidLibrary/wiki/Configuration) |
| 69 | + |
| 70 | +#### [Publish APK](https://github.com/StringCare/AndroidLibrary/wiki/Publish-APK) |
| 71 | + |
| 72 | +#### [Limitations](https://github.com/StringCare/AndroidLibrary/wiki/Limitations) |
| 73 | + |
| 74 | +#### [Compatibility](https://github.com/StringCare/AndroidLibrary/wiki/Compatibility) |
| 75 | + |
| 76 | +#### [Tasks](https://github.com/StringCare/AndroidLibrary/wiki/Tasks) |
| 77 | + |
| 78 | +#### [Resource Tips](https://github.com/StringCare/AndroidLibrary/wiki/Resource-Tips) |
| 79 | + |
| 80 | +**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`. |
| 81 | + |
| 82 | +**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`. |
| 83 | + |
| 84 | +**Publishing (release workflow):** See [CONTRIBUTING.md](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`). |
| 85 | + |
| 86 | +<p align="center"><img width="10%" vspace="20" src="https://github.com/StringCare/AndroidLibrary/raw/develop/white.png"></p> |
| 87 | + |
| 88 | +<p align="center"><img width="40%" vspace="20" src="https://raw.githubusercontent.com/efraespada/AndroidStringObfuscator/develop/sample.png"> <img width="40%" vspace="20" src="https://raw.githubusercontent.com/efraespada/AndroidStringObfuscator/develop/sample2.png"></p> |
| 89 | + |
| 90 | + |
| 91 | +<p align="center"><img width="10%" vspace="20" src="https://github.com/StringCare/AndroidLibrary/raw/develop/white.png"></p> |
| 92 | + |
| 93 | +License |
| 94 | +------- |
| 95 | + |
| 96 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 97 | + you may not use this file except in compliance with the License. |
| 98 | + You may obtain a copy of the License at |
| 99 | + |
| 100 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 101 | + |
| 102 | + Unless required by applicable law or agreed to in writing, software |
| 103 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 104 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 105 | + See the License for the specific language governing permissions and |
| 106 | + limitations under the License. |
| 107 | + |
0 commit comments