Skip to content

Commit

Permalink
Fix readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
caikelun committed Feb 5, 2021
1 parent f99db60 commit 97fe44a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,21 @@ dependencies {
}
```

### 2. Add dependency in CMakeLists.txt or Android.mk
### 2. Specify one or more ABI(s) you need

```Gradle
android {
defaultConfig {
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
}
```

**If you only use the java interface of xUnwind, please ignore the following steps.**

### 3. Add dependency in CMakeLists.txt or Android.mk

> CMakeLists.txt
Expand All @@ -76,18 +90,6 @@ include $(BUILD_SHARED_LIBRARY)
$(call import-module,prefab/xunwind)
```

### 3. Specify one or more ABI(s) you need

```Gradle
android {
defaultConfig {
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
}
```

### 4. Add packaging options

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.
Expand Down
28 changes: 15 additions & 13 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,21 @@ dependencies {
}
```

### 2. 在 CMakeLists.txt 或 Android.mk 中增加依赖
### 2. 指定一个或多个你需要的 ABI

```Gradle
android {
defaultConfig {
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
}
```

**如果你只使用 xUnwind 的 java 接口,请忽略以下的步骤。**

### 3. 在 CMakeLists.txt 或 Android.mk 中增加依赖

> CMakeLists.txt
Expand All @@ -76,18 +90,6 @@ include $(BUILD_SHARED_LIBRARY)
$(call import-module,prefab/xunwind)
```

### 3. 指定一个或多个你需要的 ABI

```Gradle
android {
defaultConfig {
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
}
```

### 4. 增加打包选项

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

0 comments on commit 97fe44a

Please sign in to comment.