Skip to content
Merged

Dev #26

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
baac8b1
routes basicas feitas
rodrigograc4 Dec 27, 2024
126a454
navbar done
rodrigograc4 Dec 27, 2024
43ab58d
Merge pull request #1 from LumiCheck-App/improve/navbar
rodrigograc4 Dec 27, 2024
68f101c
commit
rodrigograc4 Dec 28, 2024
bdab98b
Welcome page with carroussel
TRProjects98 Dec 28, 2024
fbe59dd
hsomepage quase feita
rodrigograc4 Dec 28, 2024
e61bf2f
help contactos feitos
rodrigograc4 Dec 28, 2024
8d19229
Carroussel Navigation and Stylezation updated
TRProjects98 Dec 28, 2024
08fa125
From Layout Created
TRProjects98 Dec 28, 2024
b9ea1f4
Merge branch 'dev' into Improve/Welcom-page
rodrigograc4 Dec 30, 2024
b8948b1
Merge pull request #3 from LumiCheck-App/Improve/Welcom-page
rodrigograc4 Dec 30, 2024
4eabe42
homepage done wioth component
rodrigograc4 Dec 31, 2024
9965d37
Merge pull request #4 from LumiCheck-App/new/homepage
rodrigograc4 Dec 31, 2024
07476cd
trophy page almost complete
rodrigograc4 Dec 31, 2024
6685b23
achievements done
rodrigograc4 Jan 2, 2025
1667163
Login form created || Reset password modal created || Register bubble…
TRProjects98 Jan 2, 2025
db23cb1
Merge branch 'dev' into Improve/Login-page
rodrigograc4 Jan 2, 2025
42edf4d
Merge pull request #5 from LumiCheck-App/Improve/Login-page
rodrigograc4 Jan 2, 2025
33ab9e8
alltaskspage done
rodrigograc4 Jan 2, 2025
75c4bc4
fix text error
rodrigograc4 Jan 2, 2025
596178b
Merge pull request #8 from LumiCheck-App/new/trophy-page
TRProjects98 Jan 2, 2025
dc0f648
Register Created || Terms and Conditions Modal Created || react-nativ…
TRProjects98 Jan 3, 2025
2d53145
Function handleRegistration updated
TRProjects98 Jan 3, 2025
e3d8723
Merge pull request #9 from LumiCheck-App/new/register-page
TRProjects98 Jan 3, 2025
d13b6c2
js de psicologos
rodrigograc4 Jan 3, 2025
80903ef
mapa a funcionar
rodrigograc4 Jan 3, 2025
477dc31
add contactos
rodrigograc4 Jan 3, 2025
c5aefd4
Tirar contactos smepre bugados
rodrigograc4 Jan 3, 2025
1508d2c
selecao de distrito e link para uma api que vai ser util
rodrigograc4 Jan 3, 2025
58223b6
script python
rodrigograc4 Jan 4, 2025
af28500
psicologos 1 done
rodrigograc4 Jan 4, 2025
625129c
psicologos 2 done
rodrigograc4 Jan 4, 2025
cd05637
psicolgos juntos
rodrigograc4 Jan 4, 2025
92b83b7
sem pais repetido
rodrigograc4 Jan 4, 2025
49a6723
psicolgos ficheiro limpo
rodrigograc4 Jan 4, 2025
e7d4d38
mapa e contactos a funcionar
rodrigograc4 Jan 5, 2025
12788a6
fixed css
rodrigograc4 Jan 5, 2025
7730a5c
pin selecionado almost done
rodrigograc4 Jan 5, 2025
22b80aa
melhor estilo
rodrigograc4 Jan 5, 2025
d0af86a
TUBLEDUM BAGUETTE
rodrigograc4 Jan 5, 2025
4adbc01
tentar mover telefones
rodrigograc4 Jan 5, 2025
b0fff15
telefone retirado com sucesso
rodrigograc4 Jan 5, 2025
15aaf12
estilos
rodrigograc4 Jan 5, 2025
db75b44
telefone a ligar done
rodrigograc4 Jan 5, 2025
74fd233
endpoint tarefas testing
rodrigograc4 Jan 6, 2025
e0989e0
help page done
rodrigograc4 Jan 6, 2025
3d74388
help page minor changes
rodrigograc4 Jan 7, 2025
1893f65
Merge pull request #10 from LumiCheck-App/new/help-page
rodrigograc4 Jan 7, 2025
b03cdc0
SwipeableCards and Rage Questions created
TRProjects98 Jan 8, 2025
7b79118
Card Image Error Corrected
TRProjects98 Jan 8, 2025
3ab9d31
First Questionnare Finished
TRProjects98 Jan 8, 2025
495caf3
Login and Register Redirects updated
TRProjects98 Jan 8, 2025
fa8b4f4
Merge branch 'dev' into new/first-questionnaire
rodrigograc4 Jan 9, 2025
517ca8e
Merge pull request #11 from LumiCheck-App/new/first-questionnaire
TRProjects98 Jan 9, 2025
d603e5e
pagina perfil feita
rodrigograc4 Jan 10, 2025
272384d
pagina trofeu
rodrigograc4 Jan 11, 2025
e109e5b
app.js changes and settings page started
rodrigograc4 Jan 11, 2025
cd28ddf
Moni Progress, LineChart and Most Used Apps created in ReportPage
TRProjects98 Jan 11, 2025
2185bb3
settings page
rodrigograc4 Jan 11, 2025
d4f408c
comecar edit profile
rodrigograc4 Jan 12, 2025
7fd9848
edit profile finished
rodrigograc4 Jan 12, 2025
7f28370
all lumi questions
rodrigograc4 Jan 12, 2025
f8e05f2
lumi 3 colors
rodrigograc4 Jan 12, 2025
db06a16
all trophies page
rodrigograc4 Jan 12, 2025
5234deb
prevent default nas tabs com stack
rodrigograc4 Jan 12, 2025
2879277
Merge pull request #12 from LumiCheck-App/new/profile-page
rodrigograc4 Jan 12, 2025
6d93b44
Lumi animation
rodrigograc4 Jan 12, 2025
7a9fda1
animate icons
rodrigograc4 Jan 12, 2025
df9d6e0
animacao full completed
rodrigograc4 Jan 12, 2025
b69bc68
all svgs
rodrigograc4 Jan 12, 2025
655cb5a
Lumi svg fix no homepage
rodrigograc4 Jan 12, 2025
93a3eaf
chest and trophy blocked upload
rodrigograc4 Jan 12, 2025
df15888
meter trophys como svgs
rodrigograc4 Jan 12, 2025
ab1698e
alltrophies fixed
rodrigograc4 Jan 13, 2025
c42af52
degrade na topbar
rodrigograc4 Jan 13, 2025
482cc8d
minor ajusts
rodrigograc4 Jan 13, 2025
037850a
card de monitorizacao comecado
rodrigograc4 Jan 13, 2025
7e48e5f
trophie details dinamico
rodrigograc4 Jan 13, 2025
3e376a6
trophies page dinamica
rodrigograc4 Jan 13, 2025
2144b8d
all trophies para detail done
rodrigograc4 Jan 13, 2025
d206aa0
bau ter detail tambem
rodrigograc4 Jan 13, 2025
4f96710
chest detail fix
rodrigograc4 Jan 13, 2025
9756189
LineChart Improved
TRProjects98 Jan 13, 2025
b9bd6b0
Merge branch 'dev' into new/report-page
rodrigograc4 Jan 13, 2025
11457d6
Merge pull request #13 from LumiCheck-App/new/report-page
rodrigograc4 Jan 13, 2025
7bdb966
Merge branch 'dev' into improve/homepage
rodrigograc4 Jan 13, 2025
8628906
Merge pull request #14 from LumiCheck-App/improve/homepage
rodrigograc4 Jan 13, 2025
1f0a0ba
expo install fixed
rodrigograc4 Jan 13, 2025
5f05d43
welcome page fix
rodrigograc4 Jan 13, 2025
6e87600
lumi questions no report
rodrigograc4 Jan 13, 2025
9f95ba4
start animation
rodrigograc4 Jan 13, 2025
5abda85
animacao quase toda feita
rodrigograc4 Jan 13, 2025
5f1035f
animation corrigida
rodrigograc4 Jan 13, 2025
e2007dc
Merge pull request #15 from LumiCheck-App/improve/report-page
rodrigograc4 Jan 13, 2025
1c08334
svgsssss
rodrigograc4 Jan 13, 2025
fc0d925
homepage with monitor card
rodrigograc4 Jan 13, 2025
1351539
var is Monitoring
rodrigograc4 Jan 13, 2025
676d6ae
all pngs now svgs
rodrigograc4 Jan 14, 2025
a83ab93
Merge pull request #16 from LumiCheck-App/change/pngs-to-svgs
rodrigograc4 Jan 14, 2025
85b681b
BackgroundGradientComponent
rodrigograc4 Jan 14, 2025
f769bc2
erro de font no android fixed
rodrigograc4 Jan 14, 2025
3afc11b
Score Spacing
TRProjects98 Jan 15, 2025
15dee1a
Lumi Gaga
rodrigograc4 Jan 15, 2025
4380eed
artigos done
rodrigograc4 Jan 15, 2025
38f8773
register fix
rodrigograc4 Jan 15, 2025
25c07c4
notifications done
rodrigograc4 Jan 16, 2025
4dbc208
Merge pull request #17 from LumiCheck-App/fix/flows-and-consistency
rodrigograc4 Jan 16, 2025
6e6086f
Update README.md
rodrigograc4 Jan 16, 2025
6c9202a
ReportPage accessability changes
TRProjects98 Feb 26, 2025
6d48067
New Accessability ReportPage Update
TRProjects98 Mar 3, 2025
fdb2ff5
Prettier Configuration || Format Code || Workflow
TRProjects98 Mar 3, 2025
36b7150
Workflow Updated Branch
TRProjects98 Mar 3, 2025
92dbd51
Merge pull request #19 from LumiCheck-App/new/prettier-configuration
TRProjects98 Mar 3, 2025
84177ea
revisao 1 login e register
rodrigograc4 Mar 15, 2025
c93fe9b
everythiong revision 2 except feedback
rodrigograc4 Mar 15, 2025
794a063
feedback
rodrigograc4 Mar 15, 2025
2c9c22d
onboarding feito
rodrigograc4 Mar 17, 2025
cd40da7
revision 3 changes
rodrigograc4 Mar 19, 2025
1fe9ee1
implementar redux e login
rodrigograc4 Mar 20, 2025
72b587e
Update accessibility labels and translations in various components
TRProjects98 Mar 20, 2025
2dad59f
Enhance accessibility and improve error handling in login and registr…
TRProjects98 Mar 20, 2025
a0f5b93
Merge branch 'SCRUM-2-Alterações-no-frontend' into new/accessibility
rodrigograc4 Mar 24, 2025
fb83b60
Merge pull request #20 from LumiCheck-App/new/accessibility
rodrigograc4 Mar 24, 2025
0f33d78
Merge branch 'dev' into SCRUM-2-Alterações-no-frontend
rodrigograc4 Mar 24, 2025
c2ed283
Merge pull request #21 from LumiCheck-App/SCRUM-2-Alterações-no-frontend
rodrigograc4 Mar 24, 2025
9b9df1f
fix
rodrigograc4 Mar 24, 2025
612bd68
login with token done
rodrigograc4 Mar 26, 2025
0ae3916
logout a funcionar
rodrigograc4 Mar 26, 2025
3d0d6fd
estilos register feitos
rodrigograc4 Mar 26, 2025
0285685
pretty things
rodrigograc4 Mar 26, 2025
7bff89b
fix onboarding
rodrigograc4 Mar 27, 2025
63c6d19
pretty login
rodrigograc4 Mar 27, 2025
fd8e44d
register
rodrigograc4 Apr 1, 2025
084d79f
start fixing questionare
rodrigograc4 Apr 1, 2025
2085e0e
some fixs
rodrigograc4 Apr 1, 2025
8740fcc
digital habits, questionaire, onboarding
rodrigograc4 Apr 14, 2025
4e9ab53
some previous things fixs
rodrigograc4 May 23, 2025
e579a8a
tasks funcionais com redux
rodrigograc4 May 23, 2025
732743e
sockets e trofeu e notificao de trofeu
rodrigograc4 May 23, 2025
0ab05a2
fix questions e digital habits
rodrigograc4 May 28, 2025
121dd6f
change url
rodrigograc4 May 30, 2025
d011c03
reportpage e tasks tudo feito dinamico
rodrigograc4 May 31, 2025
ed5bb36
numero de perguntas certo
rodrigograc4 May 31, 2025
082993f
fix read me
rodrigograc4 May 31, 2025
dacb4d6
fix read me
rodrigograc4 May 31, 2025
c948bcd
emojis
rodrigograc4 May 31, 2025
e3c53da
Merge pull request #23 from LumiCheck-App/new/connect-api
rodrigograc4 May 31, 2025
b9c53b9
dar fix no url
rodrigograc4 Jun 1, 2025
a095fdf
Android Project Setup and Build
TRProjects98 Jun 8, 2025
0498dd3
ScreenTime Fetching Module Imported || Displaying dynamic content in …
TRProjects98 Jun 10, 2025
b97b590
Add MonotorizationModal component and integrate it into HomePage
TRProjects98 Jun 15, 2025
a6a80ed
Implement screen time permission checks and monitoring state manageme…
TRProjects98 Jun 19, 2025
2f3be6a
feat: integrate Firebase Cloud Messaging and update dependencies
TRProjects98 Jun 20, 2025
45a0a4f
feat: implement Floating Bubble feature with overlay permissions and …
TRProjects98 Jun 21, 2025
31bec37
firebase token a funfar
rodrigograc4 Jun 21, 2025
08c00f4
screentime a funcionar
rodrigograc4 Jun 21, 2025
eb9b063
tirar logs
rodrigograc4 Jun 22, 2025
34047d1
feat: enhance Floating Bubble functionality with app linking and over…
TRProjects98 Jun 22, 2025
1edcdf9
aaa
rodrigograc4 Jun 22, 2025
10c86e1
updated is moinitoring
rodrigograc4 Jun 22, 2025
c4c45e8
atualizar slice
rodrigograc4 Jun 22, 2025
7af42c2
fix modal
rodrigograc4 Jun 22, 2025
2b3e9e7
commit
rodrigograc4 Jun 22, 2025
b9e5d14
refactor: update monitoring status dispatch in MonotorizationModal an…
TRProjects98 Jun 22, 2025
81ab283
fix: correct spelling in MonotorizationModal and update state managem…
TRProjects98 Jun 22, 2025
630d754
profile page e nome da homapge
rodrigograc4 Jun 23, 2025
de79859
Merge pull request #24 from LumiCheck-App/new/native-modules
rodrigograc4 Jun 23, 2025
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
c3b9127
Merge pull request #25 from LumiCheck-App/final_adjustments
rodrigograc4 Jun 27, 2025
5f82488
some minor fixs
rodrigograc4 Jun 27, 2025
b9f11ee
fmais alguns fixs
rodrigograc4 Jun 27, 2025
450847f
animacoes e outras coisitas
rodrigograc4 Jun 27, 2025
4eb7325
apk
rodrigograc4 Jun 27, 2025
f752fc6
raed me
rodrigograc4 Jun 27, 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
26 changes: 26 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Prettier Code Formatter

