plugins {
alias([Link]) apply false
alias([Link]) apply false
}
buildscript {
repositories {
google()
jcenter()
maven(url = "[Link]
}
dependencies {
classpath("[Link]:google-services:4.3.10") // Phiên bản mới
nhất của plugin Google Services
}
}
plugins {
// Áp dụng plugin Android
id("[Link]")
id("[Link]-services")
}
buildscript {
repositories {
google()
mavenCentral() // Thay thế jcenter() bằng mavenCentral()
}
dependencies {
// Plugin Google Services
classpath("[Link]:google-services:4.3.10") // Phiên bản mới
nhất của plugin Google Services
}
}
android {
namespace = "[Link]"
compileSdk = 35
defaultConfig {
applicationId = "[Link]"
minSdk = 24
targetSdk = 35
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "[Link]"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("[Link]"),
"[Link]"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
dependencies {
// Firebase dependencies
implementation(platform("[Link]:firebase-bom:32.7.0"))
implementation("[Link]:firebase-auth")
implementation("[Link]:firebase-firestore")
implementation("[Link]:firebase-storage")
implementation("[Link]:play-services-auth:21.3.0")
// Glide for image loading
implementation("[Link]:glide:4.16.0")
implementation([Link])
annotationProcessor("[Link]:compiler:4.16.0")
// Material Design
implementation("[Link]:material:1.6.0") // Cập nhật
lên phiên bản mới nhất
// Play Services Location
implementation("[Link]:play-services-location:21.0.1")
implementation ("[Link].okhttp3:okhttp:4.10.0")
// ConstraintLayout
implementation("[Link]:constraintlayout:2.1.4")
implementation("[Link]:circleimageview:3.1.0")
implementation("[Link]:cloudinary-android:1.27.0")
// Unit testing and Android testing
testImplementation("junit:junit:4.13.2")
androidTestImplementation("[Link]:junit:1.1.3")
androidTestImplementation("[Link]:espresso-core:3.4.0")
}
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# [Link]
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
[Link]=-Xmx2048m -[Link]=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. For more details,
visit
# [Link]
projects
# [Link]=true
# AndroidX package structure to make it clearer which packages are bundled
with the
# Android operating system, and which are packaged with your app's APK
# [Link]
[Link]=true
# Enables namespacing of each library's R class so that its R class includes
only the
# resources declared in the library itself and none from the library's
dependencies,
# thereby reducing the size of the R class for that library
[Link]=true
#Mon Jun 30 09:12:05 ICT 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://[Link]/distributions/[Link]
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
[versions]
agp = "8.10.1"
junit = "4.13.2"
junitVersion = "1.2.1"
espressoCore = "3.6.1"
appcompat = "1.7.1"
material = "1.6.0"
activity = "1.10.1"
constraintlayout = "2.2.1"
googleGmsGoogleServices = "4.4.2"
firebaseAuth = "23.2.1"
credentials = "1.5.0"
credentialsPlayServicesAuth = "1.5.0"
googleid = "1.1.1"
[libraries]
junit = { group = "junit", name = "junit", [Link] = "junit" }
ext-junit = { group = "[Link]", name = "junit", [Link] =
"junitVersion" }
espresso-core = { group = "[Link]", name = "espresso-
core", [Link] = "espressoCore" }
appcompat = { group = "[Link]", name = "appcompat",
[Link] = "appcompat" }
material = { group = "[Link]", name = "material",
[Link] = "material" }
activity = { group = "[Link]", name = "activity", [Link] =
"activity" }
constraintlayout = { group = "[Link]", name =
"constraintlayout", [Link] = "constraintlayout" }
firebase-auth = { group = "[Link]", name = "firebase-auth",
[Link] = "firebaseAuth" }
credentials = { group = "[Link]", name = "credentials",
[Link] = "credentials" }
credentials-play-services-auth = { group = "[Link]", name =
"credentials-play-services-auth", [Link] =
"credentialsPlayServicesAuth" }
googleid = { group = "[Link]", name
= "googleid", [Link] = "googleid" }
[plugins]
android-application = { id = "[Link]", [Link] = "agp" }
google-gms-google-services = { id = "[Link]-services",
[Link] = "googleGmsGoogleServices" }
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file should *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
[Link]=C\:\\Users\\tuant\\AppData\\Local\\Android\\Sdk
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
maven(url = "[Link]
}
}
dependencyResolutionManagement {
[Link](RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven(url = "[Link]
maven(url = "[Link]
}
}
[Link] = "TradeUp"
include(":app")