Skip to content

Commit a08fce0

Browse files
authored
Release v0.4.0 (#10)
* Update all versions * Enable explicit api mode * Void => Unit * Lazy logger * Remove Gemfile.lock * Release v0.4.0 * Fix changelog * Fix demo app
1 parent 54d57f8 commit a08fce0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+333
-578
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
with:
1717
java-version: 1.8
1818
- name: Perform base checks
19-
run: ./gradlew app:assembleDebug library:dokka
19+
run: ./gradlew app:assembleDebug library:publishToDirectory

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A collection of modular elements for `RecyclerView` lists, alternative to
1616
[Google's Paging library](https://developer.android.com/topic/libraries/architecture/paging/), designed in Kotlin with these goals in mind:
1717

1818
```kotlin
19-
implementation("com.otaliastudios:elements:0.3.7")
19+
implementation("com.otaliastudios:elements:0.4.0")
2020
```
2121

2222
Design features:

app/build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ plugins {
55
}
66

77
android {
8-
setCompileSdkVersion(rootProject.extra["compileSdkVersion"] as Int)
8+
setCompileSdkVersion(property("compileSdkVersion") as Int)
99

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

24-
dataBinding.isEnabled = true
24+
buildFeatures {
25+
dataBinding = true
26+
}
2527
}
2628

2729
dependencies {
28-
val kotlinVersion = property("kotlinVersion") as String
2930
implementation("androidx.appcompat:appcompat:1.1.0")
30-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion")
3131
implementation(project(":library"))
3232
}

app/src/main/kotlin/com/otaliastudios/elements/sample/MainActivity.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ import com.otaliastudios.elements.sample.presenters.BottomPresenter
1616
import com.otaliastudios.elements.sample.presenters.PlaygroundPresenter
1717
import com.otaliastudios.elements.sample.presenters.TopMessagePresenter
1818
import com.otaliastudios.elements.sample.sources.*
19-
import timber.log.Timber
2019

2120
class MainActivity : AppCompatActivity() {
2221

2322
override fun onCreate(savedInstanceState: Bundle?) {
2423
super.onCreate(savedInstanceState)
2524
setContentView(R.layout.main_activity)
2625
ElementsLogger.setLevel(ElementsLogger.VERBOSE)
27-
Timber.plant(Timber.DebugTree())
2826
val recycler = findViewById<RecyclerView>(R.id.recycler)
2927
val list = listOf(
3028
R.string.menu_paged, R.string.menu_paged_on_click,

build.gradle.kts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ buildscript {
33
extra["minSdkVersion"] = 14
44
extra["compileSdkVersion"] = 29
55
extra["targetSdkVersion"] = 29
6-
extra["kotlinVersion"] = "1.3.61"
76

87
repositories {
98
mavenCentral()
@@ -12,10 +11,9 @@ buildscript {
1211
}
1312

1413
dependencies {
15-
val kotlinVersion = property("kotlinVersion") as String
16-
classpath("com.android.tools.build:gradle:3.6.1")
17-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
18-
classpath("com.otaliastudios.tools:publisher:0.1.5")
14+
classpath("com.android.tools.build:gradle:4.0.1")
15+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0")
16+
classpath("com.otaliastudios.tools:publisher:0.3.3")
1917
}
2018
}
2119

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ _pages
33
*.sw?
44
.sass-cache
55
.jekyll-metadata
6+
Gemfile.lock

docs/Gemfile.lock

Lines changed: 0 additions & 248 deletions
This file was deleted.

docs/_about/changelog.md

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

12+
### v0.4.0
13+
14+
- Refreshed dependencies, Kotlin 1.4.0 [#10][10]
15+
16+
<https://github.com/natario1/Elements/compare/v0.3.7...v0.4.0>
17+
1218
#### v0.3.7
1319

1420
First versioned release.
1521

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

18-
[38]: https://github.com/natario1/Elements/pull/38
24+
[10]: https://github.com/natario1/Elements/pull/10

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ google_analytics_id: 'UA-155077779-6'
1212
google_site_verification: '4x49i17ABIrSvUl52SeL0-t0341aTnWWaC62-FYCRT4'
1313
github: [metadata] # TODO What's this?
1414
github_repo: Elements
15-
github_version: 0.3.7
15+
github_version: 0.4.0
1616
github_branch: master
1717
baseurl: '/Elements' # Keep as an empty string if served up at the root
1818
collections:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)