Skip to content

charlesmuchene/swift-android-gradle-plugin-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Android Gradle Plugin Sample

Demo

This sample project demonstrates the use of the Swift Android Gradle Plugin to include Android application logic written in Swift code.

Applying the plugin

Plugin is not yet published to any repository -- using includedBuild workaround.

// 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")
}

Project Structure

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

About

An Android sample app demonstrating use of the Swift gradle plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors