Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LifeLogger
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
LifeLogger
Commits
b9fd5509
Unverified
Commit
b9fd5509
authored
Feb 17, 2019
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TODO/Debug data
parent
a1a5fba6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
13 deletions
+17
-13
README.md
README.md
+1
-0
TODO.md
TODO.md
+8
-4
DataPoint.kt
app/src/main/java/fr/plnech/lifelogger/model/DataPoint.kt
+2
-2
HomeActivity.kt
app/src/main/java/fr/plnech/lifelogger/ui/HomeActivity.kt
+6
-7
No files found.
README.md
View file @
b9fd5509
...
@@ -14,6 +14,7 @@ LifeLogger helps you log your life.
...
@@ -14,6 +14,7 @@ LifeLogger helps you log your life.
-
A
**DataPoint**
is an event pertaining to one of your Logs.
-
A
**DataPoint**
is an event pertaining to one of your Logs.
-
Example: you climbed stairs to the 5th floor.
-
Example: you climbed stairs to the 5th floor.
-
Example: you saw a friend (Julien) today.
-
Example: you saw a friend (Julien) today.
-
Example: you felt relaxed today.
## Contributing
## Contributing
...
...
TODO.md
View file @
b9fd5509
# Roadmap
# Roadmap
# V0.1
# V0.1
-
Validate MVP model
-
[
x
]
Validate MVP model
-
MVP display
-
[
]
MVP display
-
MVP storage
-
[
]
MVP storage
-
MVP Distribution
-
[
]
MVP Distribution
# V0.5
# V0.5
-
More generic model
-
More generic model
-
Named events: saw friend
-
+1: Brushed teeth
-
Counts: climbed X floors
-
Boolean events?
-
Better display
-
Better display
-
Online storage
-
Online storage
-
Material design
-
Material design
app/src/main/java/fr/plnech/lifelogger/model/DataPoint.kt
View file @
b9fd5509
...
@@ -28,8 +28,8 @@ data class DataPoint(
...
@@ -28,8 +28,8 @@ data class DataPoint(
private
val
metadata
:
HashMap
<
String
,
Any
>
=
HashMap
()
private
val
metadata
:
HashMap
<
String
,
Any
>
=
HashMap
()
)
{
)
{
constructor
(
name
:
String
,
count
:
Int
=
NONE
)
:
this
()
{
constructor
(
name
:
String
?
,
count
:
Int
=
NONE
)
:
this
()
{
metadata
[
"name"
]
=
name
name
?.
let
{
metadata
[
"name"
]
=
name
}
metadata
[
"count"
]
=
count
metadata
[
"count"
]
=
count
}
}
...
...
app/src/main/java/fr/plnech/lifelogger/ui/HomeActivity.kt
View file @
b9fd5509
...
@@ -72,26 +72,25 @@ class HomeActivity : AppCompatActivity() {
...
@@ -72,26 +72,25 @@ class HomeActivity : AppCompatActivity() {
}
}
private
fun
generateDebugData
():
ArrayList
<
Log
>
{
private
fun
generateDebugData
():
ArrayList
<
Log
>
{
va
r
logs
:
ArrayList
<
Log
>
=
ArrayList
()
va
l
logs
:
ArrayList
<
Log
>
=
ArrayList
()
val
stairs
=
Log
(
"Stairway to heaven"
)
val
stairs
=
Log
(
"Stairway to heaven"
)
stairs
.
addPoint
(
DataPoint
(
"stairs"
,
7
))
stairs
.
addPoint
(
DataPoint
(
"stairs"
,
7
))
stairs
.
addPoint
(
DataPoint
(
"lift"
))
stairs
.
addPoint
(
DataPoint
(
"stairs"
,
4
))
stairs
.
addPoint
(
DataPoint
(
"stairs"
,
4
))
stairs
.
addPoint
(
DataPoint
(
"stairs"
,
4
))
stairs
.
addPoint
(
DataPoint
(
"stairs"
,
4
))
stairs
.
addPoint
(
DataPoint
(
"lift"
))
val
moods
=
Log
(
"MoodBoard"
)
val
moods
=
Log
(
"MoodBoard"
)
moods
.
addPoint
(
DataPoint
(
"happy"
))
moods
.
addPoint
(
DataPoint
(
"happy"
))
moods
.
addPoint
(
DataPoint
(
"focused"
))
moods
.
addPoint
(
DataPoint
(
"focused"
))
moods
.
addPoint
(
DataPoint
(
"relax"
))
moods
.
addPoint
(
DataPoint
(
"relax"
))
val
mind
=
Log
(
"MindBoard"
)
val
friends
=
Log
(
"Friends"
)
mind
.
addPoint
(
DataPoint
(
"HeadSpace"
,
10
))
friends
.
addPoint
(
DataPoint
(
"Julien"
))
mind
.
addPoint
(
DataPoint
(
"HeadSpace"
,
5
))
friends
.
addPoint
(
DataPoint
(
"Alex"
))
friends
.
addPoint
(
DataPoint
(
"Simon"
))
logs
.
add
(
stairs
)
logs
.
add
(
stairs
)
logs
.
add
(
moods
)
logs
.
add
(
moods
)
logs
.
add
(
mind
)
logs
.
add
(
friends
)
return
logs
return
logs
}
}
}
}
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