Skip to content

Commit

Permalink
Merge pull request #88 from wada811/release/8.0.0
Browse files Browse the repository at this point in the history
Release 8.0.0
  • Loading branch information
wada811 authored Jul 3, 2024
2 parents d435f6f + 444680e commit 52ceacb
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 55 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
java-version: 17

- name: Publish to MavenCentral
run: ./gradlew --max-workers 1 publishReleasePublicationToMavenLocal publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
Expand Down
14 changes: 7 additions & 7 deletions DataBinding-ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ apply from: "${rootDir}/publish-module.gradle"

android {
namespace "com.wada811.databindingktx"
compileSdkVersion 33
compileSdk 34
defaultConfig {
minSdkVersion 21
targetSdkVersion 33
minSdk 21
targetSdk 34
}
buildFeatures {
dataBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.24"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.0.0"
implementation 'androidx.fragment:fragment-ktx:1.8.1'
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import android.view.View
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import com.wada811.databindingktx.R
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KProperty

Expand All @@ -25,7 +24,7 @@ fun <T : ViewDataBinding> Fragment.dataBinding(): ReadOnlyProperty<Fragment, T>
}
}

fun <T : ViewDataBinding> Fragment.withBinding(withBinding: (binding: T) -> Unit) {
inline fun <T : ViewDataBinding> Fragment.withBinding(withBinding: (binding: T) -> Unit) {
view?.let { view ->
val binding = DataBindingUtil.bind<T>(view)!!.also {
it.lifecycleOwner = viewLifecycleOwner
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ plugins {
id 'com.android.application' version '8.5.0' apply false
id 'com.android.library' version '8.5.0' apply false
id "com.diffplug.spotless" version "6.25.0" apply false
id 'org.jetbrains.kotlin.android' version '1.9.24' apply false
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
id 'org.jetbrains.kotlin.android' version '2.0.0' apply false
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
}

apply from: "${rootDir}/publish-root.gradle"
6 changes: 0 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@ kapt.include.compile.classpath=false
# Incremental annotation processing in KAPT
# https://blog.jetbrains.com/kotlin/2019/04/kotlin-1-3-30-released/
kapt.incremental.apt=true
# Incremental annotation processing for DataBinding
# https://developer.android.com/studio/releases/gradle-plugin#incremental_ap
android.databinding.incremental=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
#android.enableJetifier=true
# Cacheable unit tests
# https://developer.android.com/studio/releases/gradle-plugin#cacheable_tests
android.testConfig.useRelativePath=true
2 changes: 1 addition & 1 deletion publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'signing'
ext {
PUBLISH_GROUP_ID = 'com.wada811.databindingktx'
PUBLISH_ARTIFACT_ID = 'databindingktx'
PUBLISH_VERSION = '7.0.0'
PUBLISH_VERSION = '8.0.0'
}

android {
Expand Down
15 changes: 11 additions & 4 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ plugins {

android {
namespace "com.wada811.databindingktx.sample"
compileSdkVersion 33
compileSdk 34
defaultConfig {
applicationId "com.wada811.databindingktx.sample"
minSdkVersion 21
targetSdkVersion 33
minSdk 21
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -29,10 +29,17 @@ android {
buildFeatures {
dataBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.24"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.0.0"
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation project(':DataBinding-ktx')
}

0 comments on commit 52ceacb

Please sign in to comment.