on:
push:
branches:
- dev

jobs:
prettier:
name: Run Prettier on Push
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set Up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: npm install

- name: Run Prettier Check
run: npm run format-check
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

#envs
.env
.env.*

# dependencies
node_modules/

# Android Studio
.idea/

# Expo
.expo/
dist/
Expand Down
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
build
dist
package-lock.json
yarn.lock
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2
}
46 changes: 26 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,45 @@
# Frontend

Bem-vindo ao Frontend da LumiCheck!
Bem-vindo ao Frontend da **LumiCheck**! ✨

---

## Como Rodar o Projeto
## 📱 Como Instalar a App

1. Ter o Node.js instalado.
2. Instala as dependências:
- Fazer download do apk que está no link abaixo e instala-lo no teu dispositivo Android.
```bash
https://raw.githubusercontent.com/LumiCheck-App/Frontend/release/lumicheck.apk
```

---

## ⚙️ Como Executar o Projeto

1. Clona este repositório para o teu pc.
2. Ter uma versão recente do Node.js instalada.
3. Instala as dependências:
```bash
npm install
npx expo install @react-native-firebase/app
npx expo install @react-native-firebase/messaging
```
3. Para iniciar o projeto:
4. Para dar build do projeto:
```bash
npm start
cd android
./gradlew clean
cd ..
npx expo run:android
```

