Skip to content

Commit 6687675

Browse files
committed
Parcelize Rule entity.
1 parent 804ee96 commit 6687675

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionUrl=https\://downloads.gradle.org/distributions/gradle-7.6-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

library/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-parcelize'
34

45
apply from: "${rootDir.path}/gradle/publish.gradle"
56

Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
package com.absinthe.rulesbundle
22

3+
import android.os.Parcelable
34
import androidx.annotation.DrawableRes
5+
import kotlinx.parcelize.Parcelize
46

7+
@Parcelize
58
data class Rule(
69
val label: String,
710
@DrawableRes val iconRes: Int,
811
val descriptionUrl: String?,
912
val regexName: String?,
1013
val isSimpleColorIcon: Boolean
11-
)
14+
) : Parcelable

0 commit comments

Comments
 (0)