Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template tweaks #39

Merged
merged 7 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*.user
*.userosscache
*.sln.docstates
*.sln

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
Expand Down
2 changes: 1 addition & 1 deletion template/android/native/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
*/build
/captures
.externalNativeBuild
.cxx
Expand Down
31 changes: 19 additions & 12 deletions template/android/native/newbinding/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,27 @@ android {
}
}

// Create configuration for copyDependencies
configurations {
create("copyDependencies")
}

dependencies {

// Add package dependency for binding library. Uncomment line below and add your dependency.
// implementation("dependency.name.goes.here")
// Add package dependency for binding library
// Uncomment line below and replace {dependency.name.goes.here} with your dependency
// implementation("{dependency.name.goes.here}")

// Copy dependencies for binding library. Uncomment line below and add your dependency.
// "copyDependencies"("dependency.name.goes.here")
// Copy dependencies for binding library
// Uncomment line below and replace {dependency.name.goes.here} with your dependency
// "copyDependencies"("{dependency.name.goes.here}")
}

// Copy dependencies for binding library. Uncomment code block below.
//project.afterEvaluate {
// tasks.register<Copy>("copyDeps") {
// from(configurations["copyDependencies"])
// into("${projectDir}/build/outputs/deps")
// }
// tasks.named("preBuild") { finalizedBy("copyDeps") }
//}
// Copy dependencies for binding library
project.afterEvaluate {
tasks.register<Copy>("copyDeps") {
from(configurations["copyDependencies"])
into("${buildDir}/outputs/deps")
}
tasks.named("preBuild") { finalizedBy("copyDeps") }
}
2 changes: 1 addition & 1 deletion template/android/native/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencyResolutionManagement {

// Add repository here, e.g.
// maven {
// url = uri("urlGoesHere")
// url = uri("{urlGoesHere}")
// }
}
}
Expand Down
8 changes: 8 additions & 0 deletions template/sample/MauiSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,12 @@
<ProjectReference Include="..\android\NewBinding.Android.Binding\NewBinding.Android.Binding.csproj" />
</ItemGroup>

<!-- Reference the Android binding dependencies -->
<!-- Uncomment the code block below and update the AndroidLibrary path to point your dependency .aar -->
<!-- <ItemGroup Condition="$(TargetFramework.Contains('android'))">
<AndroidLibrary Include="..\android\native\newbinding\bin\Release\net8.0-android\outputs\deps\{yourDependencyLibrary.aar}">
<Bind>false</Bind>
<Visible>false</Visible>
</AndroidLibrary>
</ItemGroup> -->
</Project>
Loading