File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import org.apache.tools.ant.filters.ReplaceTokens
2+
13plugins {
24 id ' com.android.application'
35 id ' com.google.gms.google-services'
@@ -10,14 +12,8 @@ android {
1012
1113tasks. register(' conanProfile' , Copy ) {
1214 from " conanprofile.txt"
13- into " build/"
14-
15- doLast {
16- def file = file(" build/conanprofile.txt" )
17- def content = file. text
18- content = content. replace(" <NDK_PATH>" , android. ndkDirectory. toString())
19- file. write(content)
20- }
15+ into project. layout. buildDirectory
16+ filter(ReplaceTokens , tokens : [" NDK_PATH" : android. ndkDirectory. toString()])
2117}
2218
2319tasks. register(' conanInstall' ) {
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ compiler.cppstd=17
99compiler.libcxx=c++_shared
1010
1111[conf]
12- tools.android:ndk_path=< NDK_PATH>
12+ tools.android:ndk_path=@ NDK_PATH@
1313tools.build:skip_test=True
You can’t perform that action at this time.
0 commit comments