microsoftconnect / ms-intune-app-sdk-android

Intune App SDK for Android enables data protection features and mobile app management via Microsoft Intune
43 stars 17 forks source link

Update Documentation to have Kotlin DSL syntax for Gradle Plugin #120

Open Innova133 opened 2 years ago

Innova133 commented 2 years ago

Describe the bug: Documentation should be provided for both groovy and kotlin gradle DSL.

To Reproduce Use the Kotlin DSL for your module's build.gradle file.

Expected behavior: An example should be provided in order to configure the gradle plugin with kotlin DSL. Specifically configuration needed in the

intunemam{
}

block. (Verify, report, excludeVariants, etc)

Intune App SDK for Android (please complete the following information):

codylund commented 2 years ago

Thanks for the suggestion! This is being tracked internally by work item 15049963.

In the meantime, were you able to figure out how to use the Build Plugin with the Kotlin DSL?

Innova133 commented 2 years ago

Not yet. I worked on it for a bit but am on vacation this week. If you can share it, that would be great!

Innova133 commented 2 years ago

Are you able to share an example of the excludeVariants that would work?

piotradamczyk5 commented 1 year ago

@Innova133 I think that

(intunemam as MamifyConfiguration).apply {
  excludeVariants = setOf("noMdm")
}

should work

Innova133 commented 1 year ago
(intunemam).apply {
    excludeVariants.add("debug")
    verify.set(true)
    report.set(true)
}

Worked for me.