forked from droidknights/DroidKnights2020_App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/droidknights/DroidKnights…
…2020_App into feature/issue/droidknights#103 � Conflicts: � androidapp/app/src/main/java/com/droidknights/app2020/binding/ViewBinding.kt � androidapp/app/src/main/java/com/droidknights/app2020/data/Session.kt � androidapp/app/src/main/res/layout/item_session.xml
- Loading branch information
Showing
101 changed files
with
1,925 additions
and
638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
androidapp/app/src/main/java/com/droidknights/app2020/common/AssetUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.droidknights.app2020.common | ||
|
||
import android.content.Context | ||
import com.google.gson.Gson | ||
import timber.log.Timber | ||
|
||
|
||
inline fun <reified ENTITY> Context.loadJson(gson: Gson, fileName: String): ENTITY { | ||
val result = assets.open(fileName) | ||
.bufferedReader() | ||
.use { it.readText() } | ||
|
||
return gson.fromJson(result, ENTITY::class.java) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
androidapp/app/src/main/java/com/droidknights/app2020/data/EventHistory.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.droidknights.app2020.data | ||
|
||
data class EventHistory( | ||
val year: Int, | ||
val date: String, | ||
val url: String, | ||
val isActive: Boolean = false | ||
) |
19 changes: 10 additions & 9 deletions
19
androidapp/app/src/main/java/com/droidknights/app2020/data/Session.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package com.droidknights.app2020.data | ||
|
||
data class Session( | ||
var id: String = "", | ||
var track: Int = 0, | ||
var title: String = "", | ||
var tag: List<String>? = emptyList(), | ||
var time: String = "", | ||
var contents: String? = "", | ||
var speakerName: String? = "", | ||
var speakerDesc: String? = "", | ||
var speakerProfile: String? = "", | ||
val id: String = "", | ||
val track: Int = 0, | ||
val title: String = "", | ||
val tag: List<String>? = emptyList(), | ||
val time: String = "", | ||
val contents: String? = "", | ||
val speakerName: String? = "", | ||
val videoLink: String? = "", | ||
val qnaLink: String? = "", | ||
val speaker: List<Speaker>? = null, | ||
var isLive:Boolean = false | ||
) |
6 changes: 3 additions & 3 deletions
6
androidapp/app/src/main/java/com/droidknights/app2020/data/Speaker.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package com.droidknights.app2020.data | ||
|
||
data class Speaker( | ||
val id: String, | ||
val name: String, | ||
val profileUrl: String, | ||
val description: String | ||
val profileImage: String, | ||
val introduce: String, | ||
val belong: String? | ||
) |
Oops, something went wrong.