We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5796674 commit e7a86a5Copy full SHA for e7a86a5
1 file changed
app/build.gradle
@@ -8,21 +8,21 @@ android {
8
ndkVersion "26.3.11579264"
9
}
10
11
-task conanProfile {
12
- file("build").mkdirs()
13
-
14
- copy {
15
- from "conanprofile.txt"
16
- into "build"
17
- }
+task conanProfile(type: Copy) {
+ from "conanprofile.txt"
+ into "build/"
18
+ doLast {
19
def file = file("build/conanprofile.txt")
20
def content = file.text
21
content = content.replace("<NDK_PATH>", android.ndkDirectory.toString())
22
file.write(content)
+ }
23
24
25
task conanInstall {
+ dependsOn(conanProfile)
+ doFirst {
26
["armv7", "armv8", "x86", "x86_64"].each { String arch ->
27
exec {
28
commandLine(
@@ -37,7 +37,9 @@ task conanInstall {
37
)
38
39
40
41
42
+preBuild.dependsOn conanInstall
43
44
android {
45
defaultConfig {
0 commit comments