Git Product home page Git Product logo

Comments (1)

youarewe avatar youarewe commented on June 18, 2024

//删掉github中获取版本的语句就好了
import com.qmuiteam.plugin.Dep
import java.io.ByteArrayOutputStream
import java.util.*

plugins {
id("com.android.application")
kotlin("android")
kotlin("kapt")
}

val gitVersion = 1

android {
signingConfigs {
val properties = Properties()
val propFile = project.file("release.properties")
if (propFile.exists()) {
properties.load(propFile.inputStream())
}
create("release"){
keyAlias = properties.getProperty("RELEASE_KEY_ALIAS")
keyPassword = properties.getProperty("RELEASE_KEY_PASSWORD")
storeFile = file("qmuidemo.keystore")
storePassword = properties.getProperty("RELEASE_STORE_PASSWORD")
enableV2Signing = true
}
}

compileSdk = Dep.compileSdk
compileOptions {
    sourceCompatibility = Dep.javaVersion
    targetCompatibility = Dep.javaVersion
}

kotlinOptions {
    jvmTarget = Dep.kotlinJvmTarget
    freeCompilerArgs += "-Xjvm-default=all"
}

buildFeatures {
    compose = true
    buildConfig = true
}

composeOptions {
    kotlinCompilerExtensionVersion = Dep.Compose.version
}

defaultConfig {
    applicationId = "com.qmuiteam.qmuidemo"
    minSdk = Dep.minSdk
    targetSdk = Dep.targetSdk
    versionCode = gitVersion
    versionName = Dep.QMUI.qmuiVer

    ndk {
        abiFilters.add("arm64-v8a")
    }
}
buildTypes {
    getByName("release") {
        isMinifyEnabled = true
        proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
        signingConfig = signingConfigs.getByName("release")
    }
}

}

dependencies {
implementation(Dep.AndroidX.appcompat)
implementation(Dep.AndroidX.annotation)
implementation(Dep.AndroidX.activity)
implementation(Dep.MaterialDesign.material)
implementation(Dep.ButterKnife.butterknife)
implementation(Dep.Compose.activity)
implementation(Dep.Compose.constraintlayout)
kapt(Dep.ButterKnife.compiler)
implementation(project(":lib"))
implementation(project(":qmui"))
implementation(project(":arch"))
implementation(project(":type"))
implementation(project(":compose"))
implementation(project(":photo"))
implementation(project(":photo-coil"))
implementation(project(":photo-glide"))
implementation(project(":editor"))
implementation(Dep.Flipper.soLoader)
implementation(Dep.Flipper.flipper)
kapt(project(":compiler"))
kapt(project(":arch-compiler"))
kapt(Dep.Glide.compiler)

implementation("com.iqiyi.xcrash:xcrash-android-lib:3.1.0")

}

from qmui_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.