20 Commits

Author SHA1 Message Date
567e134b97 TreeNode is now not final. 2020-01-10 11:19:38 +01:00
5adaec9c92 Removed unspecified dependencies from library 2020-01-10 10:00:32 +01:00
541249c84b Fixed library dependencies 2020-01-10 00:41:00 +01:00
9bf01704ee Fix CI 2020-01-10 00:15:50 +01:00
44acda139c Fix CI 2020-01-10 00:11:48 +01:00
6b57541b03 Remove BuildConfig from library. 2020-01-10 00:09:07 +01:00
8bf10927c0 Remove BuildConfig from library. 2020-01-10 00:07:08 +01:00
976d40e0ce Remove BuildConfig from library. 2020-01-10 00:01:20 +01:00
940ae46d2d Update CI 2020-01-09 20:19:39 +01:00
a627b22ed1 Update CI 2020-01-09 20:12:25 +01:00
c87f712d90 Update README.md 2020-01-09 20:07:06 +01:00
566163a622 Version 1.0.3 2020-01-09 20:01:59 +01:00
57a18b0013 Version 1.0.3 2020-01-09 19:56:24 +01:00
44f4237da5 Version 1.0.3 2020-01-09 19:50:31 +01:00
21ef331b16 Version 1.0.3 2020-01-09 19:43:41 +01:00
4d12af0249 Version 1.0.3 2020-01-09 19:38:02 +01:00
150c293690 Version 1.0.3 2020-01-09 19:35:33 +01:00
405ab9cbda Version 1.0.3 2020-01-09 19:30:57 +01:00
bf38143b46 Version 1.0.3 2020-01-09 19:22:19 +01:00
1d26a338c5 Version 1.0.3 2020-01-09 19:19:24 +01:00
5 changed files with 30 additions and 17 deletions

View File

@ -54,24 +54,33 @@ jobs:
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
command: sudo echo $GPG_KEY_CONTENTS | base64 -d > /secret.gpg
name: Build Library
command: ./gradlew :treedatastructure:assembleRelease
- run:
name: Export key
command: |
mkdir treedatastructure/maven
echo ${GPG_KEY_CONTENTS} | base64 -d --ignore-garbage > treedatastructure/maven/secret.gpg
- run:
name: Staging
command: ./gradlew treedatastructure:publishReleasePublicationToSonatypeRepository
command: ./gradlew :treedatastructure:publishReleasePublicationToSonatypeRepository
- run:
name: Release Library
command: ./gradlew closeAndReleaseRepository
workflows:
version: 2.1
build-and-deploy:
jobs:
- build
- build:
filters: # required since `deploy` has tag filters AND requires `build`
tags:
only: /.*/
- deploy:
requires:
- build
filters:
tags:
only:
- /.*/
only: /v[0-9]{1,3}\.[0-9]{1,3}\.?[0-9]{0,3}/
branches:
only:
- release
- master
ignore: /.*/

View File

@ -1,5 +1,5 @@
# Tree (Data Structure)
[![maven](https://img.shields.io/maven-central/v/com.github.adriankuta/tree-structure?style=plastic)](https://mvnrepository.com/artifact/com.github.adriankuta/tree-structure)
[![maven](https://img.shields.io/maven-central/v/com.github.adriankuta/tree-structure?style=plastic)](https://search.maven.org/artifact/com.github.adriankuta/tree-structure)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue?style=plastic)](https://github.com/AdrianKuta/Design-Patterns-Kotlin/blob/master/LICENSE)
[![CircleCI](https://img.shields.io/circleci/build/github/AdrianKuta/Tree-Data-Structure/master?label=CircleCI&style=plastic)](https://circleci.com/gh/AdrianKuta/Tree-Data-Structure)

View File

@ -25,11 +25,11 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.core:core-ktx:1.0.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

View File

@ -1,6 +1,11 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
afterEvaluate {
generateReleaseBuildConfig.enabled = false
}
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
@ -10,7 +15,7 @@ android {
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0.3"
versionName "1.0.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
@ -26,7 +31,6 @@ android {
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.1.0'

View File

@ -1,6 +1,6 @@
package com.github.adriankuta.datastructure.tree
class TreeNode<T>(val value: T) {
open class TreeNode<T>(val value: T) {
private var parent: TreeNode<T>? = null
private val children = mutableListOf<TreeNode<T>>()