Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin 1.5.20 #38

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ plugins {
buildscript {
dependencies {
// workaround for KMP plugin to find android classes
classpath("com.android.tools.build:gradle:7.0.0-beta03")
classpath("com.android.tools.build:gradle:7.0.0-beta04")
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ kotlin.native.ignoreDisabledTargets=true
android.useAndroidX=true
android.enableJetifier=true
spotlessVersion=4.0.1
agpVersion=7.0.0-beta03
agpVersion=7.0.0-beta04
ktlintVersion=9.2.1
kotlinVersion=1.5.10
kotlinVersion=1.5.20
kotlin.mpp.stability.nowarn=true
3 changes: 0 additions & 3 deletions sqlitebindings-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,5 @@ kotlin {
implementation(kotlin("stdlib"))
}
}
all {
languageSettings.enableLanguageFeature("InlineClasses")
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
*/
package com.birbit.sqlite3

import kotlin.jvm.JvmInline

// see https://www.sqlite.org/c3ref/c_deny.html
inline class AuthResult(val value: Int) {
@JvmInline
value class AuthResult(val value: Int) {
companion object {
val OK = AuthResult(0)
val DENY = AuthResult(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
*/
package com.birbit.sqlite3

import kotlin.jvm.JvmInline

// see https://www.sqlite.org/c3ref/c_blob.html
inline class ColumnType(val value: Int) {
@JvmInline
value class ColumnType(val value: Int) {
companion object {
val INTEGER = ColumnType(1)
val FLOAT = ColumnType(2)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
*/
package com.birbit.sqlite3

import kotlin.jvm.JvmInline

// commonized sqlite APIs to build the rest in common, or most at least
inline class ResultCode(val value: Int) {
@JvmInline
value class ResultCode(val value: Int) {
companion object {
val OK = ResultCode(0) /* Successful result */
val ERROR = ResultCode(1) /* Generic error */
Expand Down