6 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
4 changed files with 8 additions and 9 deletions

View File

@ -72,7 +72,7 @@ workflows:
version: 2.1 version: 2.1
build-and-deploy: build-and-deploy:
jobs: jobs:
- build - build:
filters: # required since `deploy` has tag filters AND requires `build` filters: # required since `deploy` has tag filters AND requires `build`
tags: tags:
only: /.*/ only: /.*/

View File

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

View File

@ -15,7 +15,7 @@ android {
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 29 targetSdkVersion 29
versionCode 1 versionCode 1
versionName "1.0.4" versionName "1.0.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro' consumerProguardFiles 'consumer-rules.pro'
@ -31,7 +31,6 @@ android {
} }
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.1.0' implementation 'androidx.core:core-ktx:1.1.0'

View File

@ -1,6 +1,6 @@
package com.github.adriankuta.datastructure.tree 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 var parent: TreeNode<T>? = null
private val children = mutableListOf<TreeNode<T>>() private val children = mutableListOf<TreeNode<T>>()