Code Monkey home page Code Monkey logo

fastlane-plugin-android-versioning-kts's Introduction

fastlane-plugin-android-versioning-kts's People

Contributors

mortenholmgaard avatar zmunm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fastlane-plugin-android-versioning-kts's Issues

Get VersionName and VersionCode not working using buildSrc and Kotlin-dsl

Hey,

we observed an issue when using this plugin to get version name (get_version_name(app_project_dir: 'app')) and version code (get_version_code(app_project_dir: 'app')).

Below is the regarding snippet from the build.gradle.kts in the app module

    defaultConfig {
        minSdk = ConfigData.minSdkVersion
        targetSdk = ConfigData.targetSdkVersion
        versionCode = ConfigData.versionCode
        versionName = ConfigData.versionName

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
      .
      .
      .

So, we use an object ConfigData that lies in the buildSrc directory in the root dir, which holds our most basic versions, like compile SDK, minSD, versionCode, versionName, etc. (like described in dependency mgmt using buildSrc and Kotlin dsl)

object ConfigData {
    const val compileSdkVersion = 31
    const val buildToolsVersion = "31.0.0"
    const val minSdkVersion = 24
    const val targetSdkVersion = 31
    const val versionCode = 21400080
    const val versionName = "22.19.1"
}

But now if we run fastlane

versionName = get_version_name(app_project_dir: 'app')

we got

ConfigData.versionName

expected is of course 22.19.1

Any help would be greatly appreciated!

Thanks in advance!

Best regards,
Vall0n

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.