Skip to content

Commit

Permalink
Preparing for v0.1.0 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffasitella authored Nov 1, 2022
1 parent 45c961b commit 3f2b0aa
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
buildscript {
ext {
compose_version = '1.1.1'
kotlin_plugin_version = '1.6.10'
}
}
plugins {
id 'com.android.application' version '7.1.2' apply false
id 'com.android.library' version '7.1.2' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}
Expand Down
50 changes: 50 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
}
apply from: './dependencies.gradle'

group = 'com.github.Wolox'

android {
compileSdk 31

Expand All @@ -21,23 +24,70 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

buildFeatures {
compose true
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

composeOptions {
kotlinCompilerVersion "1.6.10"
kotlinCompilerExtensionVersion compose_compiler_version
}

kotlinOptions {
jvmTarget = '1.8'
}

configurations {
compile
}

}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.github.Wolox'
artifactId = 'wolmo-compose'
version = '0.1.0'
}
}
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_plugin_version"
implementation "androidx.core:core-ktx:$androidx_core_ktx_version"
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation "androidx.compose.compiler:compiler:$compose_compiler_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_ktx_version"
implementation "androidx.activity:activity-compose:$activity_compose_version"
implementation "androidx.navigation:navigation-compose:$navigation_compose_version"
Expand Down
1 change: 1 addition & 0 deletions core/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ext {
androidx_core_ktx_version = '1.7.0'
lifecycle_ktx_version = '2.3.1'
compose_compiler_version = '1.1.0'
activity_compose_version = '1.3.1'
navigation_compose_version = '2.5.0'
camerax_version = '1.1.0'
Expand Down
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
-openjdk11

0 comments on commit 3f2b0aa

Please # to comment.