---

## Como Visualizar o Projeto

### 1. No Telemóvel (Smartphone)
- Após rodar `npm start`, um QR Code vai aparecer no terminal.
- Dá Scan do QR Code no app Expo Go.

> **Nota:** Sempre que fizeres alterações no código, tens de atualizar manualmente o app no telemóvel (clicando na tecla 'r' no terminal).
## 📱 Como Visualizar o Projeto

### 2. Versão Web
- Quando `npm start` é executado, podes clicar no 'w' para abrir a versão web.
- Pressiona `F12` para acessar as ferramentas de dev.
- No painel de ferramentas, seleciona o modo "Dispositivo Móvel" para veres o projeto na resolução de telemóvel.
### 💻 É necessário ter um emulador Android disponivel

> **Nota:** Na versão web, para veres as atualizações após alterações no código, tens de abrir uma nova tab.
- Quando `npm start` é executado, automaticamente o simulador de smartphone do Android Studio vai abrir
- Isto só funciona se já o tiveres instalado e configurado com o SDK correto.

---

GL Bro!

❓ Alguma dúvida não hesites em contactar algum dos devs.
16 changes: 16 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# OSX
#
.DS_Store

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
.cxx/

# Bundle artifacts
*.jsbundle
184 changes: 184 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
//this is my build.gradle inside android>app folder
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"

