Compare commits
No commits in common. "71cd81b9189803353bbeb13d6cd5979d978e9ee5" and "aa675f04f945423fc6173eb7c6795984cb32e1fc" have entirely different histories.
71cd81b918
...
aa675f04f9
|
@ -1,3 +1,5 @@
|
||||||
{
|
{
|
||||||
"recommendations": ["denoland.vscode-deno"]
|
"recommendations": [
|
||||||
|
"denoland.vscode-deno"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
{
|
{
|
||||||
"deno.enablePaths": ["supabase/functions"],
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "denoland.vscode-deno"
|
||||||
|
},
|
||||||
|
"deno.enablePaths": [
|
||||||
|
"supabase/functions"
|
||||||
|
],
|
||||||
"deno.lint": true,
|
"deno.lint": true,
|
||||||
"deno.unstable": [
|
"deno.unstable": [
|
||||||
"bare-node-builtins",
|
"bare-node-builtins",
|
||||||
|
@ -15,10 +20,5 @@
|
||||||
"fs",
|
"fs",
|
||||||
"http",
|
"http",
|
||||||
"net"
|
"net"
|
||||||
],
|
]
|
||||||
// "[typescript]": {
|
|
||||||
// "editor.defaultFormatter": "denoland.vscode-deno"
|
|
||||||
// },
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
# Update these with your Supabase details from your project settings > API
|
||||||
|
# https://app.supabase.com/project/_/settings/api
|
||||||
|
|
||||||
|
# # Supabase Production URL
|
||||||
|
SUPABASE_URL=https://htwoxhaigocfxxrmdivp.supabase.co
|
||||||
|
SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imh0d294aGFpZ29jZnh4cm1kaXZwIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDk5ODgyNjQsImV4cCI6MjA2NTU2NDI2NH0.CGjBAdeYfGfazPXkefsxtil_c13cgj3PlbPCRNE2xAU
|
||||||
|
|
||||||
|
SERVICE_ROLE_SECRET=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imh0d294aGFpZ29jZnh4cm1kaXZwIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc0OTk4ODI2NCwiZXhwIjoyMDY1NTY0MjY0fQ.k5VeuT-63O8GqKQkO8LbIDkuAkRZyKT1MO_s9Bv0rwo
|
||||||
|
|
||||||
|
SUPABASE_STORAGE_URL="https://cppejroeyonsqxulinaj.supabase.co/storage/v1/object/public"
|
||||||
|
|
||||||
|
# Connect to Supabase via connection pooling
|
||||||
|
DATABASE_URL="postgresql://postgres.bhfzrlgxqkbkjepvqeva:TA-SIGAP2024@aws-0-ap-southeast-1.pooler.supabase.com:6543/postgres?pgbouncer=true"
|
||||||
|
|
||||||
|
# Direct connection to the database. Used for migrations
|
||||||
|
DIRECT_URL="postgresql://postgres.bhfzrlgxqkbkjepvqeva:TA-SIGAP2024@aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres"
|
||||||
|
|
||||||
|
# Supabase Locapl URL
|
||||||
|
# SUPABASE_URL=http://192.168.1.8:54321
|
||||||
|
# SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
|
||||||
|
|
||||||
|
# SERVICE_ROLE_SECRET=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
|
||||||
|
|
||||||
|
# DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:54322/postgres"
|
||||||
|
# DIRECT_URL="postgresql://postgres:postgres@127.0.0.1:54322/postgres"
|
||||||
|
|
||||||
|
# RESEND_API_KEY_TES="re_WtXdegYe_Ey3yiShKfZZtjCyY1agkEaSi"
|
||||||
|
RESEND_API_KEY="re_4EyTgztQ_3istGdHQFeSTQsLBtH6oAdub"
|
||||||
|
SEND_EMAIL_HOOK_SECRET="jeroAB/CXdS721OiHV0Ac0yRcxO7eNihgjblH62xMhLBNc6OwK3DQnkbrHjTlSw5anml2onNTolG3SzZ"
|
||||||
|
|
||||||
|
# db connection string
|
||||||
|
# Connect to Supabase via connection pooling with Supavisor.
|
||||||
|
|
||||||
|
# Direct connection to the database. Used for migrations.
|
||||||
|
# DIRECT_URL="postgresql://prisma.cppejroeyonsqxulinaj:prisma@aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres"
|
||||||
|
|
||||||
|
DENO_ENV=development
|
||||||
|
|
||||||
|
MAPBOX_ACCESS_TOKEN=pk.eyJ1IjoidmVyZ2lsZ29vZDEiLCJhIjoiY205b254eGltMGJ5dzJqb2F4cGpsZXlpNSJ9.zxmnSQxuc5NBwiFpsTGJCg
|
||||||
|
MAPBOX_TILESET_ID=vergilgood1.cm9x176pl09k11ope7hzkij0r-06afz
|
||||||
|
NODE_ENV=development
|
||||||
|
|
||||||
|
# Azure AI API
|
||||||
|
AZURE_RESOURCE_NAME="sigap"
|
||||||
|
AZURE_FACE_RESOURCE_NAME="verify-face"
|
||||||
|
AZURE_SUBSCRIPTION_KEY="ANeYAEr78MF7HzCEDg53DEHfKZJg19raPeJCubNEZP2tXGD6xREgJQQJ99BEAC3pKaRXJ3w3AAAFACOGAwA9"
|
||||||
|
AZURE_FACE_SUBSCRIPTION_KEY="6pBJKuYEFWHkrCBaZh8hErDci6ZwYnG0tEaE3VA34P8XPAYj4ZvOJQQJ99BEACqBBLyXJ3w3AAAKACOGYqeW"
|
||||||
|
|
||||||
|
; Aws rekognition
|
||||||
|
AWS_RK_REGION=ap-southeast-1
|
||||||
|
AWS_RK_ACCESS_KEY=AKIAQCK3TTCVDWT7HK4N
|
||||||
|
AWS_RK_SECRET_KEY=hLjsFn1bcxpxpPV2oamYn/INSEgZSaAgdp+A0Mt6
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<!-- ---
|
||||||
|
applyTo: '**'
|
||||||
|
---
|
||||||
|
|
||||||
|
Coding standards, domain knowledge, and preferences that AI should follow.
|
||||||
|
|
||||||
|
# Always Uses Constant
|
||||||
|
|
||||||
|
I want you to always use constants for values that are used multiple times in the code. This includes colors, strings, and any other values that are reused. Define these constants in a separate file in folder lib\src\utils\constants, such as `lib\src\utils\constants\app_routes.dart, lib\src\utils\constants\enums.dart, lib\src\utils\constants\api_urls.dart,lib\src\utils\constants\colors.dart, lib\src\utils\constants\num_int.dart, lib\src\utils\constants\sizes.dart, lib\src\utils\constants\num_int.dart`, and import them where necessary. if the constant is not defined, create a new constant in the appropriate file. Use descriptive names for constants to make the code more readable and maintainable. Avoid using hardcoded values directly in the code.
|
||||||
|
Make sure to use the constants consistently across the application, and avoid duplicating values that can be defined as constants. This will help in maintaining the code and making it easier to update values in the future. -->
|
|
@ -0,0 +1,9 @@
|
||||||
|
<!-- ---
|
||||||
|
applyTo: '**'
|
||||||
|
---
|
||||||
|
|
||||||
|
# Use Theme Color
|
||||||
|
|
||||||
|
I want you to use the theme color in the code. The theme color is defined in `lib\src\utils\theme\theme.dart` as `color`. Use this color for all UI elements that require a primary color, such as buttons, headers, and backgrounds.
|
||||||
|
Make sure to import the colors file where necessary and apply `primaryColor` consistently across the application
|
||||||
|
make it a flexible for dark and light themes, ensuring that the color adapts to the current theme mode. -->
|
|
@ -0,0 +1,13 @@
|
||||||
|
<!-- ---
|
||||||
|
applyTo: '**'
|
||||||
|
---
|
||||||
|
|
||||||
|
Coding standards, domain knowledge, and preferences that AI should follow.
|
||||||
|
|
||||||
|
# Uses utils if applicable
|
||||||
|
|
||||||
|
I want you to use utility functions and classes from the `lib\src\utils` directory whenever applicable. This includes using helper functions for common tasks, constants for repeated values, and any other utility that can simplify the code.
|
||||||
|
Make sure to import the necessary utility files where required and apply them consistently across the application. This will help in maintaining clean, readable, and efficient code.
|
||||||
|
Avoid duplicating logic that can be encapsulated in utility functions or classes. If a utility function does not exist for a specific task, consider creating one in the appropriate utility file.
|
||||||
|
Make sure to follow the naming conventions and structure of the existing utility files to maintain consistency across the codebase.
|
||||||
|
These are recently edited files. Do not suggest code that has been deleted. -->
|
|
@ -0,0 +1,45 @@
|
||||||
|
# Miscellaneous
|
||||||
|
*.class
|
||||||
|
*.log
|
||||||
|
*.pyc
|
||||||
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
.atom/
|
||||||
|
.build/
|
||||||
|
.buildlog/
|
||||||
|
.history
|
||||||
|
.svn/
|
||||||
|
.swiftpm/
|
||||||
|
migrate_working_dir/
|
||||||
|
|
||||||
|
# IntelliJ related
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# The .vscode folder contains launch configuration and tasks you configure in
|
||||||
|
# VS Code which you may wish to be included in version control, so this line
|
||||||
|
# is commented out by default.
|
||||||
|
#.vscode/
|
||||||
|
|
||||||
|
# Flutter/Dart/Pub related
|
||||||
|
**/doc/api/
|
||||||
|
**/ios/Flutter/.last_build_id
|
||||||
|
.dart_tool/
|
||||||
|
.flutter-plugins
|
||||||
|
.flutter-plugins-dependencies
|
||||||
|
.pub-cache/
|
||||||
|
.pub/
|
||||||
|
/build/
|
||||||
|
|
||||||
|
# Symbolication related
|
||||||
|
app.*.symbols
|
||||||
|
|
||||||
|
# Obfuscation related
|
||||||
|
app.*.map.json
|
||||||
|
|
||||||
|
# Android Studio will place build artifacts here
|
||||||
|
/android/app/debug
|
||||||
|
/android/app/profile
|
||||||
|
/android/app/release
|
|
@ -0,0 +1,45 @@
|
||||||
|
# This file tracks properties of this Flutter project.
|
||||||
|
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||||
|
#
|
||||||
|
# This file should be version controlled and should not be manually edited.
|
||||||
|
|
||||||
|
version:
|
||||||
|
revision: "ea121f8859e4b13e47a8f845e4586164519588bc"
|
||||||
|
channel: "stable"
|
||||||
|
|
||||||
|
project_type: app
|
||||||
|
|
||||||
|
# Tracks metadata for the flutter migrate command
|
||||||
|
migration:
|
||||||
|
platforms:
|
||||||
|
- platform: root
|
||||||
|
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
- platform: android
|
||||||
|
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
- platform: ios
|
||||||
|
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
- platform: linux
|
||||||
|
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
- platform: macos
|
||||||
|
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
- platform: web
|
||||||
|
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
- platform: windows
|
||||||
|
create_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
base_revision: ea121f8859e4b13e47a8f845e4586164519588bc
|
||||||
|
|
||||||
|
# User provided section
|
||||||
|
|
||||||
|
# List of Local paths (relative to this file) that should be
|
||||||
|
# ignored by the migrate tool.
|
||||||
|
#
|
||||||
|
# Files that are not part of the templates will be ignored by default.
|
||||||
|
unmanaged_files:
|
||||||
|
- 'lib/main.dart'
|
||||||
|
- 'ios/Runner.xcodeproj/project.pbxproj'
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"denoland.vscode-deno"
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.defaultFormatter": "denoland.vscode-deno"
|
||||||
|
},
|
||||||
|
"deno.enablePaths": [
|
||||||
|
"supabase/functions"
|
||||||
|
],
|
||||||
|
"deno.lint": true,
|
||||||
|
"deno.unstable": [
|
||||||
|
"bare-node-builtins",
|
||||||
|
"byonm",
|
||||||
|
"sloppy-imports",
|
||||||
|
"unsafe-proto",
|
||||||
|
"webgpu",
|
||||||
|
"broadcast-channel",
|
||||||
|
"worker-options",
|
||||||
|
"cron",
|
||||||
|
"kv",
|
||||||
|
"ffi",
|
||||||
|
"fs",
|
||||||
|
"http",
|
||||||
|
"net"
|
||||||
|
],
|
||||||
|
"files.autoSave": "afterDelay",
|
||||||
|
"java.configuration.updateBuildConfiguration": "interactive"
|
||||||
|
}
|
|
@ -0,0 +1,114 @@
|
||||||
|
# Panic Button Feature Improvements
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
Fixed and optimized the panic button feature to properly handle the emergency session flow and user interactions, particularly the "Stop" button functionality.
|
||||||
|
|
||||||
|
## Key Improvements Made
|
||||||
|
|
||||||
|
### 1. Enhanced Stop Button Functionality
|
||||||
|
|
||||||
|
- **Location**: `lib/src/features/panic/presentation/widgets/emergency_view.dart`
|
||||||
|
- **Changes**:
|
||||||
|
- Added confirmation dialog before stopping emergency session
|
||||||
|
- Improved button styling with better visual feedback
|
||||||
|
- Added icon and clearer text ("Stop Emergency Session")
|
||||||
|
- Increased button size and prominence
|
||||||
|
|
||||||
|
### 2. Improved Session Status Indicator
|
||||||
|
|
||||||
|
- **Location**: `lib/src/features/panic/presentation/widgets/emergency_view.dart`
|
||||||
|
- **Changes**:
|
||||||
|
- Enhanced visual design with gradient background
|
||||||
|
- Added more informative text layout
|
||||||
|
- Clearer instructions for user actions
|
||||||
|
- Better responsive design for small screens
|
||||||
|
|
||||||
|
### 3. Fixed Session Management Flow
|
||||||
|
|
||||||
|
- **Location**: `lib/src/features/panic/presentation/controllers/panic_button_controller.dart`
|
||||||
|
- **Changes**:
|
||||||
|
- Added `endSessionAndGoToUpdateIncident()` method with proper state management
|
||||||
|
- Added `startCooldownAfterIncidentUpdate()` method for post-update cooldown
|
||||||
|
- Fixed navigation flow to use proper route constants
|
||||||
|
- Improved error handling and user feedback
|
||||||
|
|
||||||
|
### 4. Enhanced Incident Update Process
|
||||||
|
|
||||||
|
- **Location**: `lib/src/features/panic/presentation/controllers/incident_update_controller.dart`
|
||||||
|
- **Changes**:
|
||||||
|
- Integration with panic button controller for cooldown management
|
||||||
|
- Automatic cooldown start after successful incident update
|
||||||
|
- Better success messaging and flow control
|
||||||
|
|
||||||
|
### 5. Improved Incident Update Screen UI
|
||||||
|
|
||||||
|
- **Location**: `lib/src/features/panic/presentation/screens/incident_update_screen.dart`
|
||||||
|
- **Changes**:
|
||||||
|
- Added back button confirmation dialog
|
||||||
|
- Enhanced header information with clearer instructions
|
||||||
|
- Added informational note about cooldown period
|
||||||
|
- Better user guidance throughout the process
|
||||||
|
|
||||||
|
### 6. Enhanced Panic Button Visual States
|
||||||
|
|
||||||
|
- **Location**: `lib/src/features/panic/presentation/widgets/panic_button.dart`
|
||||||
|
- **Changes**:
|
||||||
|
- Improved session content display with emergency icon
|
||||||
|
- Better text hierarchy and visual feedback
|
||||||
|
- Enhanced session timer display
|
||||||
|
|
||||||
|
## User Flow Improvements
|
||||||
|
|
||||||
|
### Before:
|
||||||
|
|
||||||
|
1. User activates panic button
|
||||||
|
2. Session runs for 60 seconds
|
||||||
|
3. Automatic end → cooldown starts immediately
|
||||||
|
4. User may miss opportunity to provide details
|
||||||
|
|
||||||
|
### After:
|
||||||
|
|
||||||
|
1. User activates panic button
|
||||||
|
2. Session runs with prominent "Stop" button visible
|
||||||
|
3. User can press "Stop" → confirmation dialog
|
||||||
|
4. User gets redirected to incident update form
|
||||||
|
5. After completing form → cooldown starts
|
||||||
|
6. If user goes back without completing → cooldown starts with warning
|
||||||
|
|
||||||
|
## Technical Improvements
|
||||||
|
|
||||||
|
### Error Handling
|
||||||
|
|
||||||
|
- Added proper error handling for missing controllers
|
||||||
|
- Graceful degradation when components are not found
|
||||||
|
- Better user feedback for error scenarios
|
||||||
|
|
||||||
|
### State Management
|
||||||
|
|
||||||
|
- Proper cleanup of timers and resources
|
||||||
|
- Clear state transitions between session, update, and cooldown phases
|
||||||
|
- Synchronized state between related controllers
|
||||||
|
|
||||||
|
### Navigation
|
||||||
|
|
||||||
|
- Used proper route constants instead of hardcoded strings
|
||||||
|
- Implemented proper navigation stack management
|
||||||
|
- Added confirmation dialogs for critical actions
|
||||||
|
|
||||||
|
## Benefits
|
||||||
|
|
||||||
|
1. **Better User Experience**: Clear visual feedback and instructions
|
||||||
|
2. **Proper Emergency Flow**: Users are guided to complete incident reports
|
||||||
|
3. **Reduced Accidental Usage**: Confirmation dialogs prevent mistakes
|
||||||
|
4. **Improved Data Collection**: Users more likely to provide incident details
|
||||||
|
5. **System Stability**: Better error handling and state management
|
||||||
|
|
||||||
|
## Testing Recommendations
|
||||||
|
|
||||||
|
1. Test the complete flow: activate → stop → update → cooldown
|
||||||
|
2. Test automatic session timeout behavior
|
||||||
|
3. Test back button behavior in incident update screen
|
||||||
|
4. Test error scenarios (missing data, network issues)
|
||||||
|
5. Test on different screen sizes for responsive design
|
||||||
|
6. Test rapid button pressing and edge cases
|
|
@ -0,0 +1,16 @@
|
||||||
|
# sigap
|
||||||
|
|
||||||
|
A mobile app for SIGAP Jember
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
This project is a starting point for a Flutter application.
|
||||||
|
|
||||||
|
A few resources to get you started if this is your first Flutter project:
|
||||||
|
|
||||||
|
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||||
|
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||||
|
|
||||||
|
For help getting started with Flutter development, view the
|
||||||
|
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||||
|
samples, guidance on mobile development, and a full API reference.
|
|
@ -0,0 +1,31 @@
|
||||||
|
# This file configures the analyzer, which statically analyzes Dart code to
|
||||||
|
# check for errors, warnings, and lints.
|
||||||
|
#
|
||||||
|
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
||||||
|
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
||||||
|
# invoked from the command line by running `flutter analyze`.
|
||||||
|
|
||||||
|
# The following line activates a set of recommended lints for Flutter apps,
|
||||||
|
# packages, and plugins designed to encourage good coding practices.
|
||||||
|
analyzer:
|
||||||
|
errors:
|
||||||
|
unused_element: ignore
|
||||||
|
include: package:flutter_lints/flutter.yaml
|
||||||
|
|
||||||
|
linter:
|
||||||
|
# The lint rules applied to this project can be customized in the
|
||||||
|
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
||||||
|
# included above or to enable additional rules. A list of all available lints
|
||||||
|
# and their documentation is published at https://dart.dev/lints.
|
||||||
|
#
|
||||||
|
# Instead of disabling a lint rule for the entire project in the
|
||||||
|
# section below, it can also be suppressed for a single line of code
|
||||||
|
# or a specific dart file by using the `// ignore: name_of_lint` and
|
||||||
|
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
||||||
|
# producing the lint.
|
||||||
|
rules:
|
||||||
|
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
||||||
|
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
||||||
|
|
||||||
|
# Additional information about this file can be found at
|
||||||
|
# https://dart.dev/guides/language/analysis-options
|
|
@ -0,0 +1,14 @@
|
||||||
|
gradle-wrapper.jar
|
||||||
|
/.gradle
|
||||||
|
/captures/
|
||||||
|
/gradlew
|
||||||
|
/gradlew.bat
|
||||||
|
/local.properties
|
||||||
|
GeneratedPluginRegistrant.java
|
||||||
|
.cxx/
|
||||||
|
|
||||||
|
# Remember to never publicly share your keystore.
|
||||||
|
# See https://flutter.dev/to/reference-keystore
|
||||||
|
key.properties
|
||||||
|
**/*.keystore
|
||||||
|
**/*.jks
|
|
@ -0,0 +1,73 @@
|
||||||
|
plugins {
|
||||||
|
id("com.android.application")
|
||||||
|
id("kotlin-android")
|
||||||
|
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||||||
|
id("dev.flutter.flutter-gradle-plugin")
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
namespace = "com.backspacex.sigap"
|
||||||
|
compileSdk = flutter.compileSdkVersion
|
||||||
|
ndkVersion = "27.0.12077973"
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
// Flag to enable support for the new language APIs
|
||||||
|
|
||||||
|
// For AGP 4.1+
|
||||||
|
isCoreLibraryDesugaringEnabled = true
|
||||||
|
// For AGP 4.0
|
||||||
|
// coreLibraryDesugaringEnabled = true
|
||||||
|
|
||||||
|
// Sets Java compatibility to Java 8
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
// For AGP 7.4+
|
||||||
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
|
||||||
|
// For AGP 7.3
|
||||||
|
// coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.2.3")
|
||||||
|
// For AGP 4.0 to 7.2
|
||||||
|
// coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.9")
|
||||||
|
|
||||||
|
// Material components for Android
|
||||||
|
implementation("com.google.android.material:material:1.14.0-alpha01")
|
||||||
|
|
||||||
|
// AppCompat library
|
||||||
|
val appcompat_version = "1.7.0"
|
||||||
|
implementation("androidx.appcompat:appcompat:$appcompat_version")
|
||||||
|
implementation("androidx.appcompat:appcompat-resources:$appcompat_version")
|
||||||
|
|
||||||
|
implementation("com.google.mlkit:face-detection:16.1.7")
|
||||||
|
implementation("com.google.mlkit:face-mesh-detection:16.0.0-beta1")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
|
applicationId = "com.backspacex.sigap"
|
||||||
|
// You can update the following values to match your application needs.
|
||||||
|
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||||
|
minSdk = flutter.minSdkVersion
|
||||||
|
targetSdk = flutter.targetSdkVersion
|
||||||
|
versionCode = flutter.versionCode
|
||||||
|
versionName = flutter.versionName
|
||||||
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
// TODO: Add your own signing config for the release build.
|
||||||
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||||
|
signingConfig = signingConfigs.getByName("debug")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
flutter {
|
||||||
|
source = "../.."
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- The INTERNET permission is required for development. Specifically,
|
||||||
|
the Flutter tool needs it to communicate with the running application
|
||||||
|
to allow setting breakpoints, to provide hot reload, etc.
|
||||||
|
-->
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
</manifest>
|
|
@ -0,0 +1,86 @@
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- Required to fetch data from the internet. -->
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<!-- Geolocator permissions -->
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
||||||
|
<!-- Biometric permission -->
|
||||||
|
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
|
||||||
|
<!-- Camera -->
|
||||||
|
<uses-permission android:name="android.permission.CAMERA" />
|
||||||
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
<!-- Phone direct caller -->
|
||||||
|
<uses-permission android:name="android.permission.CALL_PHONE"/>
|
||||||
|
<!-- ... -->
|
||||||
|
<application android:label="sigap"
|
||||||
|
android:name="${applicationName}"
|
||||||
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
android:requestLegacyExternalStorage="true"
|
||||||
|
android:usesCleartextTraffic="true">
|
||||||
|
<activity android:name=".MainActivity"
|
||||||
|
android:exported="true"
|
||||||
|
android:launchMode="singleTop"
|
||||||
|
android:taskAffinity=""
|
||||||
|
android:theme="@style/LaunchTheme"
|
||||||
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||||
|
android:hardwareAccelerated="true"
|
||||||
|
android:windowSoftInputMode="adjustResize">
|
||||||
|
<!-- Specifies an Android theme to apply to this Activity as soon as
|
||||||
|
the Android process has started. This theme is visible to the user
|
||||||
|
while the Flutter UI initializes. After that, this theme continues
|
||||||
|
to determine the Window background behind the Flutter UI. -->
|
||||||
|
<meta-data android:name="io.flutter.embedding.android.NormalTheme"
|
||||||
|
android:resource="@style/NormalTheme" />
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
</intent-filter>
|
||||||
|
<!-- Add this intent-filter for Deep Links -->
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
<!-- Accepts URIs that begin with YOUR_SCHEME://YOUR_HOST -->
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="signin" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="signup" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="forgotpassword" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="resetpassword" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="verifyemail" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="verifyphone" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="verifyemailotp" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="verifyphoneotp" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="verifyemailchange" />
|
||||||
|
<data android:scheme="io.supabase.flutterquickstart"
|
||||||
|
android:host="verifyphonechange" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
<!-- Don't delete the meta-data below.
|
||||||
|
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||||
|
<meta-data android:name="flutterEmbedding"
|
||||||
|
android:value="2" />
|
||||||
|
<!-- <meta-data android:name="com.mapbox.token"
|
||||||
|
android:value="${MAPBOX_ACCESS_TOKEN}" /> -->
|
||||||
|
</application>
|
||||||
|
<!-- Required to query activities that can process text, see:
|
||||||
|
https://developer.android.com/training/package-visibility and
|
||||||
|
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
|
||||||
|
|
||||||
|
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
|
||||||
|
<queries>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.intent.action.PROCESS_TEXT" />
|
||||||
|
<data android:mimeType="text/plain" />
|
||||||
|
</intent>
|
||||||
|
</queries>
|
||||||
|
</manifest>
|
|
@ -0,0 +1,5 @@
|
||||||
|
package com.backspacex.sigap
|
||||||
|
|
||||||
|
import io.flutter.embedding.android.FlutterFragmentActivity
|
||||||
|
|
||||||
|
class MainActivity: FlutterFragmentActivity()
|
After Width: | Height: | Size: 556 B |
After Width: | Height: | Size: 556 B |
After Width: | Height: | Size: 556 B |
After Width: | Height: | Size: 353 B |
After Width: | Height: | Size: 353 B |
After Width: | Height: | Size: 353 B |
After Width: | Height: | Size: 558 B |
After Width: | Height: | Size: 558 B |
After Width: | Height: | Size: 558 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 69 B |
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="fill" android:src="@drawable/background"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="center" android:src="@drawable/splash"/>
|
||||||
|
</item>
|
||||||
|
<item android:bottom="0dp">
|
||||||
|
<bitmap android:gravity="bottom" android:src="@drawable/branding"/>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
After Width: | Height: | Size: 674 B |
After Width: | Height: | Size: 674 B |
After Width: | Height: | Size: 674 B |
After Width: | Height: | Size: 909 B |
After Width: | Height: | Size: 909 B |
After Width: | Height: | Size: 909 B |
After Width: | Height: | Size: 952 B |
After Width: | Height: | Size: 952 B |
After Width: | Height: | Size: 952 B |
After Width: | Height: | Size: 69 B |
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="fill" android:src="@drawable/background"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="center" android:src="@drawable/splash"/>
|
||||||
|
</item>
|
||||||
|
<item android:bottom="0dp">
|
||||||
|
<bitmap android:gravity="bottom" android:src="@drawable/branding"/>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
After Width: | Height: | Size: 69 B |
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="fill" android:src="@drawable/background"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="center" android:src="@drawable/splash"/>
|
||||||
|
</item>
|
||||||
|
<item android:bottom="0dp">
|
||||||
|
<bitmap android:gravity="bottom" android:src="@drawable/branding"/>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
After Width: | Height: | Size: 677 B |
After Width: | Height: | Size: 677 B |
After Width: | Height: | Size: 677 B |
After Width: | Height: | Size: 913 B |
After Width: | Height: | Size: 913 B |
After Width: | Height: | Size: 913 B |
After Width: | Height: | Size: 965 B |
After Width: | Height: | Size: 965 B |
After Width: | Height: | Size: 965 B |
After Width: | Height: | Size: 69 B |
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="fill" android:src="@drawable/background"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<bitmap android:gravity="center" android:src="@drawable/splash"/>
|
||||||
|
</item>
|
||||||
|
<item android:bottom="0dp">
|
||||||
|
<bitmap android:gravity="bottom" android:src="@drawable/branding"/>
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
After Width: | Height: | Size: 544 B |
After Width: | Height: | Size: 442 B |
After Width: | Height: | Size: 721 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.4 KiB |
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
|
||||||
|
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||||
|
<item name="android:forceDarkAllowed">false</item>
|
||||||
|
<item name="android:windowFullscreen">false</item>
|
||||||
|
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
|
||||||
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
||||||
|
<item name="android:windowSplashScreenBackground">#121212</item>
|
||||||
|
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
|
||||||
|
<item name="android:windowSplashScreenIconBackgroundColor">#121212</item>
|
||||||
|
</style>
|
||||||
|
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||||
|
This theme determines the color of the Android Window while your
|
||||||
|
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||||
|
running.
|
||||||
|
|
||||||
|
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||||
|
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||||
|
<item name="android:windowBackground">?android:colorBackground</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
|
||||||
|
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||||
|
<!-- Show a splash screen on the activity. Automatically removed when
|
||||||
|
the Flutter engine draws its first frame -->
|
||||||
|
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||||
|
<item name="android:forceDarkAllowed">false</item>
|
||||||
|
<item name="android:windowFullscreen">false</item>
|
||||||
|
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
|
||||||
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
||||||
|
</style>
|
||||||
|
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||||
|
This theme determines the color of the Android Window while your
|
||||||
|
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||||
|
running.
|
||||||
|
|
||||||
|
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||||
|
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||||
|
<item name="android:windowBackground">?android:colorBackground</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
|
||||||
|
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||||
|
<item name="android:forceDarkAllowed">false</item>
|
||||||
|
<item name="android:windowFullscreen">false</item>
|
||||||
|
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
|
||||||
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
||||||
|
<item name="android:windowSplashScreenBackground">#ffffff</item>
|
||||||
|
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
|
||||||
|
<item name="android:windowSplashScreenIconBackgroundColor">#ffffff</item>
|
||||||
|
</style>
|
||||||
|
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||||
|
This theme determines the color of the Android Window while your
|
||||||
|
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||||
|
running.
|
||||||
|
|
||||||
|
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||||
|
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||||
|
<item name="android:windowBackground">?android:colorBackground</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
|
||||||
|
<style name="LaunchTheme" parent="Theme.AppCompat.DayNight">
|
||||||
|
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||||
|
<item name="android:forceDarkAllowed">false</item>
|
||||||
|
<item name="android:windowFullscreen">false</item>
|
||||||
|
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
|
||||||
|
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
|
||||||
|
</style>
|
||||||
|
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||||
|
This theme determines the color of the Android Window while your
|
||||||
|
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||||
|
running.
|
||||||
|
|
||||||
|
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||||
|
<style name="NormalTheme" parent="Theme.AppCompat.DayNight">
|
||||||
|
<item name="android:windowBackground">?android:colorBackground</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
|
@ -0,0 +1,7 @@
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- The INTERNET permission is required for development. Specifically,
|
||||||
|
the Flutter tool needs it to communicate with the running application
|
||||||
|
to allow setting breakpoints, to provide hot reload, etc.
|
||||||
|
-->
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
</manifest>
|
|
@ -0,0 +1,21 @@
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
|
||||||
|
rootProject.layout.buildDirectory.value(newBuildDir)
|
||||||
|
|
||||||
|
subprojects {
|
||||||
|
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
||||||
|
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
||||||
|
}
|
||||||
|
subprojects {
|
||||||
|
project.evaluationDependsOn(":app")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register<Delete>("clean") {
|
||||||
|
delete(rootProject.layout.buildDirectory)
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
||||||
|
android.useAndroidX=true
|
||||||
|
android.enableJetifier=true
|
|
@ -0,0 +1,5 @@
|
||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
|
|
@ -0,0 +1,25 @@
|
||||||
|
pluginManagement {
|
||||||
|
val flutterSdkPath = run {
|
||||||
|
val properties = java.util.Properties()
|
||||||
|
file("local.properties").inputStream().use { properties.load(it) }
|
||||||
|
val flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||||
|
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
||||||
|
flutterSdkPath
|
||||||
|
}
|
||||||
|
|
||||||
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||||
|
id("com.android.application") version "8.7.0" apply false
|
||||||
|
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
|
||||||
|
}
|
||||||
|
|
||||||
|
include(":app")
|