Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions apps/docs/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ If the NDK is not installed, you can install it via Android Studio by going to t

And then the _SDK Location_ section. It will show you the NDK path, or the option to download it if you don't have it installed.

### Proguard

If you're using Proguard, make sure to add the following rule at `proguard-rules.pro`:

```
-keep class com.shopify.reactnative.skia.** { *; }
```

### TroubleShooting

For error **_CMake 'X.X.X' was not found in SDK, PATH, or by cmake.dir property._**
Expand Down
2 changes: 2 additions & 0 deletions packages/skia/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ android {
versionName "1.0"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

consumerProguardFiles 'proguard-rules.pro'

externalNativeBuild {
cmake {
cppFlags "-fexceptions", "-frtti", "-std=c++1y", "-DONANDROID"
Expand Down
1 change: 1 addition & 0 deletions packages/skia/android/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-keep class com.shopify.reactnative.skia.** { *; }
1 change: 1 addition & 0 deletions packages/skia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"README.md",
"LICENSE.md",
"android/build.gradle",
"android/proguard-rules.pro",
"android/CMakeLists.txt",
"android/cpp/**",
"android/src/**",
Expand Down
Loading