Skip to content

Commit 97fe44a

Browse files
committed
Fix readme.
1 parent f99db60 commit 97fe44a

2 files changed

Lines changed: 30 additions & 26 deletions

File tree

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,21 @@ dependencies {
5353
}
5454
```
5555

56-
### 2. Add dependency in CMakeLists.txt or Android.mk
56+
### 2. Specify one or more ABI(s) you need
57+
58+
```Gradle
59+
android {
60+
defaultConfig {
61+
ndk {
62+
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
63+
}
64+
}
65+
}
66+
```
67+
68+
**If you only use the java interface of xUnwind, please ignore the following steps.**
69+
70+
### 3. Add dependency in CMakeLists.txt or Android.mk
5771

5872
> CMakeLists.txt
5973
@@ -76,18 +90,6 @@ include $(BUILD_SHARED_LIBRARY)
7690
$(call import-module,prefab/xunwind)
7791
```
7892

79-
### 3. Specify one or more ABI(s) you need
80-
81-
```Gradle
82-
android {
83-
defaultConfig {
84-
ndk {
85-
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
86-
}
87-
}
88-
}
89-
```
90-
9193
### 4. Add packaging options
9294

9395
If you are using xUnwind in an SDK project, you may need to avoid packaging libxunwind.so into your AAR, so as not to encounter duplicate libxunwind.so file when packaging the app project.

README.zh-CN.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,21 @@ dependencies {
5353
}
5454
```
5555

56-
### 2. 在 CMakeLists.txt 或 Android.mk 中增加依赖
56+
### 2. 指定一个或多个你需要的 ABI
57+
58+
```Gradle
59+
android {
60+
defaultConfig {
61+
ndk {
62+
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
63+
}
64+
}
65+
}
66+
```
67+
68+
**如果你只使用 xUnwind 的 java 接口,请忽略以下的步骤。**
69+
70+
### 3. 在 CMakeLists.txt 或 Android.mk 中增加依赖
5771

5872
> CMakeLists.txt
5973
@@ -76,18 +90,6 @@ include $(BUILD_SHARED_LIBRARY)
7690
$(call import-module,prefab/xunwind)
7791
```
7892

79-
### 3. 指定一个或多个你需要的 ABI
80-
81-
```Gradle
82-
android {
83-
defaultConfig {
84-
ndk {
85-
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
86-
}
87-
}
88-
}
89-
```
90-
9193
### 4. 增加打包选项
9294

9395
如果你是在一个 SDK 工程里使用 xUnwind,你可能需要避免把 libxunwind.so 打包到你的 AAR 里,以免 app 工程打包时遇到重复的 libxunwind.so 文件。

0 commit comments

Comments
 (0)