Skip to content

Commit

Permalink
feat (Laerdal.McuMgr.Bindings.Android.NativeBuilder.targets): the tar…
Browse files Browse the repository at this point in the history
…get TackleJarDependencies now runs only when we actually build the project
  • Loading branch information
ksidirop-laerdal committed Apr 16, 2024
1 parent 1ec3adf commit 1c4deef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Error Condition="!Exists('$(CoreAarLibrary)')" Text="'$(CoreAarLibrary)' does not exist"/>
</Target>

<Target Name="CompileMcuMgrLaerdalWrapper" BeforeTargets="PrepareForBuild" Condition=" '$(DesignTimeBuild)' != 'true' AND '$(BuildingProject)' == 'true' ">
<Target Name="CompileMcuMgrLaerdalWrapper" BeforeTargets="PrepareForBuild" AfterTargets="TackleJarDependencies" Condition=" '$(DesignTimeBuild)' != 'true' AND '$(BuildingProject)' == 'true' ">
<!-- on windows we need to make sure that the org.gradle.java.home property is set properly to java17 otherwise the build will fail -->
<PropertyGroup>
<!-- in azure we specify the gradlepath explicitly because by default macos13 uses gradle8.6 -->
Expand Down Expand Up @@ -85,7 +85,7 @@
</Target>

<!-- android download the jar and aar dependencies from maven -->
<Target Name="TackleJarDependencies" BeforeTargets="PrepareForBuild">
<Target Name="TackleJarDependencies" BeforeTargets="PrepareForBuild" Condition=" '$(DesignTimeBuild)' != 'true' AND '$(BuildingProject)' == 'true' ">

<!-- 1. jars go here - notice the :jar postfix to pick the right versions have a look at the folder Laerdal.McuMgr.Bindings.Android.Native/lib which contains all .jar files listed below -->

Expand Down

0 comments on commit 1c4deef

Please sign in to comment.