Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dunbar
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
Dunbar
Commits
d1e16902
Unverified
Commit
d1e16902
authored
Nov 16, 2019
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: Add serialization for future use
parent
787746df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
build.gradle
app/build.gradle
+2
-1
Friend.kt
app/src/main/java/fr/plnech/dunbar/model/Friend.kt
+1
-0
build.gradle
build.gradle
+1
-0
No files found.
app/build.gradle
View file @
d1e16902
apply
plugin:
'com.android.application'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'kotlinx-serialization'
android
{
compileSdkVersion
28
...
...
@@ -26,6 +26,7 @@ android {
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation
"org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.13.0"
// JVM dependency
implementation
'androidx.appcompat:appcompat:1.1.0'
implementation
'androidx.constraintlayout:constraintlayout:1.1.3'
implementation
'com.google.android.material:material:1.0.0'
...
...
app/src/main/java/fr/plnech/dunbar/model/Friend.kt
View file @
d1e16902
...
...
@@ -6,6 +6,7 @@ import android.net.Uri
import
android.provider.ContactsContract.Contacts
import
java.util.*
//@Serializable
data class
Friend
(
val
map
:
Map
<
String
,
String
?>
=
mutableMapOf
(),
val
photo
:
Bitmap
?
=
null
)
{
override
fun
toString
():
String
=
"$name"
...
...
build.gradle
View file @
d1e16902
...
...
@@ -10,6 +10,7 @@ buildscript {
dependencies
{
classpath
'com.android.tools.build:gradle:3.5.1'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath
"org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment