Code Monkey home page Code Monkey logo

Comments (4)

arifBurakDemiray avatar arifBurakDemiray commented on September 7, 2024

Hello @androidacy-user could you please share your build.gradle.kts file?

Pre solution recommendation:
If you have this line in your gradle file
id("ly.count.android.plugins.UploadSymbolsPlugin")
Please change it with this
id 'ly.count.android.plugins.upload-symbols' version '24.1.1'

from countly-sdk-android.

androidacy-user avatar androidacy-user commented on September 7, 2024

Hello @androidacy-user could you please share your build.gradle.kts file?

Pre solution recommendation:
If you have this line in your gradle file
id("ly.count.android.plugins.UploadSymbolsPlugin")
Please change it with this
id 'ly.count.android.plugins.upload-symbols' version '24.1.1'

Nothing we did got it to work. We have the relevant classpath line in the root build.gradle.kts, and just trying to type in the plugin name in the app build.gradle.kts recognizes the class name, it's just not recognizing as a valid plugin.

N.B. I'm somewhat limited on what code in permitted to share from the project as it's proprietary, but always happy to try to troubleshoot otherwise!

from countly-sdk-android.

arifBurakDemiray avatar arifBurakDemiray commented on September 7, 2024

If you are using root gradle file, I need to find out how it is structured.
If in the plugins section it is registered like that
id 'ly.count.android.plugins.upload-symbols' version '24.1.1'

Could you add apply false to the end.
And if possible could you share maybe simplified version of your grade file?

from countly-sdk-android.

arifBurakDemiray avatar arifBurakDemiray commented on September 7, 2024

@androidacy-user Hello, I had time to try with a new fresh kotlin application. Here are the root and application level gradle files.

This is root level gradle file

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id("com.android.application") version "8.2.0" apply false
    id("org.jetbrains.kotlin.android") version "1.9.0" apply false
    id("ly.count.android.plugins.upload-symbols") version "24.1.1" apply false
}

And this is application level gradle file

plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
    id("ly.count.android.plugins.upload-symbols")
}

android {
    namespace = "ly.count.datapush.myapplication"
    compileSdk = 34

    defaultConfig {
        applicationId = "ly.count.datapush.myapplication"
        minSdk = 30
        targetSdk = 34
        versionCode = 1
        versionName = "1.0"

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables {
            useSupportLibrary = true
        }
    }

    buildTypes {
        release {
            isMinifyEnabled = false
            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
        }
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = "1.8"
    }
    buildFeatures {
        compose = true
    }
    composeOptions {
        kotlinCompilerExtensionVersion = "1.5.1"
    }
    packaging {
        resources {
            excludes += "/META-INF/{AL2.0,LGPL2.1}"
        }
    }
}

dependencies {

    implementation("androidx.core:core-ktx:1.12.0")
    implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
    implementation("androidx.activity:activity-compose:1.8.2")
    implementation(platform("androidx.compose:compose-bom:2023.08.00"))
    implementation("androidx.compose.ui:ui")
    implementation("androidx.compose.ui:ui-graphics")
    implementation("androidx.compose.ui:ui-tooling-preview")
    implementation("androidx.compose.material3:material3")
    testImplementation("junit:junit:4.13.2")
    androidTestImplementation("androidx.test.ext:junit:1.1.5")
    androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
    androidTestImplementation(platform("androidx.compose:compose-bom:2023.08.00"))
    androidTestImplementation("androidx.compose.ui:ui-test-junit4")
    debugImplementation("androidx.compose.ui:ui-tooling")
    debugImplementation("androidx.compose.ui:ui-test-manifest")
}

Also rather than using "plugins" block a single apply block can be used
apply(plugin = "ly.count.android.plugins.upload-symbols")

I will update the documentation for kotlin integrations. Thank you for your patience

from countly-sdk-android.

Related Issues (20)

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.