This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debugImplementation "androidx.compose.ui:ui-tooling:1.3.0" | |
implementation "androidx.compose.ui:ui-tooling-preview:1.3.0" | |
// Note: These dependencies are already present when you create your project from the Compose template. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debugImplementation "androidx.compose.ui:ui-tooling:1.3.0" | |
implementation "androidx.compose.ui:ui-tooling-preview:1.3.0" | |
// Note: These dependencies are already present when you create your project from the Compose template. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
// ... | |
apply plugin: 'com.google.firebase.appdistribution' | |
// ... | |
buildscript { | |
repositories { | |
google() | |
} | |
dependencies { | |
classpath 'com.google.gms:google-services:4.3.2' // Google Services plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
firebaseAppDistribution { | |
releaseNotesFile="$projectDir/apprelease/releasebuild/release_note.txt" | |
//----------------OR--------- | |
//releaseNotes="Here is new app release note" | |
testersFile="$projectDir/apprelease/releasebuild/testers.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" | |
implementation 'com.android.support:appcompat-v7:28.0.0-rc01' | |
implementation 'com.android.support.constraint:constraint-layout:1.1.2' | |
testImplementation 'junit:junit:4.12' | |
androidTestImplementation 'com.android.support.test:runner:1.0.2' | |
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | |
implementation 'com.google.firebase:firebase-core:16.0.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def config = rootProject.extensions.getByName("ext") // Create variable to access "ext" members | |
android { | |
... | |
dependencies { | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
//Access dependencies | |
implementation config.commonDependency.kotlin | |
implementation config.commonDependency.supportLib | |
implementation config.commonDependency.designSupportLib | |
implementation config.commonDependency.constraintLayout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def config = rootProject.extensions.getByName("ext") // Create variable to access "ext" members | |
android { | |
compileSdkVersion config["compileSdkVersion"] // access "ext" members using variable "config" | |
defaultConfig { | |
applicationId "com.pranay.managegradledemo" | |
minSdkVersion config["minSdkVersion"] | |
targetSdkVersion config["targetSdkVersion"] | |
.... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def config = rootProject.extensions.getByName("ext") // Create variable to access "ext" | |
android { | |
.... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def config = rootProject.extensions.getByName("ext") // Create variable to access "ext" | |
android { | |
.... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext { | |
.... | |
commonDependency = [ | |
kotlin : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlin_version}", | |
supportLib : "com.android.support:appcompat-v7:${supportLibVer}", | |
designSupportLib: "com.android.support:design:${supportLibVer}", | |
recyclerView : "com.android.support:recyclerview-v7:${supportLibVer}", | |
constraintLayout: "com.android.support.constraint:constraint-layout:${constraintLayoutVer}", | |
jUnit : "junit:junit:${jUnitVer}", |