Skip to content

Commit

Permalink
[build] fix (Laerdal.McuMgr.Bindings.Android.NativeBuilder.targets): …
Browse files Browse the repository at this point in the history
…we now pass the --validate-url parameter only on windows
  • Loading branch information
dsidirop committed Apr 4, 2024
1 parent cdeee6f commit 7e830b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Empty file modified Laerdal.McuMgr.Bindings.Android.Native/gradlew
100755 → 100644
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
<AndroidSdkPath Condition=" '$(AndroidSdkPath)' == '' AND '$(IsWindows)' == 'true' ">C:\\Users\\$(USERNAME)\\AppData\\Local\\Android\\sdk</AndroidSdkPath>

<McuMgrLaerdalWrapperAarFilePath>$(McuMgrLaerdalWrapperLibSourceDirectory)/mcumgr-laerdal-wrapper/build/outputs/aar/mcumgr-laerdal-wrapper-release.aar</McuMgrLaerdalWrapperAarFilePath>

<ValidateUrlParameter Condition=" '$(IsWindows)' == 'true' ">--validate-url</ValidateUrlParameter>
</PropertyGroup>

<Error Condition=" '$(AndroidSdkPath)' == '' " Text="** [ERROR] Failed to deduce the AndroidSdkPath for this platform!"/>
Expand All @@ -74,10 +76,10 @@
<Delete Files="$(CoreAarLibrary)"/>

<!-- this builds mcumgr-laerdal-wrapper-release.aar to make life easier we set +x permission on gradlew right before invoking it -->
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" $(GradlePath) --version "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" $(GradlePath) wrapper --distribution-type=BIN --gradle-version=7.6 --validate-url "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" chmod +x ./gradlew " Condition=" '$(IsUnix)' == 'true' "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" ./gradlew wrapper clean assembleRelease --console plain --warning-mode all "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" $(GradlePath) --version "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" $(GradlePath) wrapper --distribution-type=BIN --gradle-version=7.6 $(ValidateUrlParameter) "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" chmod +x ./gradlew " Condition=" '$(IsUnix)' == 'true' "/>
<Exec WorkingDirectory="$(McuMgrLaerdalWrapperLibSourceDirectory)" Command=" ./gradlew wrapper clean assembleRelease --console plain --warning-mode all "/>

<Copy SourceFiles="$(McuMgrLaerdalWrapperAarFilePath)" DestinationFiles="$(CoreAarLibrary)"/>
</Target>
Expand Down

0 comments on commit 7e830b8

Please sign in to comment.