python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

Enhancement Request: Support for BOM Dependencies and Plugins Configuration in buildozer.spec

Open kengoon opened this issue 2 years ago • 1 comments

Presently, there is no provision in the buildozer.spec file to include bom dependencies in the build.gradle file. For instance, if you wish to incorporate the Kotlin bom dependency, like so:

implementation platform("org.jetbrains.kotlin:kotlin-bom:1.8.22")

Similarly, when dealing with plugins such as the Google services Gradle plugin, you are required to specify the classpath within the buildscript block:

buildscript {

    repositories {
     ...
    }
    dependencies {
      ...

      // Google services Gradle plugin
      classpath 'com.google.gms:google-services:4.4.0'
    }
}

Subsequently, in the plugins section, you need to set the ID:

plugins {
    ...

    // Add the ID of the plugin
    id 'com.google.gms.google-services'
    ...
}

Regrettably, the current configuration of buildozer.spec lacks a dedicated section to define these dependencies and plugins directly. As a workaround, one must manually modify the file within the .buildozer directory.

### Tasks

kengoon avatar Dec 19 '23 21:12 kengoon

Possibly related: https://github.com/orgs/kivy/discussions/8

Julian-O avatar Dec 21 '23 00:12 Julian-O