Skip to content

Commit

Permalink
Include components to publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluchu committed Aug 14, 2021
1 parent 81149b4 commit ca95d71
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 106 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,5 @@ lint/tmp/
.idea/compiler.xml

.idea/misc.xml

.idea/
9 changes: 9 additions & 0 deletions app/src/test/java/com/jeluchu/components/Test.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.jeluchu.components

import com.jeluchu.jchucomponentscompose.core.extensions.strings.parseDate

class Test {

val g = "0".parseDate()

}
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@ buildscript {
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.0"
classpath 'com.android.tools.build:gradle:7.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"
}
}

allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
97 changes: 97 additions & 0 deletions jchucomponentscompose/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}

android {

compileSdkVersion 30
buildToolsVersion "30.0.3"

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
consumerProguardFiles "consumer-rules.pro"
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = "1.0.1"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {

// KOTLIN LIBRARY ------------------------------------------------------------------------------
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1'

// JETPACK COMPOSE -----------------------------------------------------------------------------
implementation 'androidx.compose.ui:ui:1.0.1'
implementation 'androidx.compose.material:material:1.0.1'
implementation 'androidx.compose.ui:ui-tooling-preview:1.0.1'
implementation 'androidx.activity:activity-compose:1.3.1'
debugImplementation 'androidx.compose.ui:ui-tooling:1.0.1'
implementation 'androidx.activity:activity-compose:1.3.1'
implementation 'androidx.compose.material:material-icons-extended:1.0.1'
implementation 'androidx.compose.foundation:foundation:1.0.1'
implementation 'androidx.compose.foundation:foundation-layout:1.0.1'
implementation 'androidx.compose.animation:animation:1.0.1'
implementation 'androidx.compose.runtime:runtime:1.0.1'
implementation 'androidx.compose.runtime:runtime-livedata:1.0.1'
implementation 'androidx.constraintlayout:constraintlayout-compose:1.0.0-beta02'
implementation 'androidx.navigation:navigation-compose:2.4.0-alpha06'
implementation 'androidx.activity:activity-compose:1.3.1'

// ACCOMPANIST GOOGLE LIBRARY ------------------------------------------------------------------
implementation 'com.google.accompanist:accompanist-systemuicontroller:0.16.1'
implementation 'com.google.accompanist:accompanist-navigation-animation:0.16.1'

// ANDROIDX LIBRARY ----------------------------------------------------------------------------
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.browser:browser:1.3.0'
implementation 'androidx.preference:preference-ktx:1.1.1'

// GOOGLE LIBRARY ------------------------------------------------------------------------------
implementation 'com.google.android.material:material:1.4.0'
implementation 'com.google.code.gson:gson:2.8.7'

// SQUAREUP LIBRARY ----------------------------------------------------------------------------
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'

// THIRD PARTY DEPENDENCIES --------------------------------------------------------------------
implementation 'io.coil-kt:coil-compose:1.3.2'

}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = "com.jeluchu"
artifactId = "jchucomponentscompose"
version = "0.0.2"
}
}
}
}
95 changes: 0 additions & 95 deletions jchucomponentscompose/build.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion jchucomponentscompose/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.kts.
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rootProject.name = "JchuComponentsCompose"
include ':jchucomponentscompose'
include ':app'
9 changes: 0 additions & 9 deletions settings.gradle.kts

This file was deleted.

0 comments on commit ca95d71

Please sign in to comment.