Created
December 6, 2022 01:05
-
-
Save saravr/5e9efe5c4209f28d86d5eb8a10682728 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
plugins { | |
id 'com.android.library' | |
id 'maven-publish' | |
} | |
group = "com.example" | |
version = "1.0.0" | |
android { | |
namespace 'com.example.lib0' | |
compileSdk 32 | |
defaultConfig { | |
minSdk 23 | |
targetSdk 32 | |
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | |
consumerProguardFiles "consumer-rules.pro" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
} | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_11 | |
targetCompatibility JavaVersion.VERSION_11 | |
} | |
} | |
task sourceJar(type: Jar) { | |
from android.sourceSets.main.java.srcDirs | |
classifier "sources" | |
} | |
afterEvaluate { | |
publishing { | |
publications { | |
debug(MavenPublication) { | |
from components.debug | |
} | |
} | |
} | |
} | |
dependencies { | |
implementation 'androidx.appcompat:appcompat:1.5.1' | |
implementation 'com.google.android.material:material:1.7.0' | |
testImplementation 'junit:junit:4.13.2' | |
androidTestImplementation 'androidx.test.ext:junit:1.1.4' | |
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment