Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
8bebdf8
screentime chart e arc progress fix
rodrigograc4 Jun 23, 2025
542f1c0
edit profile feito
rodrigograc4 Jun 23, 2025
d993c17
Import expo maps
TRProjects98 Jun 23, 2025
10b37f0
Revert "Import expo maps"
TRProjects98 Jun 23, 2025
81c83c9
delete account feito
rodrigograc4 Jun 23, 2025
ff8525e
Add notification icon and update app icon paths in manifest and app.json
TRProjects98 Jun 23, 2025
d20fa97
Merge branch 'final_adjustments' of https://github.com/LumiCheck-App/…
TRProjects98 Jun 23, 2025
403cd78
Update launcher icons: replace webp files with png, adjust xml format…
TRProjects98 Jun 23, 2025
1f9fa74
Enhance modals: add buttonText prop to MonotorizationModal, adjust Te…
TRProjects98 Jun 24, 2025
88102ca
Enhance loading and error states in ReportPage: add background gradie…
TRProjects98 Jun 24, 2025
ff66124
Enhance loading and error states in AllLumiQuestions: add background …
TRProjects98 Jun 24, 2025
b59d306
Refactor MonotorizationModal and ReportPage: remove console logs, add…
TRProjects98 Jun 24, 2025
4e17a94
trophy page
rodrigograc4 Jun 24, 2025
f1f88bc
Merge branch 'final_adjustments' of https://github.com/LumiCheck-App/…
rodrigograc4 Jun 24, 2025
79fa036
trophy page final fix and ttrophy details
rodrigograc4 Jun 24, 2025
543801f
all trophies
rodrigograc4 Jun 24, 2025
de72d8f
notificacao com imagem
rodrigograc4 Jun 24, 2025
7a62dfa
feat(QuestionPage): hide floating bubble on component mount, added te…
TRProjects98 Jun 24, 2025
4f45ec3
Merge branch 'final_adjustments' of https://github.com/LumiCheck-App/…
TRProjects98 Jun 24, 2025
8fd5a3c
feat(Notification): handle notification open events and navigate to Q…
TRProjects98 Jun 24, 2025
a9c2690
token do screentime
rodrigograc4 Jun 24, 2025
3764ff9
better login slice
rodrigograc4 Jun 24, 2025
f2546ca
meu deus
rodrigograc4 Jun 24, 2025
b9287a0
so falta os 3 trofeus de screentime
rodrigograc4 Jun 24, 2025
79f8614
numero de trofeus
rodrigograc4 Jun 24, 2025
c0b7a1a
api url no env
rodrigograc4 Jun 24, 2025
bdc752a
fix gradle versions and app.json delete
rodrigograc4 Jun 25, 2025
9a20caf
Revert "fix gradle versions and app.json delete"
rodrigograc4 Jun 25, 2025
41b8a69
fix bubble
rodrigograc4 Jun 25, 2025
3b96803
fix sockets
rodrigograc4 Jun 25, 2025
a5fa792
48
rodrigograc4 Jun 25, 2025
e442bd8
final stuff
rodrigograc4 Jun 25, 2025
5bc9807
add slicer
rodrigograc4 Jun 25, 2025
5f5e861
delete refresh token
rodrigograc4 Jun 25, 2025
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
4 changes: 4 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
</intent>
</queries>
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:supportsRtl="true">
<meta-data android:name="com.google.android.geo.API_KEY" android:value="AIzaSyDZ6fnTw5b3w9vI3g2OaEDcCcdUaIRnC8s"/>
<meta-data android:name="expo.modules.updates.ENABLED" android:value="false"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS" android:value="0"/>
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_notification" />
<activity android:name=".MainActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:theme="@style/Theme.App.SplashScreen" android:exported="true" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class FloatingBubbleService : Service() {
closeView?.visibility = View.GONE
if (isOverCloseArea()) {
stopSelf()
} else {
} else if (isDragging) {
snapToEdge(params)
}

Expand Down
8 changes: 6 additions & 2 deletions android/app/src/main/java/com/anonymous/lumicheck/MyWorker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ class MyWorker(context: Context, workerParams: WorkerParameters) : Worker(contex
return try {
val userId = prefs.getInt("USER_ID", -1).takeIf { it != -1 }
?: return Result.success()

val token = prefs.getString("AUTH_TOKEN", null)
?: return Result.success()

val screenData = getScreenTimeData()
val success = sendToApi(userId, screenData)
val success = sendToApi(userId, token, screenData)

if (success) Result.success() else Result.retry()
} catch (e: Exception) {
Expand All @@ -46,13 +49,14 @@ class MyWorker(context: Context, workerParams: WorkerParameters) : Worker(contex
}
}

private fun sendToApi(userId: Int, data: ScreenTimeData): Boolean {
private fun sendToApi(userId: Int, token: String, data: ScreenTimeData): Boolean {
return try {
val jsonBody = createRequestBody(userId, data)
val request = Request.Builder()
.url("https://king-prawn-app-3re4n.ondigitalocean.app/screentime/")
.post(jsonBody)
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer ${token}")
.build()

client.newCall(request).execute().use { response ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ class WorkManagerModule(reactContext: ReactApplicationContext) : ReactContextBas
prefs.edit().putInt("USER_ID", userId).apply()
}

@ReactMethod
fun setAuthToken(token: String) {
prefs.edit().putString("AUTH_TOKEN", token).apply()
}

@ReactMethod
fun startWork() {
try {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
13 changes: 10 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"slug": "lumicheck",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/lumis/Lumi4k.png",
"icon": "./assets/icons/icon.png",
"userInterfaceStyle": "automatic",
"newArchEnabled": true,
"scheme": "lumicheck",
"splash": {
"image": "./assets/lumis/Lumi4k.png",
"image": "./assets/icons/icon.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
Expand Down Expand Up @@ -43,7 +43,14 @@
},
"plugins": [
"expo-font",
"expo-dev-client"
"expo-dev-client",
"@react-native-firebase/app",
[
"@react-native-firebase/messaging",
{
"backgroundMessageHandler": "./src/firebase-messaging.js"
}
]
]
}
}
1 change: 0 additions & 1 deletion assets/trophies/apenantes.svg
Diff not rendered.
Loading