def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()

/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
react {
entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android", "absolute"].execute(null, rootDir).text.trim())
reactNativeDir = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()
hermesCommand = new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc"
codegenDir = new File(["node", "--print", "require.resolve('@react-native/codegen/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile().getAbsoluteFile()

enableBundleCompression = (findProperty('android.enableBundleCompression') ?: false).toBoolean()
// Use Expo CLI to bundle the app, this ensures the Metro config
// works correctly with Expo projects.
cliFile = new File(["node", "--print", "require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })"].execute(null, rootDir).text.trim())
bundleCommand = "export:embed"

/* Folders */
// The root of your project, i.e. where "package.json" lives. Default is '../..'
// root = file("../../")
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
// reactNativeDir = file("../../node_modules/react-native")
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
// codegenDir = file("../../node_modules/@react-native/codegen")

/* Variants */
// The list of variants to that are debuggable. For those we're going to
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
// debuggableVariants = ["liteDebug", "prodDebug"]

/* Bundling */
// A list containing the node command and its flags. Default is just 'node'.
// nodeExecutableAndArgs = ["node"]

//
// The path to the CLI configuration file. Default is empty.
// bundleConfig = file(../rn-cli.config.js)
//
// The name of the generated asset file containing your JS bundle
// bundleAssetName = "MyApplication.android.bundle"
//
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
// entryFile = file("../js/MyApplication.android.js")
//
// A list of extra flags to pass to the 'bundle' commands.
// See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
// extraPackagerArgs = []

/* Hermes Commands */
// The hermes compiler command to run. By default it is 'hermesc'
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
//
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
// hermesFlags = ["-O", "-output-source-map"]

/* Autolinking */
autolinkLibrariesWithApp()
}

/**
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean()

/**
* The preferred build flavor of JavaScriptCore (JSC)
*
* For example, to use the international variant, you can use:
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'

android {
ndkVersion rootProject.ext.ndkVersion

buildToolsVersion rootProject.ext.buildToolsVersion
compileSdk rootProject.ext.compileSdkVersion

namespace 'com.anonymous.lumicheck'
defaultConfig {
applicationId 'com.anonymous.lumicheck'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0.0"
}
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
crunchPngs (findProperty('android.enablePngCrunchInReleaseBuilds')?.toBoolean() ?: true)
}
}
packagingOptions {
jniLibs {
useLegacyPackaging (findProperty('expo.useLegacyPackaging')?.toBoolean() ?: false)
}
}
androidResources {
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
}
}

// Apply static values from `gradle.properties` to the `android.packagingOptions`
// Accepts values in comma delimited lists, example:
// android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini
["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop ->
// Split option: 'foo,bar' -> ['foo', 'bar']
def options = (findProperty("android.packagingOptions.$prop") ?: "").split(",");
// Trim all elements in place.
for (i in 0..<options.size()) options[i] = options[i].trim();
// `[] - ""` is essentially `[""].filter(Boolean)` removing all empty strings.
options -= ""

if (options.length > 0) {
println "android.packagingOptions.$prop += $options ($options.length)"
// Ex: android.packagingOptions.pickFirsts += '**/SCCS/**'
options.each {
android.packagingOptions[prop] += it
}
}
}

dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation ("com.google.firebase:firebase-messaging:23.1.2")

implementation "androidx.work:work-runtime-ktx:2.8.1"
implementation "com.squareup.okhttp3:okhttp:4.10.0"

def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";

if (isGifEnabled) {
// For animated gif support
implementation("com.facebook.fresco:animated-gif:${expoLibs.versions.fresco.get()}")
}

if (isWebpEnabled) {
// For webp support
implementation("com.facebook.fresco:webpsupport:${expoLibs.versions.fresco.get()}")
if (isWebpAnimatedEnabled) {
// Animated webp support
implementation("com.facebook.fresco:animated-webp:${expoLibs.versions.fresco.get()}")
}
}

if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}
}

apply plugin: 'com.google.gms.google-services'
Binary file added android/app/debug.keystore
Binary file not shown.
29 changes: 29 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "241241973344",
"project_id": "bubblechat-491d0",
"storage_bucket": "bubblechat-491d0.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:241241973344:android:b60b169b514b0e65265905",
"android_client_info": {
"package_name": "com.anonymous.lumicheck"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCYmcuSfpO_wUTkxGsXsQaymbmD9OwgLLA"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
14 changes: 14 additions & 0 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# react-native-reanimated
-keep class com.swmansion.reanimated.** { *; }
-keep class com.facebook.react.turbomodule.** { *; }

# Add any project specific keep options here:
7 changes: 7 additions & 0 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning" tools:replace="android:usesCleartextTraffic" />
</manifest>
Loading
Loading