Skip to content

Commit

Permalink
Add changelog file and update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
adibfara committed Jan 24, 2019
1 parent 397abe3 commit 1ffc536
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
/build
/captures
.externalNativeBuild
/testapplication/
.testapplication
.idea
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## [1.2.0]
### Added
- `LiveData.sampleWith(otherLiveData)`: Samples the current live data with other live data, resulting in a live data that emits the last value emitted by the original live data (if any) whenever the other live data emits
- `scan(accumulator)` : Applies the accumulator function to each emitted item, starting with the second emitted item. Initial value of the accumulator is the first item.
- `scan(seed, accumulator)` : Applies the accumulator function to each emitted item, starting with the initial seed.
- `combineLatest(firstLiveData, secondLiveData, combineFunction)`: combines both of the LiveDatas using the combineFunction and emits a value after any of them have emitted a value.

### Changed
- change `api` to `implementation` when importing the architecture components libraries to make them compile-only
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ implementation 'android.arch.lifecycle:extensions:x.x.x'
implementation 'com.snakydesign.livedataextensions:lives:1.2.0'
```

If you want to use this library on a Java project, add the following dependency:
```groovy
implementation 'org.jetbrains.kotlin:kotlin-stdlib:x.x.x'
```

Usage
--------

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':lives', ':testapplication'
include ':lives', ':testapplicaiton'
24 changes: 12 additions & 12 deletions versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ ext.versionNumbers = [
]

ext.libraries = [
gradle : "com.android.tools.build:gradle:$versionNumbers.gradle",
kotlinGradle : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versionNumbers.kotlin",
jfrog : "org.jfrog.buildinfo:build-info-extractor-gradle:$versionNumbers.jfrog",
bintray : "com.jfrog.bintray.gradle:gradle-bintray-plugin:$versionNumbers.bintray",
androidMaven : "com.github.dcendents:android-maven-gradle-plugin:$versionNumbers.androidMaven",
gradle : "com.android.tools.build:gradle:$versionNumbers.gradle",
kotlinGradle : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versionNumbers.kotlin",
jfrog : "org.jfrog.buildinfo:build-info-extractor-gradle:$versionNumbers.jfrog",
bintray : "com.jfrog.bintray.gradle:gradle-bintray-plugin:$versionNumbers.bintray",
androidMaven : "com.github.dcendents:android-maven-gradle-plugin:$versionNumbers.androidMaven",

kotlinSTDLib : "org.jetbrains.kotlin:kotlin-stdlib:$versionNumbers.kotlin",
kotlinTestJunit : "org.jetbrains.kotlin:kotlin-test-junit:$versionNumbers.kotlin",
mockito : "org.mockito:mockito-core:$versionNumbers.mockito",
archLifeCycle : "android.arch.lifecycle:extensions:$versionNumbers.arch",
archLiveData: "android.arch.lifecycle:livedata:$versionNumbers.arch",
archCoreTesting : "android.arch.core:core-testing:$versionNumbers.arch",
junit : "junit:junit:$versionNumbers.junit",
kotlinSTDLib : "org.jetbrains.kotlin:kotlin-stdlib:$versionNumbers.kotlin",
kotlinTestJunit: "org.jetbrains.kotlin:kotlin-test-junit:$versionNumbers.kotlin",
mockito : "org.mockito:mockito-core:$versionNumbers.mockito",
archLifeCycle : "android.arch.lifecycle:extensions:$versionNumbers.arch",
archLiveData : "android.arch.lifecycle:livedata:$versionNumbers.arch",
archCoreTesting: "android.arch.core:core-testing:$versionNumbers.arch",
junit : "junit:junit:$versionNumbers.junit",
]

0 comments on commit 1ffc536

Please sign in to comment.