This sample project demonstrates the use of the Swift Android Gradle Plugin to include Android application logic written in Swift code.
Plugin is not yet published to any repository -- using
includedBuildworkaround.
// build.gradle.kts
plugins {
// android app/lib plugin must be applied first
id("com.charlesmuchene.swift-android-gradle-plugin") version "0.1.0-alpha"
}
// settings.gradle.kts
pluginManagement {
repositories {
// ...
}
// NOTE: Plugin is not yet published to any repository
// Clone and add plugin as an included build
includeBuild("../swift-android-gradle-plugin")
}app
├── build.gradle.kts
└── src
└── main
├── AndroidManifest.xml
├── java
│ └── com
│ └── charlesmuchene
│ └── sample
│ ├── MainActivity.kt
│ └── Compose UI
├── res
│ ├── drawable
│ └── values
├── swift
│ ├── Package.swift
│ └── Sources
│ └── lib.swift
└── build.gradle.kts
└── swift-android-gradle-plugin
