Skip to content

Commit

Permalink
Release v0.4.0 (#10)
Browse files Browse the repository at this point in the history
* Update all versions

* Enable explicit api mode

* Void => Unit

* Lazy logger

* Remove Gemfile.lock

* Release v0.4.0

* Fix changelog

* Fix demo app
  • Loading branch information
natario1 authored Sep 10, 2020
1 parent 54d57f8 commit a08fce0
Show file tree
Hide file tree
Showing 42 changed files with 333 additions and 578 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
with:
java-version: 1.8
- name: Perform base checks
run: ./gradlew app:assembleDebug library:dokka
run: ./gradlew app:assembleDebug library:publishToDirectory
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A collection of modular elements for `RecyclerView` lists, alternative to
[Google's Paging library](https://developer.android.com/topic/libraries/architecture/paging/), designed in Kotlin with these goals in mind:

```kotlin
implementation("com.otaliastudios:elements:0.3.7")
implementation("com.otaliastudios:elements:0.4.0")
```

Design features:
Expand Down
12 changes: 6 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ plugins {
}

android {
setCompileSdkVersion(rootProject.extra["compileSdkVersion"] as Int)
setCompileSdkVersion(property("compileSdkVersion") as Int)

defaultConfig {
applicationId = "com.otaliastudios.elements.sample"
setMinSdkVersion(rootProject.extra["minSdkVersion"] as Int)
setTargetSdkVersion(rootProject.extra["targetSdkVersion"] as Int)
setMinSdkVersion(property("minSdkVersion") as Int)
setTargetSdkVersion(property("targetSdkVersion") as Int)
versionCode = 1
versionName = "1.0"
vectorDrawables.useSupportLibrary = true
Expand All @@ -21,12 +21,12 @@ android {
getByName("test").java.srcDir("src/test/kotlin")
}

dataBinding.isEnabled = true
buildFeatures {
dataBinding = true
}
}

dependencies {
val kotlinVersion = property("kotlinVersion") as String
implementation("androidx.appcompat:appcompat:1.1.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion")
implementation(project(":library"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ import com.otaliastudios.elements.sample.presenters.BottomPresenter
import com.otaliastudios.elements.sample.presenters.PlaygroundPresenter
import com.otaliastudios.elements.sample.presenters.TopMessagePresenter
import com.otaliastudios.elements.sample.sources.*
import timber.log.Timber

class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.main_activity)
ElementsLogger.setLevel(ElementsLogger.VERBOSE)
Timber.plant(Timber.DebugTree())
val recycler = findViewById<RecyclerView>(R.id.recycler)
val list = listOf(
R.string.menu_paged, R.string.menu_paged_on_click,
Expand Down
8 changes: 3 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ buildscript {
extra["minSdkVersion"] = 14
extra["compileSdkVersion"] = 29
extra["targetSdkVersion"] = 29
extra["kotlinVersion"] = "1.3.61"

repositories {
mavenCentral()
Expand All @@ -12,10 +11,9 @@ buildscript {
}

dependencies {
val kotlinVersion = property("kotlinVersion") as String
classpath("com.android.tools.build:gradle:3.6.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath("com.otaliastudios.tools:publisher:0.1.5")
classpath("com.android.tools.build:gradle:4.0.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0")
classpath("com.otaliastudios.tools:publisher:0.3.3")
}
}

Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ _pages
*.sw?
.sass-cache
.jekyll-metadata
Gemfile.lock
248 changes: 0 additions & 248 deletions docs/Gemfile.lock

This file was deleted.

8 changes: 7 additions & 1 deletion docs/_about/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ New versions are released through GitHub, so the reference page is the [GitHub R
> You can [support development](https://github.com/natario1/Elements/issues/4) through the GitHub Sponsors program.
Companies can share a tiny part of their revenue and get private support hours in return. Thanks!

### v0.4.0

- Refreshed dependencies, Kotlin 1.4.0 [#10][10]

<https://github.com/natario1/Elements/compare/v0.3.7...v0.4.0>

#### v0.3.7

First versioned release.

[natario1]: https://github.com/natario1

[38]: https://github.com/natario1/Elements/pull/38
[10]: https://github.com/natario1/Elements/pull/10
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ google_analytics_id: 'UA-155077779-6'
google_site_verification: '4x49i17ABIrSvUl52SeL0-t0341aTnWWaC62-FYCRT4'
github: [metadata] # TODO What's this?
github_repo: Elements
github_version: 0.3.7
github_version: 0.4.0
github_branch: master
baseurl: '/Elements' # Keep as an empty string if served up at the root
collections:
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit a08fce0

Please sign in to comment.