Skip to content

Commit 274304b

Browse files
committed
fix : 增加xcrash asan特性
Signed-off-by: JeffMony <[email protected]> #branch=master
1 parent 81d2d7f commit 274304b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies {
3434
implementation 'com.github.JeffMony:ORCodeDemo:v1.5.0'
3535
implementation 'pub.devrel:easypermissions:2.0.1'
3636
implementation 'com.github.JeffMony:Laker:1.0.6'
37-
implementation 'com.iqiyi.xcrash:xcrash-android-lib:3.0.0'
37+
implementation project(path: ':xcrash')
3838
implementation project(path: ':playersdk')
3939
implementation project(path: ':exoplayer')
4040
}

xcrash/build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ plugins {
22
id 'com.android.library'
33
}
44

5+
ext {
6+
compile_with_asan = false
7+
}
8+
59
android {
610
namespace 'com.example.xcrash'
711
compileSdk 30
@@ -12,6 +16,10 @@ android {
1216

1317
externalNativeBuild {
1418
cmake {
19+
if (compile_with_asan) {
20+
arguments "-DANDROID_ARM_MODE=arm"
21+
arguments "-DUSEASAN=ON"
22+
}
1523
abiFilters "armeabi-v7a", "arm64-v8a"
1624
}
1725
}

0 commit comments

Comments
 (0)