Skip to content

Instantly share code, notes, and snippets.

@yogithesymbian
Created July 25, 2023 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogithesymbian/fe39dfe63dc4e55238c769f522ed4779 to your computer and use it in GitHub Desktop.
Save yogithesymbian/fe39dfe63dc4e55238c769f522ed4779 to your computer and use it in GitHub Desktop.
use flutter cache local replace version from your friend code/project.
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
// START: FlutterFire Configuration
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
// END: FlutterFire Configuration
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}

/android/build.gradle

PATH

/Users/yogiarifwidodo/Sites/mobile/flutter/real_project/pt_sal_monitoring/android/build.gradle

/android/app/build.gradle

PATH

/Users/yogiarifwidodo/Sites/mobile/flutter/real_project/x/android/app/build.gradle
    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.x"
        minSdkVersion flutter.minSdkVersion
        targetSdkVersion flutter.targetSdkVersion
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        multiDexEnabled true
    }

gradle-wrapper.properties

PATH

/Users/yogiarifwidodo/Sites/mobile/flutter/real_project/x/android/gradle/wrapper/gradle-wrapper.properties

version

distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment