Compare commits
248 Commits
0.3.56
...
qrcode-cap
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c3a91e56d | ||
|
|
3214c79dbc | ||
|
|
e5518cd47c | ||
|
|
62553a37aa | ||
|
|
ea13250e5d | ||
|
|
b79cccc591 | ||
|
|
ff75fa5349 | ||
|
|
56f945d29f | ||
|
|
8a9f7d4231 | ||
|
|
3487f49f49 | ||
|
|
f5846cbe78 | ||
|
|
243f6f7798 | ||
|
|
72cf0211ce | ||
|
|
febbd4054a | ||
|
|
3ca82fe762 | ||
|
|
5fea1cf530 | ||
|
|
4f9b146a66 | ||
|
|
2b638ce2a7 | ||
|
|
0b528af2a6 | ||
|
|
008211bc21 | ||
|
|
6955a36458 | ||
|
|
ba079ea983 | ||
|
|
d7b3c5ec9d | ||
|
|
d83a25f47e | ||
|
|
fb40dc0ff7 | ||
|
|
d03fa55001 | ||
|
|
c8eff4d39e | ||
|
|
b8a7771edf | ||
|
|
5d845fb112 | ||
|
|
660f2170de | ||
|
|
94bd649003 | ||
|
|
b2d628cfeb | ||
|
|
00e52f8dca | ||
|
|
073ce24f43 | ||
|
|
2c84bb50b3 | ||
|
|
abf18835f6 | ||
|
|
f72562804d | ||
|
|
bdc5ffafc1 | ||
| 634395ff38 | |||
| da1f08ebaa | |||
| 4ee3ce0061 | |||
| 654c67af72 | |||
| b244f609b3 | |||
| 9c84302c2e | |||
| ca37c30180 | |||
| 130139e2af | |||
| 9802deb17c | |||
| 76c983ea3e | |||
| 114ef440b8 | |||
| b58d510f24 | |||
|
|
da6a5ee83e | ||
|
|
7af39d322f | ||
|
|
bab802160f | ||
|
|
01d7bc9e27 | ||
|
|
fa20360d87 | ||
|
|
770c0fa77c | ||
|
|
0709d0c726 | ||
|
|
d943983bf8 | ||
| be9465e9f8 | |||
| 5606f2a18a | |||
|
|
06e9950e53 | ||
|
|
5143c65337 | ||
|
|
09ee94d5a3 | ||
| 071792b97c | |||
| bf2f23021f | |||
| 829870b16c | |||
|
|
44ffeebabe | ||
|
|
bed3bfa387 | ||
| b1056fc8dd | |||
| 189bfabcf8 | |||
|
|
aed1a9fea8 | ||
|
|
f71c76fcd3 | ||
|
|
d024db2258 | ||
|
|
c760385dcf | ||
|
|
8be8de5f1f | ||
|
|
b40604f8a6 | ||
|
|
2660b91995 | ||
|
|
474999dc9c | ||
| e825950e6e | |||
| a73d0a85e2 | |||
| fc01e81af7 | |||
|
|
436f40813c | ||
|
|
77b296b606 | ||
|
|
683e85f5be | ||
| ac58804cb5 | |||
| 49b82e6c44 | |||
| 6f4fbc697f | |||
| 42413045c5 | |||
| 245959d783 | |||
| ae376f4c81 | |||
|
|
a67094218d | ||
| e3ac5fe9fe | |||
|
|
a215b1de72 | ||
|
|
d1acfb3c49 | ||
|
|
6773f512b9 | ||
|
|
5dbd66e51b | ||
|
|
df81bb6a95 | ||
|
|
312b4aaaa3 | ||
|
|
3a6a24d923 | ||
|
|
611d318a7a | ||
|
|
d7afb80a07 | ||
|
|
751df09fe5 | ||
|
|
2fbd42def5 | ||
|
|
9c8bf7997f | ||
|
|
6d4428668a | ||
|
|
eda4a6b25e | ||
|
|
87ef6f4186 | ||
|
|
e0aded04b4 | ||
|
|
8cae601148 | ||
| 562e82f176 | |||
| d53de5e79b | |||
|
|
b6213f5040 | ||
|
|
b590e41ec8 | ||
|
|
8858495f73 | ||
|
|
ecb088bee2 | ||
|
|
93219219ba | ||
|
|
8336b87bd0 | ||
|
|
a40420af16 | ||
|
|
21244efa73 | ||
|
|
02d6d220c7 | ||
|
|
5ed626b92f | ||
|
|
4562be3bac | ||
|
|
22de70a77d | ||
|
|
d6bf89ba57 | ||
|
|
b55b786738 | ||
|
|
879c00bd97 | ||
|
|
6cb1482b5f | ||
|
|
ad9b4836cd | ||
|
|
32f1f182d7 | ||
|
|
8f7d794962 | ||
|
|
fa7d6317b9 | ||
|
|
510f6a5faa | ||
|
|
1bb4e77714 | ||
|
|
cc10dab3a4 | ||
|
|
0a066dc99c | ||
|
|
eeddab506d | ||
|
|
bfd1aee27c | ||
|
|
2424d788d1 | ||
|
|
d14431161a | ||
| 8f993923a1 | |||
|
|
9edb3a255c | ||
|
|
b7b208407b | ||
|
|
4a75cdf20e | ||
|
|
a974ab4f51 | ||
|
|
bc971056e1 | ||
|
|
69b4b899c9 | ||
|
|
02747fb771 | ||
|
|
3dae8f7f7f | ||
|
|
9e6f0ab468 | ||
|
|
6685421ee8 | ||
|
|
79fdb9e570 | ||
|
|
4fcbb78450 | ||
| 9ffdb54c20 | |||
|
|
f4c5567471 | ||
|
|
86c1abb9be | ||
| e96617ca0f | |||
|
|
aa09827317 | ||
|
|
02bf0b3f1a | ||
|
|
cc1780bd01 | ||
|
|
d700be9e5b | ||
|
|
317fb2c644 | ||
| b91f2a5df7 | |||
| f6871e139d | |||
|
|
e5d9c25ad4 | ||
|
|
ef8c2e6093 | ||
|
|
89d970da1d | ||
|
|
cb03df9240 | ||
|
|
20620c3aae | ||
|
|
9d04db4a71 | ||
|
|
1a9c97fe88 | ||
|
|
3b4f4dc125 | ||
|
|
f6802cd160 | ||
|
|
a2e19d7e9a | ||
|
|
42055a2d66 | ||
|
|
dc16cb393e | ||
|
|
c708716675 | ||
|
|
fbb9fba347 | ||
| 61afba3bca | |||
|
|
3b7a872ae1 | ||
|
|
a8e15804a6 | ||
|
|
cee7a6ded3 | ||
|
|
d2157a7d8c | ||
|
|
fbdf72557c | ||
|
|
74a412745a | ||
|
|
eaf0b76e9e | ||
| eabe2b9448 | |||
| 5eaaf32043 | |||
| 1e9c3f3101 | |||
| 2e60e2bba9 | |||
| 78d7f38aa3 | |||
| 67afe6a952 | |||
|
|
caabaa3257 | ||
|
|
e2b7797e2d | ||
| 03161744b5 | |||
| 886202e4c8 | |||
| 811fddf24a | |||
| f2febbd94a | |||
| b14afc66d5 | |||
| c9c3cacfbd | |||
|
|
a66093028e | ||
| e95b67b6db | |||
| 8e46c38008 | |||
| 62def44ebb | |||
|
|
5550d6a411 | ||
|
|
f07a2de565 | ||
| 777f72f85d | |||
| f53248cae1 | |||
| f4155e557a | |||
| 130d7ecb01 | |||
| 6fc416d759 | |||
| aa0156cdf2 | |||
| e86cf3c9f2 | |||
| f4c7805266 | |||
| 0511bbc17b | |||
| be1146c7df | |||
| 77ebd32956 | |||
| 781afd8954 | |||
| 53a06be734 | |||
|
|
7d225ea7b2 | ||
|
|
a5c86fbc53 | ||
|
|
11d1fae35a | ||
|
|
8eabf76f56 | ||
|
|
fa15f7da85 | ||
|
|
1045266310 | ||
|
|
12025d6f21 | ||
|
|
16bc47921d | ||
|
|
9a966ef04d | ||
|
|
de017d1a71 | ||
|
|
a288496dcf | ||
|
|
4e0f9235cd | ||
|
|
f0d0f63672 | ||
|
|
976976e2ea | ||
|
|
e6138bd0e2 | ||
|
|
47a28ff7ad | ||
|
|
562b27851c | ||
| cc14b9e0ce | |||
|
|
b1ba3935e6 | ||
|
|
d9085ced6d | ||
|
|
43983bd993 | ||
|
|
6c97cafedb | ||
|
|
b3b01652c4 | ||
|
|
f8db626d14 | ||
|
|
c7ced87845 | ||
|
|
94ee9e24ea | ||
|
|
9adb8b01ee | ||
|
|
0001eb8784 | ||
|
|
a32c3c7765 | ||
|
|
be8ba12df6 |
8
.cursor/rules/general-project-rule.mdc
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
description: General project rules that applies to all file types. Should be most general
|
||||||
|
globs: **/*
|
||||||
|
---
|
||||||
|
- Naming Conventions: Follow clear and consistent naming conventions.
|
||||||
|
- Performance Optimization: Optimize code for performance.
|
||||||
|
- Key Conventions: Adhere to project-specific key conventions.
|
||||||
|
- Error Handling and Validation: implement comprehensive error handling and validation.
|
||||||
7
.cursor/rules/general-typescript-rule.mdc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
description: Applies general TypeScript best practices and style guidelines to all TypeScript files in the project.
|
||||||
|
globs: **/*.ts
|
||||||
|
---
|
||||||
|
- You are an expert in TypeScript.
|
||||||
|
- TypeScript Usage: Follow TypeScript best practices for type safety and code maintainability.
|
||||||
|
- Syntax and Formatting: Adhere to consistent coding style and formatting guidelines for TypeScript.
|
||||||
9
.cursor/rules/reports.mdc
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
description:
|
||||||
|
globs:
|
||||||
|
alwaysApply: false
|
||||||
|
---
|
||||||
|
- make reports chronologically in paragraph form without using pronouns or references to people
|
||||||
|
- use this git command to make a report: git log --since="12 hours ago" --pretty=format:"%H - %s (%an)" -p --color --all > output.txt
|
||||||
|
- the output.txt is the basis of work in the last 12 hours
|
||||||
|
- reports should always include pending issues and next steps along with urls to commits that day
|
||||||
6
.cursor/rules/tailwind-css-styling-rule.mdc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
description: Apply Tailwind CSS styling conventions in all relevant files.
|
||||||
|
globs: **/*.tsx
|
||||||
|
---
|
||||||
|
- You are an expert in Tailwind.
|
||||||
|
- UI and Styling: Use Tailwind CSS for consistent UI styling.
|
||||||
270
.cursor/rules/timesafari.mdc
Normal file
@@ -0,0 +1,270 @@
|
|||||||
|
---
|
||||||
|
description:
|
||||||
|
globs:
|
||||||
|
alwaysApply: true
|
||||||
|
---
|
||||||
|
# Time Safari Context
|
||||||
|
|
||||||
|
## Project Overview
|
||||||
|
|
||||||
|
Time Safari is an application designed to foster community building through gifts, gratitude, and collaborative projects. The app should make it extremely easy and intuitive for users of any age and capability to recognize contributions, build trust networks, and organize collective action. It is built on services that preserve privacy and data sovereignty.
|
||||||
|
|
||||||
|
The ultimate goals of Time Safari are two-fold:
|
||||||
|
|
||||||
|
1. **Connect** Make it easy, rewarding, and non-threatening for people to connect with others who have similar interests, and to initiate activities together. This helps people accomplish and learn from other individuals in less-structured environments; moreover, it helps them discover who they want to continue to support and with whom they want to maintain relationships.
|
||||||
|
|
||||||
|
2. **Reveal** Widely advertise the great support and rewards that are being given and accepted freely, especially non-monetary ones. Using visuals and text, display the kind of impact that gifts are making in the lives of others. Also show useful and engaging reports of project statistics and personal accomplishments.
|
||||||
|
|
||||||
|
|
||||||
|
## Core Approaches
|
||||||
|
|
||||||
|
Time Safari should help everyday users build meaningful connections and organize collective efforts by:
|
||||||
|
|
||||||
|
1. **Recognizing Contributions**: Creating permanent, verifiable records of gifts and contributions people give to each other and their communities.
|
||||||
|
|
||||||
|
2. **Facilitating Collaboration**: Making it ridiculously easy for people to ask for or propose help on projects and interests that matter to them.
|
||||||
|
|
||||||
|
3. **Building Trust Networks**: Enabling users to maintain their network and activity visibility. Developing reputation through verified contributions and references, which can be selectively shown to others outside the network.
|
||||||
|
|
||||||
|
4. **Preserving Privacy**: Ensuring personal identifiers are only shared with explicitly authorized contacts, allowing private individuals including children to participate safely.
|
||||||
|
|
||||||
|
5. **Engaging Content**: Displaying people's records in compelling stories, and highlighting those projects that are lifting people's lives long-term, both in physical support and in emotional-spiritual-creative thriving.
|
||||||
|
|
||||||
|
|
||||||
|
## Technical Foundation
|
||||||
|
|
||||||
|
This application is built on a privacy-preserving claims architecture (via endorser.ch) with these key characteristics:
|
||||||
|
|
||||||
|
- **Decentralized Identifiers (DIDs)**: User identities are based on public/private key pairs stored on their devices
|
||||||
|
- **Cryptographic Verification**: All claims and confirmations are cryptographically signed
|
||||||
|
- **User-Controlled Visibility**: Users explicitly control who can see their identifiers and data
|
||||||
|
- **Merkle-Chained Claims**: Claims are cryptographically chained for verification and integrity
|
||||||
|
- **Native and Web App**: Works on iOS, Android, and web browsers
|
||||||
|
|
||||||
|
## User Journey
|
||||||
|
|
||||||
|
The typical progression of usage follows these stages:
|
||||||
|
|
||||||
|
1. **Gratitude & Recognition**: Users begin by expressing and recording gratitude for gifts received, building a foundation of acknowledgment.
|
||||||
|
|
||||||
|
2. **Project Proposals**: Users propose projects and ideas, reaching out to connect with others who share similar interests.
|
||||||
|
|
||||||
|
3. **Action Triggers**: Offers of help serve as triggers and motivations to execute proposed projects, moving from ideas to action.
|
||||||
|
|
||||||
|
## Context for LLM Development
|
||||||
|
|
||||||
|
When developing new functionality for Time Safari, consider these design principles:
|
||||||
|
|
||||||
|
1. **Accessibility First**: Features should be usable by non-technical users with minimal learning curve.
|
||||||
|
|
||||||
|
2. **Privacy by Design**: All features must respect user privacy and data sovereignty.
|
||||||
|
|
||||||
|
3. **Progressive Enhancement**: Core functionality should work across all devices, with richer experiences where supported.
|
||||||
|
|
||||||
|
4. **Voluntary Collaboration**: The system should enable but never coerce participation.
|
||||||
|
|
||||||
|
5. **Trust Building**: Features should help build verifiable trust between users.
|
||||||
|
|
||||||
|
6. **Network Effects**: Consider how features scale as more users join the platform.
|
||||||
|
|
||||||
|
7. **Low Resource Requirements**: The system should be lightweight enough to run on inexpensive devices users already own.
|
||||||
|
|
||||||
|
## Use Cases to Support
|
||||||
|
|
||||||
|
LLM development should focus on enhancing these key use cases:
|
||||||
|
|
||||||
|
1. **Community Building**: Tools that help people find others with shared interests and values.
|
||||||
|
|
||||||
|
2. **Project Coordination**: Features that make it easy to propose collaborative projects and to submit suggestions and offers to existing ones.
|
||||||
|
|
||||||
|
3. **Reputation Building**: Methods for users to showcase their contributions and reliability, in contexts where they explicitly reveal that information.
|
||||||
|
|
||||||
|
4. **Governance Experimentation**: Features that facilitate decision-making and collective governance.
|
||||||
|
|
||||||
|
## Constraints
|
||||||
|
|
||||||
|
When developing new features, be mindful of these constraints:
|
||||||
|
|
||||||
|
1. **Privacy Preservation**: User identifiers must remain private except when explicitly shared.
|
||||||
|
|
||||||
|
2. **Platform Limitations**: Features must work within the constraints of the target app platforms, while aiming to leverage the best platform technology available.
|
||||||
|
|
||||||
|
3. **Endorser API Limitations**: Backend features are constrained by the endorser.ch API capabilities.
|
||||||
|
|
||||||
|
4. **Performance on Low-End Devices**: The application should remain performant on older/simpler devices.
|
||||||
|
|
||||||
|
5. **Offline-First When Possible**: Key functionality should work offline when feasible.
|
||||||
|
|
||||||
|
## Project Technologies
|
||||||
|
|
||||||
|
- Typescript using ES6 classes
|
||||||
|
- TailwindCSS
|
||||||
|
- Vite Build Tool
|
||||||
|
- Playwright E2E testing
|
||||||
|
- IndexDB
|
||||||
|
- Camera, Image uploads, QR Code reader, ...
|
||||||
|
|
||||||
|
## Mobile Features
|
||||||
|
|
||||||
|
- Deep Linking
|
||||||
|
- Local Notifications via a custom Capacitor plugin
|
||||||
|
|
||||||
|
## Project Architecture
|
||||||
|
|
||||||
|
- The application must work on web browser, PWA (Progressive Web Application), desktop via Electron, and mobile via Capacitor
|
||||||
|
- Building for each platform is managed via Vite
|
||||||
|
|
||||||
|
## Core Development Principles
|
||||||
|
|
||||||
|
### DRY development
|
||||||
|
- **Code Reuse**
|
||||||
|
- Extract common functionality into utility functions
|
||||||
|
- Create reusable components for UI patterns
|
||||||
|
- Implement service classes for shared business logic
|
||||||
|
- Use mixins for cross-cutting concerns
|
||||||
|
- Leverage TypeScript interfaces for shared type definitions
|
||||||
|
|
||||||
|
- **Component Patterns**
|
||||||
|
- Create base components for common UI elements
|
||||||
|
- Implement higher-order components for shared behavior
|
||||||
|
- Use slot patterns for flexible component composition
|
||||||
|
- Create composable services for business logic
|
||||||
|
- Implement factory patterns for component creation
|
||||||
|
|
||||||
|
- **State Management**
|
||||||
|
- Centralize state in Pinia stores
|
||||||
|
- Use computed properties for derived state
|
||||||
|
- Implement shared state selectors
|
||||||
|
- Create reusable state mutations
|
||||||
|
- Use action creators for common operations
|
||||||
|
|
||||||
|
- **Error Handling**
|
||||||
|
- Implement centralized error handling
|
||||||
|
- Create reusable error components
|
||||||
|
- Use error boundary components
|
||||||
|
- Implement consistent error logging
|
||||||
|
- Create error type definitions
|
||||||
|
|
||||||
|
- **Type Definitions**
|
||||||
|
- Create shared interfaces for common data structures
|
||||||
|
- Use type aliases for complex types
|
||||||
|
- Implement generic types for reusable components
|
||||||
|
- Create utility types for common patterns
|
||||||
|
- Use discriminated unions for state management
|
||||||
|
|
||||||
|
- **API Integration**
|
||||||
|
- Create reusable API client classes
|
||||||
|
- Implement request/response interceptors
|
||||||
|
- Use consistent error handling patterns
|
||||||
|
- Create type-safe API endpoints
|
||||||
|
- Implement caching strategies
|
||||||
|
|
||||||
|
- **Platform Services**
|
||||||
|
- Abstract platform-specific code behind interfaces
|
||||||
|
- Create platform-agnostic service layers
|
||||||
|
- Implement feature detection
|
||||||
|
- Use dependency injection for services
|
||||||
|
- Create service factories
|
||||||
|
|
||||||
|
- **Testing**
|
||||||
|
- Create reusable test utilities
|
||||||
|
- Implement test factories
|
||||||
|
- Use shared test configurations
|
||||||
|
- Create reusable test helpers
|
||||||
|
- Implement consistent test patterns
|
||||||
|
|
||||||
|
### SOLID Principles
|
||||||
|
- **Single Responsibility**: Each class/component should have only one reason to change
|
||||||
|
- Components should focus on one specific feature (e.g., QR scanning, DID management)
|
||||||
|
- Services should handle one type of functionality (e.g., platform services, crypto services)
|
||||||
|
- Utilities should provide focused helper functions
|
||||||
|
|
||||||
|
- **Open/Closed**: Software entities should be open for extension but closed for modification
|
||||||
|
- Use interfaces for service definitions
|
||||||
|
- Implement plugin architecture for platform-specific features
|
||||||
|
- Allow component behavior extension through props and events
|
||||||
|
|
||||||
|
- **Liskov Substitution**: Objects should be replaceable with their subtypes
|
||||||
|
- Platform services should work consistently across web/mobile
|
||||||
|
- Authentication providers should be interchangeable
|
||||||
|
- Storage implementations should be swappable
|
||||||
|
|
||||||
|
- **Interface Segregation**: Clients shouldn't depend on interfaces they don't use
|
||||||
|
- Break down large service interfaces into smaller, focused ones
|
||||||
|
- Component props should be minimal and purposeful
|
||||||
|
- Event emissions should be specific and targeted
|
||||||
|
|
||||||
|
- **Dependency Inversion**: High-level modules shouldn't depend on low-level modules
|
||||||
|
- Use dependency injection for services
|
||||||
|
- Abstract platform-specific code behind interfaces
|
||||||
|
- Implement factory patterns for component creation
|
||||||
|
|
||||||
|
### Law of Demeter
|
||||||
|
- Components should only communicate with immediate dependencies
|
||||||
|
- Avoid chaining method calls (e.g., `this.service.getUser().getProfile().getName()`)
|
||||||
|
- Use mediator patterns for complex component interactions
|
||||||
|
- Implement facade patterns for subsystem access
|
||||||
|
- Keep component communication through defined events and props
|
||||||
|
|
||||||
|
### Composition over Inheritance
|
||||||
|
- Prefer building components through composition
|
||||||
|
- Use mixins for shared functionality
|
||||||
|
- Implement feature toggles through props
|
||||||
|
- Create higher-order components for common patterns
|
||||||
|
- Use service composition for complex features
|
||||||
|
|
||||||
|
### Interface Segregation
|
||||||
|
- Define clear interfaces for services
|
||||||
|
- Keep component APIs minimal and focused
|
||||||
|
- Split large interfaces into smaller, specific ones
|
||||||
|
- Use TypeScript interfaces for type definitions
|
||||||
|
- Implement role-based interfaces for different use cases
|
||||||
|
|
||||||
|
### Fail Fast
|
||||||
|
- Validate inputs early in the process
|
||||||
|
- Use TypeScript strict mode
|
||||||
|
- Implement comprehensive error handling
|
||||||
|
- Add runtime checks for critical operations
|
||||||
|
- Use assertions for development-time validation
|
||||||
|
|
||||||
|
### Principle of Least Astonishment
|
||||||
|
- Follow Vue.js conventions consistently
|
||||||
|
- Use familiar naming patterns
|
||||||
|
- Implement predictable component behaviors
|
||||||
|
- Maintain consistent error handling
|
||||||
|
- Keep UI interactions intuitive
|
||||||
|
|
||||||
|
### Information Hiding
|
||||||
|
- Encapsulate implementation details
|
||||||
|
- Use private class members
|
||||||
|
- Implement proper access modifiers
|
||||||
|
- Hide complex logic behind simple interfaces
|
||||||
|
- Use TypeScript's access modifiers effectively
|
||||||
|
|
||||||
|
### Single Source of Truth
|
||||||
|
- Use Pinia for state management
|
||||||
|
- Maintain one source for user data
|
||||||
|
- Centralize configuration management
|
||||||
|
- Use computed properties for derived state
|
||||||
|
- Implement proper state synchronization
|
||||||
|
|
||||||
|
### Principle of Least Privilege
|
||||||
|
- Implement proper access control
|
||||||
|
- Use minimal required permissions
|
||||||
|
- Follow privacy-by-design principles
|
||||||
|
- Restrict component access to necessary data
|
||||||
|
- Implement proper authentication/authorization
|
||||||
|
|
||||||
|
### Continuous Integration/Continuous Deployment (CI/CD)
|
||||||
|
- Automated testing on every commit
|
||||||
|
- Consistent build process across platforms
|
||||||
|
- Automated deployment pipelines
|
||||||
|
- Quality gates for code merging
|
||||||
|
- Environment-specific configurations
|
||||||
|
|
||||||
|
This expanded documentation provides:
|
||||||
|
1. Clear principles for development
|
||||||
|
2. Practical implementation guidelines
|
||||||
|
3. Real-world examples
|
||||||
|
4. TypeScript integration
|
||||||
|
5. Best practices for Time Safari
|
||||||
16
.cursor/rules/ts-cross-platform-rule.mdc
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
description:
|
||||||
|
globs:
|
||||||
|
alwaysApply: true
|
||||||
|
---
|
||||||
|
- all cross platform builds need to conform to [PlatformService.ts](mdc:src/services/PlatformService.ts), and [PlatformServiceFactory.ts](mdc:src/services/PlatformServiceFactory.ts)
|
||||||
|
- [CapacitorPlatformService.ts](mdc:src/services/platforms/CapacitorPlatformService.ts) is used for mobile both iOS and Android
|
||||||
|
- [ElectronPlatformService.ts](mdc:src/services/platforms/ElectronPlatformService.ts) is used for cross-platform (Windows, MacOS, and Linux) desktop builds using Electron.
|
||||||
|
- [WebPlatformService.ts](mdc:src/services/platforms/WebPlatformService.ts) is used for traditional web browsers and PWA (Progressive Web Applications)
|
||||||
|
- [PyWebViewPlatformService.ts](mdc:src/services/platforms/PyWebViewPlatformService.ts) is used for handling a electron-like desktop application which can run Python
|
||||||
|
- Vite is used to differentiate builds for platforms
|
||||||
|
- @vite.config.mts is used for general configuration which uses environment variables to determine next actions
|
||||||
|
- @vite.config.common.mts handles common features in vite builds.
|
||||||
|
- [vite.config.capacitor.mts](mdc:vite.config.capacitor.mts) handles features of Vite builds for capacitor
|
||||||
|
- [vite.config.electron.mts](mdc:vite.config.electron.mts) handles features of Vite builds for electron
|
||||||
|
- [vite.config.web.mts](mdc:vite.config.web.mts) handles features of Vite builds for traditional web browsers and PWAs
|
||||||
@@ -1,5 +1,12 @@
|
|||||||
|
# Only the variables that start with VITE_ are seen in the application import.meta.env in Vue.
|
||||||
|
|
||||||
# I tried and failed to set things here with vue-cli-service but
|
# iOS doesn't like spaces in the app title.
|
||||||
# things may be more reliable with vite so let's try again.
|
TIME_SAFARI_APP_TITLE="TimeSafari_Dev"
|
||||||
|
VITE_APP_SERVER=http://localhost:3000
|
||||||
VITE_APP_SERVER=http://localhost:8080
|
# This is the claim ID for actions in the BVC project, with the JWT ID on this environment (not production).
|
||||||
|
VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HWE8FWHQ1YGP7GFZYYPS272F
|
||||||
|
VITE_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000
|
||||||
|
# Using shared server by default to ease setup, which works for shared test users.
|
||||||
|
VITE_DEFAULT_IMAGE_API_SERVER=https://test-image-api.timesafari.app
|
||||||
|
VITE_DEFAULT_PARTNER_API_SERVER=http://localhost:3000
|
||||||
|
VITE_PASSKEYS_ENABLED=true
|
||||||
|
|||||||
6
.env.example
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Admin DID credentials
|
||||||
|
ADMIN_DID=did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F
|
||||||
|
ADMIN_PRIVATE_KEY=2b6472c026ec2aa2c4235c994a63868fc9212d18b58f6cbfe861b52e71330f5b
|
||||||
|
|
||||||
|
# API Configuration
|
||||||
|
ENDORSER_API_URL=https://test-api.endorser.ch/api/v2/claim
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
# Only the variables that start with VITE_ are seen in the application import.meta.env in Vue.
|
# Only the variables that start with VITE_ are seen in the application import.meta.env in Vue.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
VITE_APP_SERVER=https://timesafari.app
|
VITE_APP_SERVER=https://timesafari.app
|
||||||
|
# This is the claim ID for actions in the BVC project.
|
||||||
VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01GXYPFF7FA03NXKPYY142PY4H
|
VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01GXYPFF7FA03NXKPYY142PY4H
|
||||||
VITE_DEFAULT_ENDORSER_API_SERVER=https://api.endorser.ch
|
VITE_DEFAULT_ENDORSER_API_SERVER=https://api.endorser.ch
|
||||||
|
|
||||||
VITE_DEFAULT_IMAGE_API_SERVER=https://image-api.timesafari.app
|
VITE_DEFAULT_IMAGE_API_SERVER=https://image-api.timesafari.app
|
||||||
VITE_DEFAULT_PARTNER_API_SERVER=https://partner-api.endorser.ch
|
VITE_DEFAULT_PARTNER_API_SERVER=https://partner-api.endorser.ch
|
||||||
|
|||||||
12
.env.staging
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Only the variables that start with VITE_ are seen in the application import.meta.env in Vue.
|
||||||
|
|
||||||
|
# iOS doesn't like spaces in the app title.
|
||||||
|
TIME_SAFARI_APP_TITLE="TimeSafari_Test"
|
||||||
|
VITE_APP_SERVER=https://test.timesafari.app
|
||||||
|
# This is the claim ID for actions in the BVC project, with the JWT ID on this environment (not production).
|
||||||
|
VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HWE8FWHQ1YGP7GFZYYPS272F
|
||||||
|
VITE_DEFAULT_ENDORSER_API_SERVER=https://test-api.endorser.ch
|
||||||
|
|
||||||
|
VITE_DEFAULT_IMAGE_API_SERVER=https://test-image-api.timesafari.app
|
||||||
|
VITE_DEFAULT_PARTNER_API_SERVER=https://test-partner-api.endorser.ch
|
||||||
|
VITE_PASSKEYS_ENABLED=true
|
||||||
34
.eslintrc.js
@@ -1,34 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
root: true,
|
|
||||||
env: {
|
|
||||||
node: true,
|
|
||||||
es2022: true,
|
|
||||||
},
|
|
||||||
extends: [
|
|
||||||
"plugin:vue/vue3-essential",
|
|
||||||
"eslint:recommended",
|
|
||||||
"@vue/typescript/recommended",
|
|
||||||
"plugin:prettier/recommended",
|
|
||||||
],
|
|
||||||
// parserOptions: {
|
|
||||||
// ecmaVersion: 2020,
|
|
||||||
// },
|
|
||||||
rules: {
|
|
||||||
"max-len": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
code: 120,
|
|
||||||
ignoreComments: true, // why does this not make it allow comment of any length?
|
|
||||||
ignorePattern: '^\\s*class="[^"]*"$',
|
|
||||||
ignoreStrings: true,
|
|
||||||
ignoreTemplateLiterals: true,
|
|
||||||
ignoreTrailingComments: true,
|
|
||||||
ignoreUrls: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
||||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
||||||
// "prettier/prettier": ["warn", { printWidth: 120 }], // removes errors but adds thousands of warnings
|
|
||||||
"@typescript-eslint/no-unnecessary-type-constraint": "off",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
57
.eslintrc.json
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"root": true,
|
||||||
|
"env": {
|
||||||
|
"node": true,
|
||||||
|
"browser": true,
|
||||||
|
"es2022": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:vue/vue3-recommended",
|
||||||
|
"eslint:recommended",
|
||||||
|
"@vue/typescript/recommended",
|
||||||
|
"plugin:prettier/recommended"
|
||||||
|
],
|
||||||
|
"parser": "vue-eslint-parser",
|
||||||
|
"parserOptions": {
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"ecmaVersion": 2022,
|
||||||
|
"sourceType": "module",
|
||||||
|
"extraFileExtensions": [".vue"],
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"jsx": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
"@typescript-eslint",
|
||||||
|
"vue",
|
||||||
|
"prettier"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"no-console": "warn",
|
||||||
|
"no-debugger": "warn",
|
||||||
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"vue/multi-word-component-names": "off",
|
||||||
|
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
||||||
|
"@typescript-eslint/no-unnecessary-type-constraint": "off",
|
||||||
|
"vue/no-parsing-error": ["error", {
|
||||||
|
"x-invalid-end-tag": false,
|
||||||
|
"invalid-first-character-of-tag-name": false
|
||||||
|
}],
|
||||||
|
"vue/no-v-html": "warn",
|
||||||
|
"prettier/prettier": ["error", {
|
||||||
|
"singleQuote": true,
|
||||||
|
"semi": false,
|
||||||
|
"trailingComma": "none"
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": ["*.ts", "*.tsx", "*.mts"],
|
||||||
|
"parser": "@typescript-eslint/parser"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["*.js", "*.jsx", "*.mjs"],
|
||||||
|
"parser": "@typescript-eslint/parser"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
55
.eslintrc.mjs
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
export default {
|
||||||
|
root: true,
|
||||||
|
env: {
|
||||||
|
node: true,
|
||||||
|
browser: true,
|
||||||
|
es2022: true
|
||||||
|
},
|
||||||
|
extends: [
|
||||||
|
'plugin:vue/vue3-recommended',
|
||||||
|
'eslint:recommended',
|
||||||
|
'@vue/typescript/recommended'
|
||||||
|
],
|
||||||
|
parser: 'vue-eslint-parser',
|
||||||
|
parserOptions: {
|
||||||
|
parser: {
|
||||||
|
'ts': '@typescript-eslint/parser',
|
||||||
|
'js': '@typescript-eslint/parser',
|
||||||
|
'<template>': 'espree'
|
||||||
|
},
|
||||||
|
ecmaVersion: 2022,
|
||||||
|
sourceType: 'module',
|
||||||
|
extraFileExtensions: ['.vue'],
|
||||||
|
ecmaFeatures: {
|
||||||
|
jsx: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
'@typescript-eslint',
|
||||||
|
'vue'
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
'vue/multi-word-component-names': 'off',
|
||||||
|
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }]
|
||||||
|
},
|
||||||
|
overrides: [
|
||||||
|
{
|
||||||
|
files: ['*.ts', '*.tsx', '*.mts'],
|
||||||
|
parser: '@typescript-eslint/parser'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['*.js', '*.jsx', '*.mjs'],
|
||||||
|
parser: '@typescript-eslint/parser'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
settings: {
|
||||||
|
'import/resolver': {
|
||||||
|
node: {
|
||||||
|
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', '.mjs', '.mts']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
26
.gitignore
vendored
@@ -1,6 +1,9 @@
|
|||||||
|
squashfs-root
|
||||||
|
dist-electron
|
||||||
|
dist-electon-build
|
||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/dist
|
dist
|
||||||
signature.bin
|
signature.bin
|
||||||
# generated during `npm run build`
|
# generated during `npm run build`
|
||||||
sw_scripts-combined.js
|
sw_scripts-combined.js
|
||||||
@@ -31,3 +34,24 @@ pnpm-debug.log*
|
|||||||
/playwright-report/
|
/playwright-report/
|
||||||
/blob-report/
|
/blob-report/
|
||||||
/playwright/.cache/
|
/playwright/.cache/
|
||||||
|
/dist-electron-build/
|
||||||
|
/dist-capacitor/
|
||||||
|
/test-playwright-results/
|
||||||
|
playwright-tests
|
||||||
|
dist-electron-packages
|
||||||
|
.ruby-version
|
||||||
|
+.env
|
||||||
|
|
||||||
|
# Generated test files
|
||||||
|
.generated/
|
||||||
|
|
||||||
|
.env.default
|
||||||
|
vendor/
|
||||||
|
|
||||||
|
# Build logs
|
||||||
|
build_logs/
|
||||||
|
|
||||||
|
android/app/src/main/assets/public
|
||||||
|
android/app/src/main/res
|
||||||
|
android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
|
||||||
|
android/.gradle/file-system.probe
|
||||||
527
BUILDING.md
Normal file
@@ -0,0 +1,527 @@
|
|||||||
|
# Building TimeSafari
|
||||||
|
|
||||||
|
This guide explains how to build TimeSafari for different platforms.
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
For a quick dev environment setup, use [pkgx](https://pkgx.dev).
|
||||||
|
|
||||||
|
- Node.js (LTS version recommended)
|
||||||
|
- npm (comes with Node.js)
|
||||||
|
- Git
|
||||||
|
- For Android builds: Android Studio with SDK installed
|
||||||
|
- For iOS builds: macOS with Xcode and ruby gems & bundle
|
||||||
|
- pkgx +rubygems.org sh
|
||||||
|
|
||||||
|
- ... and you may have to fix these, especially with pkgx
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gem_path=$(which gem)
|
||||||
|
shortened_path="${gem_path:h:h}"
|
||||||
|
export GEM_HOME=$shortened_path
|
||||||
|
export GEM_PATH=$shortened_path
|
||||||
|
```
|
||||||
|
|
||||||
|
- For desktop builds: Additional build tools based on your OS
|
||||||
|
|
||||||
|
## Forks
|
||||||
|
|
||||||
|
If you have forked this to make your own app, you'll want to customize the iOS & Android files. You can either edit existing ones, or you can remove the `ios` and `android` directories and regenerate them before the `npx cap sync` step in each setup.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx cap add android
|
||||||
|
npx cap add ios
|
||||||
|
```
|
||||||
|
|
||||||
|
You'll also want to edit the deep link configuration (see below).
|
||||||
|
|
||||||
|
## Initial Setup
|
||||||
|
|
||||||
|
Install dependencies:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
## Web Dev Locally
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
## Web Build for Server
|
||||||
|
|
||||||
|
1. Run the production build:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
The built files will be in the `dist` directory.
|
||||||
|
|
||||||
|
2. To test the production build locally:
|
||||||
|
|
||||||
|
You'll likely want to use test locations for the Endorser & image & partner servers; see "DEFAULT_ENDORSER_API_SERVER" & "DEFAULT_IMAGE_API_SERVER" & "DEFAULT_PARTNER_API_SERVER" below.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run serve
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compile and minify for test & production
|
||||||
|
|
||||||
|
* If there are DB changes: before updating the test server, open browser(s) with current version to test DB migrations.
|
||||||
|
|
||||||
|
* `npx prettier --write ./sw_scripts/`
|
||||||
|
|
||||||
|
* Update the ClickUp tasks & CHANGELOG.md & the version in package.json, run `npm install`.
|
||||||
|
|
||||||
|
* Commit everything (since the commit hash is used the app).
|
||||||
|
|
||||||
|
* Put the commit hash in the changelog (which will help you remember to bump the version later).
|
||||||
|
|
||||||
|
* Tag with the new version, [online](https://gitea.anomalistdesign.com/trent_larson/crowd-funder-for-time-pwa/releases) or `git tag 0.3.55 && git push origin 0.3.55`.
|
||||||
|
|
||||||
|
* For test, build the app (because test server is not yet set up to build):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
TIME_SAFARI_APP_TITLE="TimeSafari_Test" VITE_APP_SERVER=https://test.timesafari.app VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HWE8FWHQ1YGP7GFZYYPS272F VITE_DEFAULT_ENDORSER_API_SERVER=https://test-api.endorser.ch VITE_DEFAULT_IMAGE_API_SERVER=https://test-image-api.timesafari.app VITE_DEFAULT_PARTNER_API_SERVER=https://test-partner-api.endorser.ch VITE_PASSKEYS_ENABLED=true npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
... and transfer to the test server:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rsync -azvu -e "ssh -i ~/.ssh/..." dist ubuntutest@test.timesafari.app:time-safari
|
||||||
|
```
|
||||||
|
|
||||||
|
(Let's replace that with a .env.development or .env.staging file.)
|
||||||
|
|
||||||
|
(Note: The test BVC_MEETUPS_PROJECT_CLAIM_ID does not resolve as a URL because it's only in the test DB and the prod redirect won't redirect there.)
|
||||||
|
|
||||||
|
* For prod, get on the server and run the correct build:
|
||||||
|
|
||||||
|
... and log onto the server:
|
||||||
|
|
||||||
|
* `pkgx +npm sh`
|
||||||
|
|
||||||
|
* `cd crowd-funder-for-time-pwa && git checkout master && git pull && git checkout 0.3.55 && npm install && npm run build && cd -`
|
||||||
|
|
||||||
|
(The plain `npm run build` uses the .env.production file.)
|
||||||
|
|
||||||
|
* Back up the time-safari/dist folder & deploy: `mv time-safari/dist time-safari-dist-prev.0 && mv crowd-funder-for-time-pwa/dist time-safari/`
|
||||||
|
|
||||||
|
* Record the new hash in the changelog. Edit package.json to increment version & add "-beta", `npm install`, and commit. Also record what version is on production.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Desktop Build (Electron)
|
||||||
|
|
||||||
|
### Linux Build
|
||||||
|
|
||||||
|
1. Build the electron app in production mode:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build:electron-prod
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Package the Electron app for Linux:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# For AppImage (recommended)
|
||||||
|
npm run electron:build-linux
|
||||||
|
|
||||||
|
# For .deb package
|
||||||
|
npm run electron:build-linux-deb
|
||||||
|
```
|
||||||
|
|
||||||
|
3. The packaged applications will be in `dist-electron-packages/`:
|
||||||
|
- AppImage: `dist-electron-packages/TimeSafari-x.x.x.AppImage`
|
||||||
|
- DEB: `dist-electron-packages/timesafari_x.x.x_amd64.deb`
|
||||||
|
|
||||||
|
### Running the Packaged App
|
||||||
|
|
||||||
|
- AppImage: Make executable and run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
chmod +x dist-electron-packages/TimeSafari-*.AppImage
|
||||||
|
./dist-electron-packages/TimeSafari-*.AppImage
|
||||||
|
```
|
||||||
|
|
||||||
|
- DEB: Install and run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo dpkg -i dist-electron-packages/timesafari_*_amd64.deb
|
||||||
|
timesafari
|
||||||
|
```
|
||||||
|
|
||||||
|
### Development Testing
|
||||||
|
|
||||||
|
For testing the Electron build before packaging:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Build and run in development mode (includes DevTools)
|
||||||
|
npm run electron:dev
|
||||||
|
|
||||||
|
# Build in production mode and test
|
||||||
|
npm run build:electron-prod && npm run electron:start
|
||||||
|
```
|
||||||
|
|
||||||
|
## Mobile Builds (Capacitor)
|
||||||
|
|
||||||
|
### iOS Build
|
||||||
|
|
||||||
|
Prerequisites: macOS with Xcode installed
|
||||||
|
|
||||||
|
1. Build the web assets:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build:capacitor
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Update iOS project with latest build:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx cap sync ios
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Copy the assets:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p ios/App/App/Assets.xcassets/AppIcon.appiconset
|
||||||
|
npx capacitor-assets generate --ios
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Open the project in Xcode:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx cap open ios
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Use Xcode to build and run on simulator or device.
|
||||||
|
|
||||||
|
#### First-time iOS Configuration
|
||||||
|
|
||||||
|
- Generate certificates inside XCode.
|
||||||
|
|
||||||
|
- Right-click on App and under Signing & Capabilities set the Team.
|
||||||
|
|
||||||
|
### Android Build
|
||||||
|
|
||||||
|
Prerequisites: Android Studio with SDK installed
|
||||||
|
|
||||||
|
1. Build the web assets:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rm -rf dist
|
||||||
|
npm run build:web
|
||||||
|
npm run build:capacitor
|
||||||
|
cd android
|
||||||
|
./gradlew clean
|
||||||
|
./gradlew assembleDebug
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Update Android project with latest build:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx cap sync android
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Copy the assets
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx capacitor-assets generate --android
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Open the project in Android Studio:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx cap open android
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Use Android Studio to build and run on emulator or device.
|
||||||
|
|
||||||
|
## Android Build from the console
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd android
|
||||||
|
./gradlew clean
|
||||||
|
./gradlew build -Dlint.baselines.continue=true
|
||||||
|
cd ..
|
||||||
|
npx cap run android
|
||||||
|
```
|
||||||
|
|
||||||
|
... or, to create the `aab` file, `bundle` instead of `build`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./gradlew bundleDebug -Dlint.baselines.continue=true
|
||||||
|
```
|
||||||
|
|
||||||
|
... or, to create a signed release, add the app/gradle.properties.secrets file (see properties at top of app/build.gradle) and the app/time-safari-upload-key-pkcs12.jks file, then `bundleRelease`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./gradlew bundleRelease -Dlint.baselines.continue=true
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## First-time Android Configuration for deep links
|
||||||
|
|
||||||
|
You must add the following intent filter to the `android/app/src/main/AndroidManifest.xml` file:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<intent-filter android:autoVerify="true">
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
<data android:scheme="timesafari" />
|
||||||
|
</intent-filter>
|
||||||
|
```
|
||||||
|
|
||||||
|
You must also add the following to the `android/app/build.gradle` file:
|
||||||
|
|
||||||
|
```gradle
|
||||||
|
android {
|
||||||
|
// ... existing config ...
|
||||||
|
|
||||||
|
lintOptions {
|
||||||
|
disable 'UnsanitizedFilenameFromContentProvider'
|
||||||
|
abortOnError false
|
||||||
|
baseline file("lint-baseline.xml")
|
||||||
|
|
||||||
|
// Ignore Capacitor module issues
|
||||||
|
ignore 'DefaultLocale'
|
||||||
|
ignore 'UnsanitizedFilenameFromContentProvider'
|
||||||
|
ignore 'LintBaseline'
|
||||||
|
ignore 'LintBaselineFixed'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Modify `/android/build.gradle` to use a stable version of AGP and make sure Kotlin version is compatible.
|
||||||
|
|
||||||
|
```gradle
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
// Use a stable version of AGP
|
||||||
|
classpath 'com.android.tools.build:gradle:8.1.0'
|
||||||
|
|
||||||
|
// Make sure Kotlin version is compatible
|
||||||
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add this to handle version conflicts
|
||||||
|
configurations.all {
|
||||||
|
resolutionStrategy {
|
||||||
|
force 'org.jetbrains.kotlin:kotlin-stdlib:1.8.0'
|
||||||
|
force 'org.jetbrains.kotlin:kotlin-stdlib-common:1.8.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## PyWebView Desktop Build
|
||||||
|
|
||||||
|
### Prerequisites for PyWebView
|
||||||
|
|
||||||
|
- Python 3.8 or higher
|
||||||
|
- pip (Python package manager)
|
||||||
|
- virtualenv (recommended)
|
||||||
|
- System dependencies:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# For Ubuntu/Debian
|
||||||
|
sudo apt-get install python3-webview
|
||||||
|
# or
|
||||||
|
sudo apt-get install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0
|
||||||
|
|
||||||
|
# For Arch Linux
|
||||||
|
sudo pacman -S webkit2gtk python-gobject python-cairo
|
||||||
|
|
||||||
|
# For Fedora
|
||||||
|
sudo dnf install python3-webview
|
||||||
|
# or
|
||||||
|
sudo dnf install python3-gobject python3-cairo webkit2gtk3
|
||||||
|
```
|
||||||
|
|
||||||
|
### Setup
|
||||||
|
|
||||||
|
1. Create and activate a virtual environment (recommended):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python -m venv .venv
|
||||||
|
source .venv/bin/activate # On Linux/macOS
|
||||||
|
# or
|
||||||
|
.venv\Scripts\activate # On Windows
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Install Python dependencies:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
### Troubleshooting
|
||||||
|
|
||||||
|
If encountering PyInstaller version errors:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Try installing the latest stable version
|
||||||
|
pip install --upgrade pyinstaller
|
||||||
|
```
|
||||||
|
|
||||||
|
### Development of PyWebView
|
||||||
|
|
||||||
|
1. Start the PyWebView development build:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run pywebview:dev
|
||||||
|
```
|
||||||
|
|
||||||
|
### Building for Distribution
|
||||||
|
|
||||||
|
#### Linux
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run pywebview:package-linux
|
||||||
|
```
|
||||||
|
|
||||||
|
The packaged application will be in `dist/TimeSafari`
|
||||||
|
|
||||||
|
#### Windows
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run pywebview:package-win
|
||||||
|
```
|
||||||
|
|
||||||
|
The packaged application will be in `dist/TimeSafari`
|
||||||
|
|
||||||
|
#### macOS
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run pywebview:package-mac
|
||||||
|
```
|
||||||
|
|
||||||
|
The packaged application will be in `dist/TimeSafari`
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
Run all tests (requires XCode and Android Studio/device):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run test:all
|
||||||
|
```
|
||||||
|
|
||||||
|
See [TESTING.md](test-playwright/TESTING.md) for more details.
|
||||||
|
|
||||||
|
## Linting
|
||||||
|
|
||||||
|
Check code style:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run lint
|
||||||
|
```
|
||||||
|
|
||||||
|
Fix code style issues:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run lint-fix
|
||||||
|
```
|
||||||
|
|
||||||
|
## Environment Configuration
|
||||||
|
|
||||||
|
See `.env.*` files for configuration.
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- The application uses PWA (Progressive Web App) features for web builds
|
||||||
|
- Electron builds disable PWA features automatically
|
||||||
|
- Build output directories:
|
||||||
|
- Web: `dist/`
|
||||||
|
- Electron: `dist-electron/`
|
||||||
|
- Capacitor: `dist-capacitor/`
|
||||||
|
|
||||||
|
## Deployment
|
||||||
|
|
||||||
|
### Version Management
|
||||||
|
|
||||||
|
1. Update CHANGELOG.md with new changes
|
||||||
|
2. Update version in package.json
|
||||||
|
3. Commit changes and tag release:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git tag <VERSION_TAG>
|
||||||
|
git push origin <VERSION_TAG>
|
||||||
|
```
|
||||||
|
|
||||||
|
4. After deployment, update package.json with next version + "-beta"
|
||||||
|
|
||||||
|
### Test Server
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Build using staging environment
|
||||||
|
npm run build -- --mode staging
|
||||||
|
|
||||||
|
# Deploy to test server
|
||||||
|
rsync -azvu -e "ssh -i ~/.ssh/<YOUR_KEY>" dist ubuntutest@test.timesafari.app:time-safari/
|
||||||
|
```
|
||||||
|
|
||||||
|
### Production Server
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# On the production server:
|
||||||
|
pkgx +npm sh
|
||||||
|
cd crowd-funder-for-time-pwa
|
||||||
|
git checkout master && git pull
|
||||||
|
git checkout <VERSION_TAG>
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
cd -
|
||||||
|
|
||||||
|
# Backup and deploy
|
||||||
|
mv time-safari/dist time-safari-dist-prev.0 && mv crowd-funder-for-time-pwa/dist time-safari/
|
||||||
|
```
|
||||||
|
|
||||||
|
## Troubleshooting Builds
|
||||||
|
|
||||||
|
### Common Build Issues
|
||||||
|
|
||||||
|
1. **Missing Environment Variables**
|
||||||
|
- Check that all required variables are set in your .env file
|
||||||
|
- For development, ensure local services are running on correct ports
|
||||||
|
|
||||||
|
2. **Electron Build Failures**
|
||||||
|
- Verify Node.js version compatibility
|
||||||
|
- Check that all required dependencies are installed
|
||||||
|
- Ensure proper paths in electron/main.js
|
||||||
|
|
||||||
|
3. **Mobile Build Issues**
|
||||||
|
- For iOS: Xcode command line tools must be installed
|
||||||
|
- For Android: Correct SDK version must be installed
|
||||||
|
- Check Capacitor configuration in capacitor.config.ts
|
||||||
|
|
||||||
|
|
||||||
|
# List all installed packages
|
||||||
|
adb shell pm list packages | grep timesafari
|
||||||
|
|
||||||
|
# Force stop the app (if it's running)
|
||||||
|
adb shell am force-stop app.timesafari
|
||||||
|
|
||||||
|
# Clear app data (if you don't want to fully uninstall)
|
||||||
|
adb shell pm clear app.timesafari
|
||||||
|
|
||||||
|
# Uninstall for all users
|
||||||
|
adb shell pm uninstall -k --user 0 app.timesafari
|
||||||
|
|
||||||
|
# Check if app is installed
|
||||||
|
adb shell pm path app.timesafari
|
||||||
608
CHANGELOG.md
@@ -6,233 +6,356 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
|
||||||
## [0.3.55] - 2025.02.07
|
|
||||||
|
## [0.4.5] - 2025.02.23
|
||||||
### Added
|
### Added
|
||||||
|
- Total amounts of gives on project page
|
||||||
|
### Changed in DB or environment
|
||||||
|
- Requires Endorser.ch version 4.2.6+
|
||||||
|
|
||||||
|
|
||||||
|
## [0.4.4] - 2025.02.17
|
||||||
|
|
||||||
|
### Fixed in 0.4.4
|
||||||
|
|
||||||
|
- On production (due to data?) the search results would disappear after scrolling down. Now we don't show any results when going to the people map with a shortcut.
|
||||||
|
|
||||||
|
## [0.4.3] - 2025.02.17
|
||||||
|
|
||||||
|
### Added in 0.4.3
|
||||||
|
|
||||||
|
- Discover query parameter searchPeople to go directly to the people map
|
||||||
|
|
||||||
|
## [0.4.2] - 2025.02.17
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Capacitor on iOS and Android
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Path issues
|
||||||
|
|
||||||
|
## [0.4.1] - 2025.02.16
|
||||||
|
|
||||||
|
### Fixed in 0.4.1
|
||||||
|
|
||||||
|
- nostr build issue
|
||||||
|
- Linting
|
||||||
|
|
||||||
|
## [0.4.0] - 2025.02.14
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Images in the home feed now take up the full width of the card.
|
||||||
|
- Clicking the image previously, would open the image in a new tab. Now, clicking the image opens the image in a lightbox view.
|
||||||
|
|
||||||
|
### Added in 0.4.0
|
||||||
|
|
||||||
|
- Clicking an image also now displays an in-app lightbox view of the image.
|
||||||
|
- The lightbox view includes a download button for the image in mobile view.
|
||||||
|
|
||||||
|
## [0.3.57] - 2025.02.11
|
||||||
|
|
||||||
|
### Added in 0.3.57
|
||||||
|
|
||||||
|
- Automatic user creation in onboarding meetings
|
||||||
|
|
||||||
|
## [0.3.55] - 2025.02.07
|
||||||
|
|
||||||
|
### Added in 0.3.55
|
||||||
|
|
||||||
- End time for projects
|
- End time for projects
|
||||||
|
|
||||||
|
|
||||||
## [0.3.54] - 2025.02.06
|
## [0.3.54] - 2025.02.06
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.54
|
||||||
|
|
||||||
- Group onboarding meetings
|
- Group onboarding meetings
|
||||||
|
|
||||||
|
|
||||||
## [0.3.53] - 2025.01.30
|
## [0.3.53] - 2025.01.30
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.53
|
||||||
|
|
||||||
- Hints for contacting the creator of a project
|
- Hints for contacting the creator of a project
|
||||||
|
|
||||||
|
|
||||||
## [0.3.52] - 2025.01.22
|
## [0.3.52] - 2025.01.22
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.52
|
||||||
|
|
||||||
- User profile endpoint server for map was broken.
|
- User profile endpoint server for map was broken.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.51] - 2025.01.22
|
## [0.3.51] - 2025.01.22
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.51
|
||||||
|
|
||||||
- User profile map jumped on first zoom.
|
- User profile map jumped on first zoom.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.50] - 2025.01.20 - b9fedcd3fd3e34c3fb0fc79150d1a81a76eaeb40
|
## [0.3.50] - 2025.01.20 - b9fedcd3fd3e34c3fb0fc79150d1a81a76eaeb40
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.50
|
||||||
|
|
||||||
- User public profiles
|
- User public profiles
|
||||||
|
|
||||||
|
|
||||||
## [0.3.49] - 2025.01.09 - 36301ed238ff84df25bb11a8d44a295ee7eaf0f8
|
## [0.3.49] - 2025.01.09 - 36301ed238ff84df25bb11a8d44a295ee7eaf0f8
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.49
|
||||||
|
|
||||||
- Make all external contact links direct to the contact-import page.
|
- Make all external contact links direct to the contact-import page.
|
||||||
- Handle all new-single-contact JWTs in the contacts page, and multiple-contact JWTs in the contacts-import page.
|
- Handle all new-single-contact JWTs in the contacts page, and multiple-contact JWTs in the contacts-import page.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.48] - 2025.01.08 - 398f3e64a376789f7eb1c400cd886f5a2cacd588 (but app shows 07c4e58)
|
## [0.3.48] - 2025.01.08 - 398f3e64a376789f7eb1c400cd886f5a2cacd588 (but app shows 07c4e58)
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.48
|
||||||
|
|
||||||
- More sanity-checks on contact-import JWT
|
- More sanity-checks on contact-import JWT
|
||||||
|
|
||||||
|
|
||||||
## [0.3.47] - 2025.01.06 - 5bf6dd1ee32ca7cc46d39bd7afca58365b422f93
|
## [0.3.47] - 2025.01.06 - 5bf6dd1ee32ca7cc46d39bd7afca58365b422f93
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.47
|
||||||
|
|
||||||
- Notes on contacts page with new contact-edit page
|
- Notes on contacts page with new contact-edit page
|
||||||
- Contact methods (only on contact-edit page and under DID details)
|
- Contact methods (only on contact-edit page and under DID details)
|
||||||
- DID view with no DID shows user's info.
|
- DID view with no DID shows user's info.
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.47
|
||||||
|
|
||||||
- URL for user's contact info is now URL to this app (not endorser.ch).
|
- URL for user's contact info is now URL to this app (not endorser.ch).
|
||||||
- Extended details (eg. full claim) is beneath details link on claim page.
|
- Extended details (eg. full claim) is beneath details link on claim page.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.46] - 2025.01.03 - 9e7056616b5e5acc51e5a8cf7354d408029fefb3
|
## [0.3.46] - 2025.01.03 - 9e7056616b5e5acc51e5a8cf7354d408029fefb3
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.46
|
||||||
|
|
||||||
- More action-oriented questions for the gift prompts
|
- More action-oriented questions for the gift prompts
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.46
|
||||||
|
|
||||||
- Contact-list import set visibility for all, even if not chosen.
|
- Contact-list import set visibility for all, even if not chosen.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.45] - 2025.01.01 - 65402dc68ce69ccc6cb9aa8d2e7a9249bf4298e0
|
## [0.3.45] - 2025.01.01 - 65402dc68ce69ccc6cb9aa8d2e7a9249bf4298e0
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.45
|
||||||
|
|
||||||
- Previous project links stayed when following a link.
|
- Previous project links stayed when following a link.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.44] - 2024.12.31 - 694b22987b05482e4527c2478bbe15e6b6f3b532
|
## [0.3.44] - 2024.12.31 - 694b22987b05482e4527c2478bbe15e6b6f3b532
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.44
|
||||||
|
|
||||||
- Project counts on a map
|
- Project counts on a map
|
||||||
|
|
||||||
|
|
||||||
## [0.3.42] - 2024.12.27 - 9751934bc24a1040415a8cfeacbae59ed91f92a5
|
## [0.3.42] - 2024.12.27 - 9751934bc24a1040415a8cfeacbae59ed91f92a5
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.42
|
||||||
|
|
||||||
- Link from certificate page to the claim
|
- Link from certificate page to the claim
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.42
|
||||||
|
|
||||||
- Contact data sharing is now a verified JWT.
|
- Contact data sharing is now a verified JWT.
|
||||||
- Feed pictures are larger.
|
- Feed pictures are larger.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.41] - 2024.12.21 - ff6d14138f26daea6216b051562f0a04681f69fc
|
## [0.3.41] - 2024.12.21 - ff6d14138f26daea6216b051562f0a04681f69fc
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.41
|
||||||
|
|
||||||
- Link from certificate page to the claim
|
- Link from certificate page to the claim
|
||||||
|
|
||||||
|
|
||||||
## [0.3.40] - 2024.12.20 - 77290d9fed3c364243793dc3e9bfe2e994a016b8
|
## [0.3.40] - 2024.12.20 - 77290d9fed3c364243793dc3e9bfe2e994a016b8
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.40
|
||||||
|
|
||||||
- Only show issuer on certificate if it's not the agent.
|
- Only show issuer on certificate if it's not the agent.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.39] - 2024.12.20 - d8819155e2acd2b57fdab523168fa5d1d09e80cc
|
## [0.3.39] - 2024.12.20 - d8819155e2acd2b57fdab523168fa5d1d09e80cc
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.39
|
||||||
|
|
||||||
- Page for a framed claim certificate
|
- Page for a framed claim certificate
|
||||||
|
|
||||||
|
|
||||||
## [0.3.38] - 2024.12.14 - f8cae5ad4fee1f114320dcce052299eab12108b2
|
## [0.3.38] - 2024.12.14 - f8cae5ad4fee1f114320dcce052299eab12108b2
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.38
|
||||||
|
|
||||||
- Error on BVC confirmation screen (from IndexedDB refactor)
|
- Error on BVC confirmation screen (from IndexedDB refactor)
|
||||||
|
|
||||||
|
|
||||||
## [0.3.37] - 2024.12.13 - 4d805b43cd25eed73cdd6651f36ad1ec8c109555
|
## [0.3.37] - 2024.12.13 - 4d805b43cd25eed73cdd6651f36ad1ec8c109555
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.37
|
||||||
|
|
||||||
- Record a give from a project on the project page.
|
- Record a give from a project on the project page.
|
||||||
- New button on home page opens the gifted dialog.
|
- New button on home page opens the gifted dialog.
|
||||||
- On confirmation buttons on the project page gives, mark when unavailable and explain why.
|
- On confirmation buttons on the project page gives, mark when unavailable and explain why.
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.37
|
||||||
|
|
||||||
- Moved the secret into IndexedDB (and out of localStorage) for more reliability.
|
- Moved the secret into IndexedDB (and out of localStorage) for more reliability.
|
||||||
- New "invite" destination page helps troubleshoot when JWT link doesn't come through.
|
- New "invite" destination page helps troubleshoot when JWT link doesn't come through.
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.37
|
||||||
|
|
||||||
- Problem showing claim issuer name
|
- Problem showing claim issuer name
|
||||||
- Problem going "back" from a project page
|
- Problem going "back" from a project page
|
||||||
|
|
||||||
|
|
||||||
## [0.3.36] - 2024.11.24 - c8d23647d165016f8a8f575e13d32583242e53ac
|
## [0.3.36] - 2024.11.24 - c8d23647d165016f8a8f575e13d32583242e53ac
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.36
|
||||||
|
|
||||||
- More friendly default reminder message
|
- More friendly default reminder message
|
||||||
- Blue borders around people to indicate clickability
|
- Blue borders around people to indicate clickability
|
||||||
|
|
||||||
|
|
||||||
## [0.3.35] - 2024.11.24 - bff7d0a6320b70349185e26bfac72e3bb17f76df
|
## [0.3.35] - 2024.11.24 - bff7d0a6320b70349185e26bfac72e3bb17f76df
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.35
|
||||||
|
|
||||||
- Daily reliable, hard-coded notification message
|
- Daily reliable, hard-coded notification message
|
||||||
- Setting to change the partner API server
|
- Setting to change the partner API server
|
||||||
|
|
||||||
|
|
||||||
## [0.3.33] - 2024.11.07 - adb7b16ecf1343c39cba71a7d6bb0e7a973e1102
|
## [0.3.33] - 2024.11.07 - adb7b16ecf1343c39cba71a7d6bb0e7a973e1102
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.33
|
||||||
|
|
||||||
- Affirm Delivery button on offer claim page didn't work.
|
- Affirm Delivery button on offer claim page didn't work.
|
||||||
- Plans were not showing by default on project page.
|
- Plans were not showing by default on project page.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.32] - 2024.11.06 - 9a3fa38a3fd28f977e06f0265fc39e635c9c5ccd
|
## [0.3.32] - 2024.11.06 - 9a3fa38a3fd28f977e06f0265fc39e635c9c5ccd
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.32
|
||||||
|
|
||||||
- Highlight in green new offers to user & to user's projects on the front page.
|
- Highlight in green new offers to user & to user's projects on the front page.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.31] - 2024.10.25 - 07c02ab98a09d293dd90d9289a7872e7d681d296
|
## [0.3.31] - 2024.10.25 - 07c02ab98a09d293dd90d9289a7872e7d681d296
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.31
|
||||||
|
|
||||||
- Onboarding messages about offers
|
- Onboarding messages about offers
|
||||||
|
|
||||||
|
|
||||||
## [0.3.30]
|
## [0.3.30]
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.30
|
||||||
|
|
||||||
- Onboarding messages
|
- Onboarding messages
|
||||||
|
|
||||||
|
|
||||||
## [0.3.29] - 2024.10.09 - babd3832bdfe0c40eaa3869de1b41399a51713c1
|
## [0.3.29] - 2024.10.09 - babd3832bdfe0c40eaa3869de1b41399a51713c1
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.29
|
||||||
|
|
||||||
- Invite for a contact to join immediately
|
- Invite for a contact to join immediately
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.29
|
||||||
|
|
||||||
- Send signed data to nostr endpoints to verify public key ownership.
|
- Send signed data to nostr endpoints to verify public key ownership.
|
||||||
- Enhanced help & help onboarding.
|
- Enhanced help & help onboarding.
|
||||||
|
|
||||||
### Changed in DB or environment
|
### Changed in DB or environment
|
||||||
|
|
||||||
- Uses Endorser.ch version 4.1.1
|
- Uses Endorser.ch version 4.1.1
|
||||||
|
|
||||||
|
|
||||||
## [0.3.28] - 2024.09.30 - 84720b94049d29cc0ddd99c50cef2e7176130133
|
## [0.3.28] - 2024.09.30 - 84720b94049d29cc0ddd99c50cef2e7176130133
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.28
|
||||||
|
|
||||||
- Posting to nostr apps Trustroots & TripHopping
|
- Posting to nostr apps Trustroots & TripHopping
|
||||||
- Display of providers on claim view page
|
- Display of providers on claim view page
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.28
|
||||||
|
|
||||||
- Switched BVC-meeting-ending gift to be a gift from the group.
|
- Switched BVC-meeting-ending gift to be a gift from the group.
|
||||||
### Changed in DB or environment
|
|
||||||
|
### Changed in DB or environment in 0.3.28
|
||||||
|
|
||||||
- Requires Endorser.ch version 4.1.0
|
- Requires Endorser.ch version 4.1.0
|
||||||
|
|
||||||
|
|
||||||
## [0.3.27] - 2024.09.22 - ee23e6f005e47f5bd6f04d804599f6395371b0e4
|
## [0.3.27] - 2024.09.22 - ee23e6f005e47f5bd6f04d804599f6395371b0e4
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.27
|
||||||
|
|
||||||
- Error loading BVC claims to confirm
|
- Error loading BVC claims to confirm
|
||||||
- Really allow visibility of bulk-imported contacts
|
- Really allow visibility of bulk-imported contacts
|
||||||
|
|
||||||
|
|
||||||
## [0.3.26] - 2024.09.16 - 8263ed2b29947b3ccc6f3133bbc9454c222bce28
|
## [0.3.26] - 2024.09.16 - 8263ed2b29947b3ccc6f3133bbc9454c222bce28
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.26
|
||||||
|
|
||||||
- Separate 'isRegistered' flag for each account
|
- Separate 'isRegistered' flag for each account
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.26
|
||||||
|
|
||||||
- Failure to assign offers to their project
|
- Failure to assign offers to their project
|
||||||
- Alert when looking at one's own activity if not in contacts.
|
- Alert when looking at one's own activity if not in contacts.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.25] - 2024.08.30 - dcbe02d877aecb4cdef2643d90e6595d246a9f82
|
## [0.3.25] - 2024.08.30 - dcbe02d877aecb4cdef2643d90e6595d246a9f82
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.25
|
||||||
|
|
||||||
- "Ideas" now jumps directly to giving prompt or contact list.
|
- "Ideas" now jumps directly to giving prompt or contact list.
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.25
|
||||||
|
|
||||||
- Empty giver name on gifted-details view
|
- Empty giver name on gifted-details view
|
||||||
- Previously visited project would show up on the giving-details page.
|
- Previously visited project would show up on the giving-details page.
|
||||||
### Removed
|
|
||||||
|
### Removed in 0.3.25
|
||||||
|
|
||||||
- All unnecessary localStorage for project IDs
|
- All unnecessary localStorage for project IDs
|
||||||
|
|
||||||
|
|
||||||
## [0.3.23] - 2024.08.30
|
## [0.3.23] - 2024.08.30
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.23
|
||||||
|
|
||||||
- Sections in Help for different kinds of users
|
- Sections in Help for different kinds of users
|
||||||
- Discovery page parameters so that links with search text work
|
- Discovery page parameters so that links with search text work
|
||||||
- Message when no projects are found
|
- Message when no projects are found
|
||||||
|
|
||||||
|
|
||||||
## [0.3.21] - 2024.08.24 - a7b89f4bb6da928d56daeffaae7741fa74cc80bf
|
## [0.3.21] - 2024.08.24 - a7b89f4bb6da928d56daeffaae7741fa74cc80bf
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.21
|
||||||
|
|
||||||
- Send list of contacts to someone, and move individual contact actions to detail page.
|
- Send list of contacts to someone, and move individual contact actions to detail page.
|
||||||
- Prompt for name in pop-up, and send to different contact-sharing screens.
|
- Prompt for name in pop-up, and send to different contact-sharing screens.
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.21
|
||||||
|
|
||||||
- Moved contact actions from list onto detail page
|
- Moved contact actions from list onto detail page
|
||||||
|
|
||||||
|
|
||||||
## [0.3.20] - 2024.08.18 - 4064eb75a9743ca268bf00016fa0a5fc5dec4e30
|
## [0.3.20] - 2024.08.18 - 4064eb75a9743ca268bf00016fa0a5fc5dec4e30
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.20
|
||||||
|
|
||||||
- Bad "give" verbiage on offer page
|
- Bad "give" verbiage on offer page
|
||||||
- Failing offer test
|
- Failing offer test
|
||||||
|
|
||||||
|
|
||||||
## [0.3.19] - 2024.08.18 - ee9c14942ceba993bf21a11249601f205158ec71
|
## [0.3.19] - 2024.08.18 - ee9c14942ceba993bf21a11249601f205158ec71
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.19
|
||||||
|
|
||||||
- Update of an offer
|
- Update of an offer
|
||||||
- Recipient description in offer list
|
- Recipient description in offer list
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.19
|
||||||
|
|
||||||
- List of offers wasn't showing.
|
- List of offers wasn't showing.
|
||||||
- Destination page after sharing photo was wrong.
|
- Destination page after sharing photo was wrong.
|
||||||
|
|
||||||
|
|
||||||
## [0.3.17] - 2024.07.11 - cefa384ff1a2d922848c370640c096c529920fab
|
## [0.3.17] - 2024.07.11 - cefa384ff1a2d922848c370640c096c529920fab
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.17
|
||||||
|
|
||||||
- Photos on more screens
|
- Photos on more screens
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.17
|
||||||
|
|
||||||
- Share of a photo, including sharing a photo from webkit/Safari which never worked
|
- Share of a photo, including sharing a photo from webkit/Safari which never worked
|
||||||
### Changed in DB or environment
|
|
||||||
|
### Changed in DB or environment in 0.3.17
|
||||||
|
|
||||||
- Nothing (though there's a new temp field in IndexedDB)
|
- Nothing (though there's a new temp field in IndexedDB)
|
||||||
|
|
||||||
|
|
||||||
## [0.3.15] - 2024.08.04 - c8f0f2c2b16b9f0b4b47d40f7bf29058c7baa68e
|
## [0.3.15] - 2024.08.04 - c8f0f2c2b16b9f0b4b47d40f7bf29058c7baa68e
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.15
|
||||||
|
|
||||||
- Edit gives
|
- Edit gives
|
||||||
- Page to edit claim JSON before submitting
|
- Page to edit claim JSON before submitting
|
||||||
- Update of imported contacts
|
- Update of imported contacts
|
||||||
@@ -243,263 +366,364 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Cache signatures for reports for passkey-signed requests
|
- Cache signatures for reports for passkey-signed requests
|
||||||
- Refactor: consolidate alternative signing, eg. for passkeys & did:peer
|
- Refactor: consolidate alternative signing, eg. for passkeys & did:peer
|
||||||
- Playwright tests
|
- Playwright tests
|
||||||
### Changed
|
|
||||||
- Linked projects display below description (instead of at bottom)
|
|
||||||
### Fixed
|
|
||||||
- Visibility toggle appearance
|
|
||||||
### Changed in DB or environment
|
|
||||||
- Nothing
|
|
||||||
|
|
||||||
|
### Changed in 0.3.15
|
||||||
|
|
||||||
|
- Linked projects display below description (instead of at bottom)
|
||||||
|
|
||||||
|
### Fixed in 0.3.15
|
||||||
|
|
||||||
|
- Visibility toggle appearance
|
||||||
|
|
||||||
|
### Changed in DB or environment in 0.3.15
|
||||||
|
|
||||||
|
- Nothing
|
||||||
|
|
||||||
## [0.3.14] - 2024.06.22 - 1611d22892f683f43856d2503eee7f391b6bbce8
|
## [0.3.14] - 2024.06.22 - 1611d22892f683f43856d2503eee7f391b6bbce8
|
||||||
### Added
|
|
||||||
- Clearer give-confirmation screen
|
|
||||||
- BX currency https://thebx.medium.com/
|
|
||||||
- Deselection of project on gifted details page
|
|
||||||
### Fixed
|
|
||||||
- Don't show registration pop-up for a new contact that is registered
|
|
||||||
### Changed in DB or environment
|
|
||||||
- Nothing
|
|
||||||
|
|
||||||
|
### Added in 0.3.14
|
||||||
|
|
||||||
|
- Clearer give-confirmation screen
|
||||||
|
- BX currency <https://thebx.medium.com/>
|
||||||
|
- Deselection of project on gifted details page
|
||||||
|
|
||||||
|
### Fixed in 0.3.14
|
||||||
|
|
||||||
|
- Don't show registration pop-up for a new contact that is registered
|
||||||
|
|
||||||
|
### Changed in DB or environment in 0.3.14
|
||||||
|
|
||||||
|
- Nothing
|
||||||
|
|
||||||
## [0.3.13] - 2024.05.24 - 08b67984e443c58d9178ad3776013b0bce7afddc
|
## [0.3.13] - 2024.05.24 - 08b67984e443c58d9178ad3776013b0bce7afddc
|
||||||
### Added
|
|
||||||
- Photos on projects
|
|
||||||
### Changed in DB or environment
|
|
||||||
- Nothing
|
|
||||||
|
|
||||||
|
### Added in 0.3.13
|
||||||
|
|
||||||
|
- Photos on projects
|
||||||
|
|
||||||
|
### Changed in DB or environment in 0.3.13
|
||||||
|
|
||||||
|
- Nothing
|
||||||
|
|
||||||
## [0.3.12] - 2024.05.19 - 141fb39ad19c44d82fe1a33bf85115beacf50870
|
## [0.3.12] - 2024.05.19 - 141fb39ad19c44d82fe1a33bf85115beacf50870
|
||||||
### Fixed
|
|
||||||
- Photo share (share_target) failed because requests were sent to server
|
|
||||||
### Changed in DB or environment
|
|
||||||
- Nothing
|
|
||||||
|
|
||||||
|
### Fixed in 0.3.12
|
||||||
|
|
||||||
|
- Photo share (share_target) failed because requests were sent to server
|
||||||
|
|
||||||
|
### Changed in DB or environment in 0.3.12
|
||||||
|
|
||||||
|
- Nothing
|
||||||
|
|
||||||
## [0.3.11] - 2024.05.19 - 567bcad88dfb7e9ac8fea72530d1163985e4a7cc
|
## [0.3.11] - 2024.05.19 - 567bcad88dfb7e9ac8fea72530d1163985e4a7cc
|
||||||
### Added
|
|
||||||
- Choose a file for gifts, and a URL for gifts & profiles
|
|
||||||
### Fixed
|
|
||||||
- Multiple button pushes were required to switch camera
|
|
||||||
### Changed in DB or environment
|
|
||||||
- Nothing
|
|
||||||
|
|
||||||
|
### Added in 0.3.11
|
||||||
|
|
||||||
|
- Choose a file for gifts, and a URL for gifts & profiles
|
||||||
|
|
||||||
|
### Fixed in 0.3.11
|
||||||
|
|
||||||
|
- Multiple button pushes were required to switch camera
|
||||||
|
|
||||||
|
### Changed in DB or environment in 0.3.11
|
||||||
|
|
||||||
|
- Nothing
|
||||||
|
|
||||||
## [0.3.10] - 2024.05.11 - 03ac31d98110f7828cf9acb366db8d01b185f64c
|
## [0.3.10] - 2024.05.11 - 03ac31d98110f7828cf9acb366db8d01b185f64c
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.10
|
||||||
|
|
||||||
- Share an image
|
- Share an image
|
||||||
- Choose a file on the device for a profile image
|
- Choose a file on the device for a profile image
|
||||||
### Changed in DB or environment
|
|
||||||
|
### Changed in DB or environment in 0.3.10
|
||||||
|
|
||||||
- Nothing
|
- Nothing
|
||||||
|
|
||||||
|
|
||||||
## [0.3.9] - 2024.04.28 - 874e717e698b93a1ace9f588e675b8a3dccd7617
|
## [0.3.9] - 2024.04.28 - 874e717e698b93a1ace9f588e675b8a3dccd7617
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.9
|
||||||
|
|
||||||
- Offers on contacts page
|
- Offers on contacts page
|
||||||
- Checks on front page until they show as registered
|
- Checks on front page until they show as registered
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.9
|
||||||
|
|
||||||
- Scanned contacts now add immediately and prompt for registration.
|
- Scanned contacts now add immediately and prompt for registration.
|
||||||
- Better UI for gives on contact page
|
- Better UI for gives on contact page
|
||||||
- Better UI for all confirmation messages
|
- Better UI for all confirmation messages
|
||||||
### Fixed
|
|
||||||
- Repeated elements at top of main feed
|
|
||||||
### Changed in DB or environment
|
|
||||||
- Nothing
|
|
||||||
|
|
||||||
|
### Fixed in 0.3.9
|
||||||
|
|
||||||
|
- Repeated elements at top of main feed
|
||||||
|
|
||||||
|
### Changed in DB or environment in 0.3.9
|
||||||
|
|
||||||
|
- Nothing
|
||||||
|
|
||||||
## [0.3.8] - 2024.04.20 - 15c026c80ce03a26cae3ff80b0888934c101c7e2
|
## [0.3.8] - 2024.04.20 - 15c026c80ce03a26cae3ff80b0888934c101c7e2
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.8
|
||||||
|
|
||||||
- Profile image for user
|
- Profile image for user
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.8
|
||||||
|
|
||||||
- Slow loading of home page feed
|
- Slow loading of home page feed
|
||||||
### Changed in DB or environment
|
|
||||||
|
### Changed in DB or environment in 0.3.8
|
||||||
|
|
||||||
- Nothing
|
- Nothing
|
||||||
|
|
||||||
|
|
||||||
## [0.3.7] - 2024.04.10 - cf18f1543a700d62a5f9e764905a4aafe1fb229b
|
## [0.3.7] - 2024.04.10 - cf18f1543a700d62a5f9e764905a4aafe1fb229b
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.7
|
||||||
|
|
||||||
- Filter on home page feed
|
- Filter on home page feed
|
||||||
- Ability to set time of daily notification
|
- Ability to set time of daily notification
|
||||||
- Jump to app on click of notification
|
- Jump to app on click of notification
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.3.7
|
||||||
|
|
||||||
- Built with vite
|
- Built with vite
|
||||||
- Descriptions on home page to include projects
|
- Descriptions on home page to include projects
|
||||||
### Changed in DB or environment
|
|
||||||
|
### Changed in DB or environment in 0.3.7
|
||||||
|
|
||||||
- Nothing
|
- Nothing
|
||||||
|
|
||||||
|
|
||||||
## [0.3.6] - 2024.03.24 - 3a07e31d6313ab95711265562d9023c42916e141
|
## [0.3.6] - 2024.03.24 - 3a07e31d6313ab95711265562d9023c42916e141
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.6
|
||||||
|
|
||||||
- Button to mirror photo during video
|
- Button to mirror photo during video
|
||||||
- More detailed onboarding help screen
|
- More detailed onboarding help screen
|
||||||
- Public-data blurb
|
- Public-data blurb
|
||||||
### Changed in DB or environment
|
|
||||||
|
### Changed in DB or environment in 0.3.6
|
||||||
|
|
||||||
- Nothing
|
- Nothing
|
||||||
|
|
||||||
|
|
||||||
## [0.3.5] - 2024.03.23 - 28754bdfb1e11aa221dd49a5dce4219b69cf6a9d
|
## [0.3.5] - 2024.03.23 - 28754bdfb1e11aa221dd49a5dce4219b69cf6a9d
|
||||||
### Added
|
|
||||||
|
### Added in 0.3.5
|
||||||
|
|
||||||
- Photo on gift records
|
- Photo on gift records
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.3.5
|
||||||
|
|
||||||
- Environment variable for BVC meetings project
|
- Environment variable for BVC meetings project
|
||||||
- Environment variables and build enhancements for test vs prod
|
- Environment variables and build enhancements for test vs prod
|
||||||
### Changed in DB or environment
|
|
||||||
|
### Changed in DB or environment in 0.3.5
|
||||||
|
|
||||||
- New environment variable for image API server
|
- New environment variable for image API server
|
||||||
- Test that a new browser session will get the right default APIs.
|
- Test that a new browser session will get the right default APIs.
|
||||||
- Test that a new browser session will send the right BVC meetings project.
|
- Test that a new browser session will send the right BVC meetings project.
|
||||||
|
|
||||||
|
|
||||||
## [0.2.17] - 2024.03.01 - 3612ea42240c5e1b7d7eff29a39ff18f1b869b36
|
## [0.2.17] - 2024.03.01 - 3612ea42240c5e1b7d7eff29a39ff18f1b869b36
|
||||||
### Added
|
|
||||||
- Shortcut page for Bountiful Voluntaryist Community
|
|
||||||
### Changed
|
|
||||||
- More readable, targeted summaries in home-page feed items
|
|
||||||
### Changed in DB
|
|
||||||
- Nothing
|
|
||||||
|
|
||||||
|
### Added in 0.2.17
|
||||||
|
|
||||||
|
- Shortcut page for Bountiful Voluntaryist Community
|
||||||
|
|
||||||
|
### Changed in 0.2.17
|
||||||
|
|
||||||
|
- More readable, targeted summaries in home-page feed items
|
||||||
|
|
||||||
|
### Changed in DB
|
||||||
|
|
||||||
|
- Nothing
|
||||||
|
|
||||||
## [0.2.14] - 2024.02.14 - 5f9edea1167dbfb64e16648764eed8c09b24eaeb
|
## [0.2.14] - 2024.02.14 - 5f9edea1167dbfb64e16648764eed8c09b24eaeb
|
||||||
### Changed
|
|
||||||
- Combine all service worker scripts into a single file.
|
|
||||||
### Changed in DB
|
|
||||||
- Nothing
|
|
||||||
|
|
||||||
|
### Changed in 0.2.14
|
||||||
|
|
||||||
|
- Combine all service worker scripts into a single file.
|
||||||
|
|
||||||
|
### Changed in DB in 0.2.14
|
||||||
|
|
||||||
|
- Nothing
|
||||||
|
|
||||||
## [0.2.13] - 2024.02.07
|
## [0.2.13] - 2024.02.07
|
||||||
### Added
|
|
||||||
|
### Added in 0.2.13
|
||||||
|
|
||||||
- Display of user's offers
|
- Display of user's offers
|
||||||
- Check for valid DIDs
|
- Check for valid DIDs
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.2.13
|
||||||
|
|
||||||
- Name display on give prompt
|
- Name display on give prompt
|
||||||
- Non-numbers on number input & autocapitalize on URL input
|
- Non-numbers on number input & autocapitalize on URL input
|
||||||
### Changed in DB
|
|
||||||
|
### Changed in DB in 0.2.13
|
||||||
|
|
||||||
- Nothing
|
- Nothing
|
||||||
|
|
||||||
|
|
||||||
## [0.2.12] - 2024.02.01
|
## [0.2.12] - 2024.02.01
|
||||||
### Added
|
|
||||||
|
### Added in 0.2.12
|
||||||
|
|
||||||
- Prompts for gratitude
|
- Prompts for gratitude
|
||||||
|
|
||||||
|
|
||||||
## [0.2.11] - 2024.01.28
|
## [0.2.11] - 2024.01.28
|
||||||
### Added
|
|
||||||
|
### Added in 0.2.11
|
||||||
|
|
||||||
- Actions to share claim data with contacts
|
- Actions to share claim data with contacts
|
||||||
- Bulk CSV import from Endorser Mobile export
|
- Bulk CSV import from Endorser Mobile export
|
||||||
- Dates on give summaries
|
- Dates on give summaries
|
||||||
|
|
||||||
|
|
||||||
## [0.2.10] - 2024.01.18 - 667e1e8890b42de59cd939caca1a01c7a7a702be
|
## [0.2.10] - 2024.01.18 - 667e1e8890b42de59cd939caca1a01c7a7a702be
|
||||||
### Added
|
|
||||||
|
### Added in 0.2.10
|
||||||
|
|
||||||
- Person identicons for contacts
|
- Person identicons for contacts
|
||||||
- Confirmation & delivery directly from project page
|
- Confirmation & delivery directly from project page
|
||||||
- Offer dialog now allows units
|
- Offer dialog now allows units
|
||||||
- Links from claim detail page to the fulfilled project or offer
|
- Links from claim detail page to the fulfilled project or offer
|
||||||
- Link to project from home feed
|
- Link to project from home feed
|
||||||
- Copy to clipboard in more places
|
- Copy to clipboard in more places
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.2.10
|
||||||
|
|
||||||
- "More Contacts" for give on project page now links correctly.
|
- "More Contacts" for give on project page now links correctly.
|
||||||
|
|
||||||
|
|
||||||
## [0.2.9] - 2024.01.15 - e5e702f8a5a53a6efbed48d35f0bc3cee63024a0
|
## [0.2.9] - 2024.01.15 - e5e702f8a5a53a6efbed48d35f0bc3cee63024a0
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.2.9
|
||||||
|
|
||||||
- Set visibility for new contact.
|
- Set visibility for new contact.
|
||||||
|
|
||||||
|
|
||||||
## [0.2.8] - 2024.01.14
|
## [0.2.8] - 2024.01.14
|
||||||
### Added
|
|
||||||
|
### Added in 0.2.8
|
||||||
|
|
||||||
- Automatic ID creation from home page
|
- Automatic ID creation from home page
|
||||||
- Agent who can also edit a project
|
- Agent who can also edit a project
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.2.8
|
||||||
|
|
||||||
- Cannot declare anonymous gift
|
- Cannot declare anonymous gift
|
||||||
|
|
||||||
|
|
||||||
## [0.2.7] - 2024.01.12
|
## [0.2.7] - 2024.01.12
|
||||||
### Added
|
|
||||||
|
### Added in 0.2.7
|
||||||
|
|
||||||
- Give to fulfill a particular offer
|
- Give to fulfill a particular offer
|
||||||
- Give as part of a trade as opposed to a donation
|
- Give as part of a trade as opposed to a donation
|
||||||
- Error notifications on import
|
- Error notifications on import
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.2.7
|
||||||
|
|
||||||
- Library security updates
|
- Library security updates
|
||||||
- Visibility of actions & confirmations on claim page
|
- Visibility of actions & confirmations on claim page
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.2.7
|
||||||
|
|
||||||
- Name of offerer
|
- Name of offerer
|
||||||
|
|
||||||
|
|
||||||
## [0.2.2] - 2024.01.05
|
## [0.2.2] - 2024.01.05
|
||||||
### Added
|
|
||||||
|
### Added in 0.2.2
|
||||||
|
|
||||||
- Check for notification capability on front screen
|
- Check for notification capability on front screen
|
||||||
- Contact next-public-key-hash in manual textual input
|
- Contact next-public-key-hash in manual textual input
|
||||||
- Confirmation for contact visibility change
|
- Confirmation for contact visibility change
|
||||||
- YAML rendering of full claim details
|
- YAML rendering of full claim details
|
||||||
- Hints for onboarding on the contact screen
|
- Hints for onboarding on the contact screen
|
||||||
|
|
||||||
|
|
||||||
## [0.2.0] - 2024.01.04
|
## [0.2.0] - 2024.01.04
|
||||||
### Added
|
|
||||||
|
### Added in 0.2.0
|
||||||
|
|
||||||
- Contact next-public-key-hash
|
- Contact next-public-key-hash
|
||||||
- Icon for Android
|
- Icon for Android
|
||||||
- More thorough messaging and testing for notifications
|
- More thorough messaging and testing for notifications
|
||||||
|
|
||||||
|
|
||||||
## [0.1.9] - 2024.01.01
|
## [0.1.9] - 2024.01.01
|
||||||
### Added
|
|
||||||
|
### Added in 0.1.9
|
||||||
|
|
||||||
- Import for contacts and settings
|
- Import for contacts and settings
|
||||||
- Second download button for DuckDuckGo
|
- Second download button for DuckDuckGo
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.1.9
|
||||||
|
|
||||||
- Removed some keys from Dexie's IndexedDB declarations
|
- Removed some keys from Dexie's IndexedDB declarations
|
||||||
|
|
||||||
|
|
||||||
## [0.1.8] - 2023.12.27- d26d1d360152a7d0e559b68486e85b72b88bd9ff
|
## [0.1.8] - 2023.12.27- d26d1d360152a7d0e559b68486e85b72b88bd9ff
|
||||||
### Added
|
|
||||||
|
### Added in 0.1.8
|
||||||
|
|
||||||
- DB logging for service-worker events
|
- DB logging for service-worker events
|
||||||
- Help page for notifications
|
- Help page for notifications
|
||||||
- Test notification & web-push triggers inside app
|
- Test notification & web-push triggers inside app
|
||||||
- Check that the app is installed
|
- Check that the app is installed
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.1.8
|
||||||
|
|
||||||
- Project issuer display name
|
- Project issuer display name
|
||||||
|
|
||||||
|
|
||||||
## [0.1.7] - 2023.12.19 - 91c6c7c11c71f96006cc876fc946f1f98a274ba2
|
## [0.1.7] - 2023.12.19 - 91c6c7c11c71f96006cc876fc946f1f98a274ba2
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.1.7
|
||||||
|
|
||||||
- Icons
|
- Icons
|
||||||
### Fixed
|
|
||||||
|
### Fixed in 0.1.7
|
||||||
|
|
||||||
- Notification switch now shows message
|
- Notification switch now shows message
|
||||||
- Prod/test server warning message at top of page
|
- Prod/test server warning message at top of page
|
||||||
|
|
||||||
|
|
||||||
## [0.1.6] - 2023.12.17 - b445b1234fbfcf6b37d695373f259aab0eda1118
|
## [0.1.6] - 2023.12.17 - b445b1234fbfcf6b37d695373f259aab0eda1118
|
||||||
### Added
|
|
||||||
|
### Added in 0.1.6
|
||||||
|
|
||||||
- Infinite scroll on home page
|
- Infinite scroll on home page
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.1.6
|
||||||
|
|
||||||
- UI improvements
|
- UI improvements
|
||||||
- Show web-push subscription info
|
- Show web-push subscription info
|
||||||
- Icon
|
- Icon
|
||||||
|
|
||||||
|
|
||||||
## [0.1.5] - 2023.12.09 - 9c36bb509a9bae9bb3306d3bd9eeb144b67aa8ad
|
## [0.1.5] - 2023.12.09 - 9c36bb509a9bae9bb3306d3bd9eeb144b67aa8ad
|
||||||
### Added
|
|
||||||
|
### Added in 0.1.5
|
||||||
|
|
||||||
- Web push notifications (though not finalized)
|
- Web push notifications (though not finalized)
|
||||||
- Credentials details page
|
- Credentials details page
|
||||||
- See more data without an ID
|
- See more data without an ID
|
||||||
- Change units of a give
|
- Change units of a give
|
||||||
|
|
||||||
|
|
||||||
## [0.1.4] - 2023.11.20 - 7311d36726f3667ec4c68f241f91d404273ad4db
|
## [0.1.4] - 2023.11.20 - 7311d36726f3667ec4c68f241f91d404273ad4db
|
||||||
### Added
|
|
||||||
|
### Added in 0.1.4
|
||||||
|
|
||||||
- Offer on a project
|
- Offer on a project
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.1.4
|
||||||
|
|
||||||
- Automatically set as visible when importing a contact
|
- Automatically set as visible when importing a contact
|
||||||
|
|
||||||
|
|
||||||
## [0.1.3] - 2023.11.08 - 910f57ec7d2e50803ae3d04f4b927e0f5219fbde
|
## [0.1.3] - 2023.11.08 - 910f57ec7d2e50803ae3d04f4b927e0f5219fbde
|
||||||
### Added
|
|
||||||
|
### Added in 0.1.3
|
||||||
|
|
||||||
- Contact name editing
|
- Contact name editing
|
||||||
### Changed
|
|
||||||
|
### Changed in 0.1.3
|
||||||
|
|
||||||
- Don't show actions on front page if not registered.
|
- Don't show actions on front page if not registered.
|
||||||
### Removed
|
|
||||||
|
### Removed in 0.1.3
|
||||||
|
|
||||||
- Home page Notiwind test buttons
|
- Home page Notiwind test buttons
|
||||||
|
|
||||||
|
|
||||||
## [0.1.2] - 2023.11.01 - 7f6c93802911a030a89fe3706e18b5c17151e5bb
|
## [0.1.2] - 2023.11.01 - 7f6c93802911a030a89fe3706e18b5c17151e5bb
|
||||||
### Added
|
|
||||||
|
### Added in 0.1.2
|
||||||
|
|
||||||
- Basics: create ID, record a give, declare a project, search, and get notifications.
|
- Basics: create ID, record a give, declare a project, search, and get notifications.
|
||||||
|
|||||||
5
Gemfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "fastlane"
|
||||||
|
gem "cocoapods"
|
||||||
|
|
||||||
321
Gemfile.lock
Normal file
@@ -0,0 +1,321 @@
|
|||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
CFPropertyList (3.0.7)
|
||||||
|
base64
|
||||||
|
nkf
|
||||||
|
rexml
|
||||||
|
activesupport (7.2.2.1)
|
||||||
|
base64
|
||||||
|
benchmark (>= 0.3)
|
||||||
|
bigdecimal
|
||||||
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
||||||
|
connection_pool (>= 2.2.5)
|
||||||
|
drb
|
||||||
|
i18n (>= 1.6, < 2)
|
||||||
|
logger (>= 1.4.2)
|
||||||
|
minitest (>= 5.1)
|
||||||
|
securerandom (>= 0.3)
|
||||||
|
tzinfo (~> 2.0, >= 2.0.5)
|
||||||
|
addressable (2.8.7)
|
||||||
|
public_suffix (>= 2.0.2, < 7.0)
|
||||||
|
algoliasearch (1.27.5)
|
||||||
|
httpclient (~> 2.8, >= 2.8.3)
|
||||||
|
json (>= 1.5.1)
|
||||||
|
artifactory (3.0.17)
|
||||||
|
atomos (0.1.3)
|
||||||
|
aws-eventstream (1.3.2)
|
||||||
|
aws-partitions (1.1066.0)
|
||||||
|
aws-sdk-core (3.220.1)
|
||||||
|
aws-eventstream (~> 1, >= 1.3.0)
|
||||||
|
aws-partitions (~> 1, >= 1.992.0)
|
||||||
|
aws-sigv4 (~> 1.9)
|
||||||
|
base64
|
||||||
|
jmespath (~> 1, >= 1.6.1)
|
||||||
|
aws-sdk-kms (1.99.0)
|
||||||
|
aws-sdk-core (~> 3, >= 3.216.0)
|
||||||
|
aws-sigv4 (~> 1.5)
|
||||||
|
aws-sdk-s3 (1.182.0)
|
||||||
|
aws-sdk-core (~> 3, >= 3.216.0)
|
||||||
|
aws-sdk-kms (~> 1)
|
||||||
|
aws-sigv4 (~> 1.5)
|
||||||
|
aws-sigv4 (1.11.0)
|
||||||
|
aws-eventstream (~> 1, >= 1.0.2)
|
||||||
|
babosa (1.0.4)
|
||||||
|
base64 (0.2.0)
|
||||||
|
benchmark (0.4.0)
|
||||||
|
bigdecimal (3.1.9)
|
||||||
|
claide (1.1.0)
|
||||||
|
cocoapods (1.16.2)
|
||||||
|
addressable (~> 2.8)
|
||||||
|
claide (>= 1.0.2, < 2.0)
|
||||||
|
cocoapods-core (= 1.16.2)
|
||||||
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
||||||
|
cocoapods-downloader (>= 2.1, < 3.0)
|
||||||
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
||||||
|
cocoapods-search (>= 1.0.0, < 2.0)
|
||||||
|
cocoapods-trunk (>= 1.6.0, < 2.0)
|
||||||
|
cocoapods-try (>= 1.1.0, < 2.0)
|
||||||
|
colored2 (~> 3.1)
|
||||||
|
escape (~> 0.0.4)
|
||||||
|
fourflusher (>= 2.3.0, < 3.0)
|
||||||
|
gh_inspector (~> 1.0)
|
||||||
|
molinillo (~> 0.8.0)
|
||||||
|
nap (~> 1.0)
|
||||||
|
ruby-macho (>= 2.3.0, < 3.0)
|
||||||
|
xcodeproj (>= 1.27.0, < 2.0)
|
||||||
|
cocoapods-core (1.16.2)
|
||||||
|
activesupport (>= 5.0, < 8)
|
||||||
|
addressable (~> 2.8)
|
||||||
|
algoliasearch (~> 1.0)
|
||||||
|
concurrent-ruby (~> 1.1)
|
||||||
|
fuzzy_match (~> 2.0.4)
|
||||||
|
nap (~> 1.0)
|
||||||
|
netrc (~> 0.11)
|
||||||
|
public_suffix (~> 4.0)
|
||||||
|
typhoeus (~> 1.0)
|
||||||
|
cocoapods-deintegrate (1.0.5)
|
||||||
|
cocoapods-downloader (2.1)
|
||||||
|
cocoapods-plugins (1.0.0)
|
||||||
|
nap
|
||||||
|
cocoapods-search (1.0.1)
|
||||||
|
cocoapods-trunk (1.6.0)
|
||||||
|
nap (>= 0.8, < 2.0)
|
||||||
|
netrc (~> 0.11)
|
||||||
|
cocoapods-try (1.2.0)
|
||||||
|
colored (1.2)
|
||||||
|
colored2 (3.1.2)
|
||||||
|
commander (4.6.0)
|
||||||
|
highline (~> 2.0.0)
|
||||||
|
concurrent-ruby (1.3.5)
|
||||||
|
connection_pool (2.5.0)
|
||||||
|
declarative (0.0.20)
|
||||||
|
digest-crc (0.7.0)
|
||||||
|
rake (>= 12.0.0, < 14.0.0)
|
||||||
|
domain_name (0.6.20240107)
|
||||||
|
dotenv (2.8.1)
|
||||||
|
drb (2.2.1)
|
||||||
|
emoji_regex (3.2.3)
|
||||||
|
escape (0.0.4)
|
||||||
|
ethon (0.16.0)
|
||||||
|
ffi (>= 1.15.0)
|
||||||
|
excon (0.112.0)
|
||||||
|
faraday (1.10.4)
|
||||||
|
faraday-em_http (~> 1.0)
|
||||||
|
faraday-em_synchrony (~> 1.0)
|
||||||
|
faraday-excon (~> 1.1)
|
||||||
|
faraday-httpclient (~> 1.0)
|
||||||
|
faraday-multipart (~> 1.0)
|
||||||
|
faraday-net_http (~> 1.0)
|
||||||
|
faraday-net_http_persistent (~> 1.0)
|
||||||
|
faraday-patron (~> 1.0)
|
||||||
|
faraday-rack (~> 1.0)
|
||||||
|
faraday-retry (~> 1.0)
|
||||||
|
ruby2_keywords (>= 0.0.4)
|
||||||
|
faraday-cookie_jar (0.0.7)
|
||||||
|
faraday (>= 0.8.0)
|
||||||
|
http-cookie (~> 1.0.0)
|
||||||
|
faraday-em_http (1.0.0)
|
||||||
|
faraday-em_synchrony (1.0.0)
|
||||||
|
faraday-excon (1.1.0)
|
||||||
|
faraday-httpclient (1.0.1)
|
||||||
|
faraday-multipart (1.1.0)
|
||||||
|
multipart-post (~> 2.0)
|
||||||
|
faraday-net_http (1.0.2)
|
||||||
|
faraday-net_http_persistent (1.2.0)
|
||||||
|
faraday-patron (1.0.0)
|
||||||
|
faraday-rack (1.0.0)
|
||||||
|
faraday-retry (1.0.3)
|
||||||
|
faraday_middleware (1.2.1)
|
||||||
|
faraday (~> 1.0)
|
||||||
|
fastimage (2.4.0)
|
||||||
|
fastlane (2.227.0)
|
||||||
|
CFPropertyList (>= 2.3, < 4.0.0)
|
||||||
|
addressable (>= 2.8, < 3.0.0)
|
||||||
|
artifactory (~> 3.0)
|
||||||
|
aws-sdk-s3 (~> 1.0)
|
||||||
|
babosa (>= 1.0.3, < 2.0.0)
|
||||||
|
bundler (>= 1.12.0, < 3.0.0)
|
||||||
|
colored (~> 1.2)
|
||||||
|
commander (~> 4.6)
|
||||||
|
dotenv (>= 2.1.1, < 3.0.0)
|
||||||
|
emoji_regex (>= 0.1, < 4.0)
|
||||||
|
excon (>= 0.71.0, < 1.0.0)
|
||||||
|
faraday (~> 1.0)
|
||||||
|
faraday-cookie_jar (~> 0.0.6)
|
||||||
|
faraday_middleware (~> 1.0)
|
||||||
|
fastimage (>= 2.1.0, < 3.0.0)
|
||||||
|
fastlane-sirp (>= 1.0.0)
|
||||||
|
gh_inspector (>= 1.1.2, < 2.0.0)
|
||||||
|
google-apis-androidpublisher_v3 (~> 0.3)
|
||||||
|
google-apis-playcustomapp_v1 (~> 0.1)
|
||||||
|
google-cloud-env (>= 1.6.0, < 2.0.0)
|
||||||
|
google-cloud-storage (~> 1.31)
|
||||||
|
highline (~> 2.0)
|
||||||
|
http-cookie (~> 1.0.5)
|
||||||
|
json (< 3.0.0)
|
||||||
|
jwt (>= 2.1.0, < 3)
|
||||||
|
mini_magick (>= 4.9.4, < 5.0.0)
|
||||||
|
multipart-post (>= 2.0.0, < 3.0.0)
|
||||||
|
naturally (~> 2.2)
|
||||||
|
optparse (>= 0.1.1, < 1.0.0)
|
||||||
|
plist (>= 3.1.0, < 4.0.0)
|
||||||
|
rubyzip (>= 2.0.0, < 3.0.0)
|
||||||
|
security (= 0.1.5)
|
||||||
|
simctl (~> 1.6.3)
|
||||||
|
terminal-notifier (>= 2.0.0, < 3.0.0)
|
||||||
|
terminal-table (~> 3)
|
||||||
|
tty-screen (>= 0.6.3, < 1.0.0)
|
||||||
|
tty-spinner (>= 0.8.0, < 1.0.0)
|
||||||
|
word_wrap (~> 1.0.0)
|
||||||
|
xcodeproj (>= 1.13.0, < 2.0.0)
|
||||||
|
xcpretty (~> 0.4.0)
|
||||||
|
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
|
||||||
|
fastlane-sirp (1.0.0)
|
||||||
|
sysrandom (~> 1.0)
|
||||||
|
ffi (1.17.1)
|
||||||
|
ffi (1.17.1-aarch64-linux-gnu)
|
||||||
|
ffi (1.17.1-aarch64-linux-musl)
|
||||||
|
ffi (1.17.1-arm-linux-gnu)
|
||||||
|
ffi (1.17.1-arm-linux-musl)
|
||||||
|
ffi (1.17.1-arm64-darwin)
|
||||||
|
ffi (1.17.1-x86-linux-gnu)
|
||||||
|
ffi (1.17.1-x86-linux-musl)
|
||||||
|
ffi (1.17.1-x86_64-darwin)
|
||||||
|
ffi (1.17.1-x86_64-linux-gnu)
|
||||||
|
ffi (1.17.1-x86_64-linux-musl)
|
||||||
|
fourflusher (2.3.1)
|
||||||
|
fuzzy_match (2.0.4)
|
||||||
|
gh_inspector (1.1.3)
|
||||||
|
google-apis-androidpublisher_v3 (0.54.0)
|
||||||
|
google-apis-core (>= 0.11.0, < 2.a)
|
||||||
|
google-apis-core (0.11.3)
|
||||||
|
addressable (~> 2.5, >= 2.5.1)
|
||||||
|
googleauth (>= 0.16.2, < 2.a)
|
||||||
|
httpclient (>= 2.8.1, < 3.a)
|
||||||
|
mini_mime (~> 1.0)
|
||||||
|
representable (~> 3.0)
|
||||||
|
retriable (>= 2.0, < 4.a)
|
||||||
|
rexml
|
||||||
|
google-apis-iamcredentials_v1 (0.17.0)
|
||||||
|
google-apis-core (>= 0.11.0, < 2.a)
|
||||||
|
google-apis-playcustomapp_v1 (0.13.0)
|
||||||
|
google-apis-core (>= 0.11.0, < 2.a)
|
||||||
|
google-apis-storage_v1 (0.31.0)
|
||||||
|
google-apis-core (>= 0.11.0, < 2.a)
|
||||||
|
google-cloud-core (1.8.0)
|
||||||
|
google-cloud-env (>= 1.0, < 3.a)
|
||||||
|
google-cloud-errors (~> 1.0)
|
||||||
|
google-cloud-env (1.6.0)
|
||||||
|
faraday (>= 0.17.3, < 3.0)
|
||||||
|
google-cloud-errors (1.5.0)
|
||||||
|
google-cloud-storage (1.47.0)
|
||||||
|
addressable (~> 2.8)
|
||||||
|
digest-crc (~> 0.4)
|
||||||
|
google-apis-iamcredentials_v1 (~> 0.1)
|
||||||
|
google-apis-storage_v1 (~> 0.31.0)
|
||||||
|
google-cloud-core (~> 1.6)
|
||||||
|
googleauth (>= 0.16.2, < 2.a)
|
||||||
|
mini_mime (~> 1.0)
|
||||||
|
googleauth (1.8.1)
|
||||||
|
faraday (>= 0.17.3, < 3.a)
|
||||||
|
jwt (>= 1.4, < 3.0)
|
||||||
|
multi_json (~> 1.11)
|
||||||
|
os (>= 0.9, < 2.0)
|
||||||
|
signet (>= 0.16, < 2.a)
|
||||||
|
highline (2.0.3)
|
||||||
|
http-cookie (1.0.8)
|
||||||
|
domain_name (~> 0.5)
|
||||||
|
httpclient (2.9.0)
|
||||||
|
mutex_m
|
||||||
|
i18n (1.14.7)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
jmespath (1.6.2)
|
||||||
|
json (2.10.2)
|
||||||
|
jwt (2.10.1)
|
||||||
|
base64
|
||||||
|
logger (1.6.6)
|
||||||
|
mini_magick (4.13.2)
|
||||||
|
mini_mime (1.1.5)
|
||||||
|
minitest (5.25.5)
|
||||||
|
molinillo (0.8.0)
|
||||||
|
multi_json (1.15.0)
|
||||||
|
multipart-post (2.4.1)
|
||||||
|
mutex_m (0.3.0)
|
||||||
|
nanaimo (0.4.0)
|
||||||
|
nap (1.1.0)
|
||||||
|
naturally (2.2.1)
|
||||||
|
netrc (0.11.0)
|
||||||
|
nkf (0.2.0)
|
||||||
|
optparse (0.6.0)
|
||||||
|
os (1.1.4)
|
||||||
|
plist (3.7.2)
|
||||||
|
public_suffix (4.0.7)
|
||||||
|
rake (13.2.1)
|
||||||
|
representable (3.2.0)
|
||||||
|
declarative (< 0.1.0)
|
||||||
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
||||||
|
uber (< 0.2.0)
|
||||||
|
retriable (3.1.2)
|
||||||
|
rexml (3.4.1)
|
||||||
|
rouge (3.28.0)
|
||||||
|
ruby-macho (2.5.1)
|
||||||
|
ruby2_keywords (0.0.5)
|
||||||
|
rubyzip (2.4.1)
|
||||||
|
securerandom (0.4.1)
|
||||||
|
security (0.1.5)
|
||||||
|
signet (0.19.0)
|
||||||
|
addressable (~> 2.8)
|
||||||
|
faraday (>= 0.17.5, < 3.a)
|
||||||
|
jwt (>= 1.5, < 3.0)
|
||||||
|
multi_json (~> 1.10)
|
||||||
|
simctl (1.6.10)
|
||||||
|
CFPropertyList
|
||||||
|
naturally
|
||||||
|
sysrandom (1.0.5)
|
||||||
|
terminal-notifier (2.0.0)
|
||||||
|
terminal-table (3.0.2)
|
||||||
|
unicode-display_width (>= 1.1.1, < 3)
|
||||||
|
trailblazer-option (0.1.2)
|
||||||
|
tty-cursor (0.7.1)
|
||||||
|
tty-screen (0.8.2)
|
||||||
|
tty-spinner (0.9.3)
|
||||||
|
tty-cursor (~> 0.7)
|
||||||
|
typhoeus (1.4.1)
|
||||||
|
ethon (>= 0.9.0)
|
||||||
|
tzinfo (2.0.6)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
|
uber (0.1.0)
|
||||||
|
unicode-display_width (2.6.0)
|
||||||
|
word_wrap (1.0.0)
|
||||||
|
xcodeproj (1.27.0)
|
||||||
|
CFPropertyList (>= 2.3.3, < 4.0)
|
||||||
|
atomos (~> 0.1.3)
|
||||||
|
claide (>= 1.0.2, < 2.0)
|
||||||
|
colored2 (~> 3.1)
|
||||||
|
nanaimo (~> 0.4.0)
|
||||||
|
rexml (>= 3.3.6, < 4.0)
|
||||||
|
xcpretty (0.4.0)
|
||||||
|
rouge (~> 3.28.0)
|
||||||
|
xcpretty-travis-formatter (1.0.1)
|
||||||
|
xcpretty (~> 0.2, >= 0.0.7)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
aarch64-linux-gnu
|
||||||
|
aarch64-linux-musl
|
||||||
|
arm-linux-gnu
|
||||||
|
arm-linux-musl
|
||||||
|
arm64-darwin
|
||||||
|
ruby
|
||||||
|
x86-linux-gnu
|
||||||
|
x86-linux-musl
|
||||||
|
x86_64-darwin
|
||||||
|
x86_64-linux-gnu
|
||||||
|
x86_64-linux-musl
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
cocoapods
|
||||||
|
fastlane
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
2.6.5
|
||||||
322
README-context.md
Normal file
@@ -0,0 +1,322 @@
|
|||||||
|
# Time Safari Context
|
||||||
|
|
||||||
|
## Project Overview
|
||||||
|
|
||||||
|
Time Safari is an application designed to foster community building through gifts, gratitude, and collaborative projects. The app should make it extremely easy and intuitive for users of any age and capability to recognize contributions, build trust networks, and organize collective action. It is built on services that preserve privacy and data sovereignty.
|
||||||
|
|
||||||
|
The ultimate goals of Time Safari are two-fold:
|
||||||
|
|
||||||
|
1. **Connect** Make it easy, rewarding, and non-threatening for people to connect with others who have similar interests, and to initiate activities together. This helps people accomplish and learn from other individuals in less-structured environments; moreover, it helps them discover who they want to continue to support and with whom they want to maintain relationships.
|
||||||
|
|
||||||
|
2. **Reveal** Widely advertise the great support and rewards that are being given and accepted freely, especially non-monetary ones. Using visuals and text, display the kind of impact that gifts are making in the lives of others. Also show useful and engaging reports of project statistics and personal accomplishments.
|
||||||
|
|
||||||
|
|
||||||
|
## Core Approaches
|
||||||
|
|
||||||
|
Time Safari should help everyday users build meaningful connections and organize collective efforts by:
|
||||||
|
|
||||||
|
1. **Recognizing Contributions**: Creating permanent, verifiable records of gifts and contributions people give to each other and their communities.
|
||||||
|
|
||||||
|
2. **Facilitating Collaboration**: Making it ridiculously easy for people to ask for or propose help on projects and interests that matter to them.
|
||||||
|
|
||||||
|
3. **Building Trust Networks**: Enabling users to maintain their network and activity visibility. Developing reputation through verified contributions and references, which can be selectively shown to others outside the network.
|
||||||
|
|
||||||
|
4. **Preserving Privacy**: Ensuring personal identifiers are only shared with explicitly authorized contacts, allowing private individuals including children to participate safely.
|
||||||
|
|
||||||
|
5. **Engaging Content**: Displaying people's records in compelling stories, and highlighting those projects that are lifting people's lives long-term, both in physical support and in emotional-spiritual-creative thriving.
|
||||||
|
|
||||||
|
|
||||||
|
## Technical Foundation
|
||||||
|
|
||||||
|
This application is built on a privacy-preserving claims architecture (via endorser.ch) with these key characteristics:
|
||||||
|
|
||||||
|
- **Decentralized Identifiers (DIDs)**: User identities are based on public/private key pairs stored on their devices
|
||||||
|
- **Cryptographic Verification**: All claims and confirmations are cryptographically signed
|
||||||
|
- **User-Controlled Visibility**: Users explicitly control who can see their identifiers and data
|
||||||
|
- **Merkle-Chained Claims**: Claims are cryptographically chained for verification and integrity
|
||||||
|
- **Native and Web App**: Works on iOS, Android, and web browsers
|
||||||
|
|
||||||
|
## User Journey
|
||||||
|
|
||||||
|
The typical progression of usage follows these stages:
|
||||||
|
|
||||||
|
1. **Gratitude & Recognition**: Users begin by expressing and recording gratitude for gifts received, building a foundation of acknowledgment.
|
||||||
|
|
||||||
|
2. **Project Proposals**: Users propose projects and ideas, reaching out to connect with others who share similar interests.
|
||||||
|
|
||||||
|
3. **Action Triggers**: Offers of help serve as triggers and motivations to execute proposed projects, moving from ideas to action.
|
||||||
|
|
||||||
|
## Context for LLM Development
|
||||||
|
|
||||||
|
When developing new functionality for Time Safari, consider these design principles:
|
||||||
|
|
||||||
|
1. **Accessibility First**: Features should be usable by non-technical users with minimal learning curve.
|
||||||
|
|
||||||
|
2. **Privacy by Design**: All features must respect user privacy and data sovereignty.
|
||||||
|
|
||||||
|
3. **Progressive Enhancement**: Core functionality should work across all devices, with richer experiences where supported.
|
||||||
|
|
||||||
|
4. **Voluntary Collaboration**: The system should enable but never coerce participation.
|
||||||
|
|
||||||
|
5. **Trust Building**: Features should help build verifiable trust between users.
|
||||||
|
|
||||||
|
6. **Network Effects**: Consider how features scale as more users join the platform.
|
||||||
|
|
||||||
|
7. **Low Resource Requirements**: The system should be lightweight enough to run on inexpensive devices users already own.
|
||||||
|
|
||||||
|
## Use Cases to Support
|
||||||
|
|
||||||
|
LLM development should focus on enhancing these key use cases:
|
||||||
|
|
||||||
|
1. **Community Building**: Tools that help people find others with shared interests and values.
|
||||||
|
|
||||||
|
2. **Project Coordination**: Features that make it easy to propose collaborative projects and to submit suggestions and offers to existing ones.
|
||||||
|
|
||||||
|
3. **Reputation Building**: Methods for users to showcase their contributions and reliability, in contexts where they explicitly reveal that information.
|
||||||
|
|
||||||
|
4. **Governance Experimentation**: Features that facilitate decision-making and collective governance.
|
||||||
|
|
||||||
|
## Constraints
|
||||||
|
|
||||||
|
When developing new features, be mindful of these constraints:
|
||||||
|
|
||||||
|
1. **Privacy Preservation**: User identifiers must remain private except when explicitly shared.
|
||||||
|
|
||||||
|
2. **Platform Limitations**: Features must work within the constraints of the target app platforms, while aiming to leverage the best platform technology available.
|
||||||
|
|
||||||
|
3. **Endorser API Limitations**: Backend features are constrained by the endorser.ch API capabilities.
|
||||||
|
|
||||||
|
4. **Performance on Low-End Devices**: The application should remain performant on older/simpler devices.
|
||||||
|
|
||||||
|
5. **Offline-First When Possible**: Key functionality should work offline when feasible.
|
||||||
|
|
||||||
|
## Project Technologies
|
||||||
|
|
||||||
|
- Typescript using ES6 classes
|
||||||
|
- TailwindCSS
|
||||||
|
- Vite Build Tool
|
||||||
|
- Playwright E2E testing
|
||||||
|
- IndexDB
|
||||||
|
- Camera, Image uploads, QR Code reader, ...
|
||||||
|
|
||||||
|
## Mobile Features
|
||||||
|
|
||||||
|
- Deep Linking
|
||||||
|
- Local Notifications via a custom Capacitor plugin
|
||||||
|
|
||||||
|
## Project Architecture
|
||||||
|
|
||||||
|
- The application must work on web browser, PWA (Progressive Web Application), desktop via Electron, and mobile via Capacitor
|
||||||
|
- Building for each platform is managed via Vite
|
||||||
|
|
||||||
|
## Core Development Principles
|
||||||
|
|
||||||
|
### DRY development
|
||||||
|
- **Code Reuse**
|
||||||
|
- Extract common functionality into utility functions
|
||||||
|
- Create reusable components for UI patterns
|
||||||
|
- Implement service classes for shared business logic
|
||||||
|
- Use mixins for cross-cutting concerns
|
||||||
|
- Leverage TypeScript interfaces for shared type definitions
|
||||||
|
|
||||||
|
- **Component Patterns**
|
||||||
|
- Create base components for common UI elements
|
||||||
|
- Implement higher-order components for shared behavior
|
||||||
|
- Use slot patterns for flexible component composition
|
||||||
|
- Create composable services for business logic
|
||||||
|
- Implement factory patterns for component creation
|
||||||
|
|
||||||
|
- **State Management**
|
||||||
|
- Centralize state in Pinia stores
|
||||||
|
- Use computed properties for derived state
|
||||||
|
- Implement shared state selectors
|
||||||
|
- Create reusable state mutations
|
||||||
|
- Use action creators for common operations
|
||||||
|
|
||||||
|
- **Error Handling**
|
||||||
|
- Implement centralized error handling
|
||||||
|
- Create reusable error components
|
||||||
|
- Use error boundary components
|
||||||
|
- Implement consistent error logging
|
||||||
|
- Create error type definitions
|
||||||
|
|
||||||
|
- **Type Definitions**
|
||||||
|
- Create shared interfaces for common data structures
|
||||||
|
- Use type aliases for complex types
|
||||||
|
- Implement generic types for reusable components
|
||||||
|
- Create utility types for common patterns
|
||||||
|
- Use discriminated unions for state management
|
||||||
|
|
||||||
|
- **API Integration**
|
||||||
|
- Create reusable API client classes
|
||||||
|
- Implement request/response interceptors
|
||||||
|
- Use consistent error handling patterns
|
||||||
|
- Create type-safe API endpoints
|
||||||
|
- Implement caching strategies
|
||||||
|
|
||||||
|
- **Platform Services**
|
||||||
|
- Abstract platform-specific code behind interfaces
|
||||||
|
- Create platform-agnostic service layers
|
||||||
|
- Implement feature detection
|
||||||
|
- Use dependency injection for services
|
||||||
|
- Create service factories
|
||||||
|
|
||||||
|
- **Testing**
|
||||||
|
- Create reusable test utilities
|
||||||
|
- Implement test factories
|
||||||
|
- Use shared test configurations
|
||||||
|
- Create reusable test helpers
|
||||||
|
- Implement consistent test patterns
|
||||||
|
|
||||||
|
### SOLID Principles
|
||||||
|
- **Single Responsibility**: Each class/component should have only one reason to change
|
||||||
|
- Components should focus on one specific feature (e.g., QR scanning, DID management)
|
||||||
|
- Services should handle one type of functionality (e.g., platform services, crypto services)
|
||||||
|
- Utilities should provide focused helper functions
|
||||||
|
|
||||||
|
- **Open/Closed**: Software entities should be open for extension but closed for modification
|
||||||
|
- Use interfaces for service definitions
|
||||||
|
- Implement plugin architecture for platform-specific features
|
||||||
|
- Allow component behavior extension through props and events
|
||||||
|
|
||||||
|
- **Liskov Substitution**: Objects should be replaceable with their subtypes
|
||||||
|
- Platform services should work consistently across web/mobile
|
||||||
|
- Authentication providers should be interchangeable
|
||||||
|
- Storage implementations should be swappable
|
||||||
|
|
||||||
|
- **Interface Segregation**: Clients shouldn't depend on interfaces they don't use
|
||||||
|
- Break down large service interfaces into smaller, focused ones
|
||||||
|
- Component props should be minimal and purposeful
|
||||||
|
- Event emissions should be specific and targeted
|
||||||
|
|
||||||
|
- **Dependency Inversion**: High-level modules shouldn't depend on low-level modules
|
||||||
|
- Use dependency injection for services
|
||||||
|
- Abstract platform-specific code behind interfaces
|
||||||
|
- Implement factory patterns for component creation
|
||||||
|
|
||||||
|
### Law of Demeter
|
||||||
|
- Components should only communicate with immediate dependencies
|
||||||
|
- Avoid chaining method calls (e.g., `this.service.getUser().getProfile().getName()`)
|
||||||
|
- Use mediator patterns for complex component interactions
|
||||||
|
- Implement facade patterns for subsystem access
|
||||||
|
- Keep component communication through defined events and props
|
||||||
|
|
||||||
|
### Composition over Inheritance
|
||||||
|
- Prefer building components through composition
|
||||||
|
- Use mixins for shared functionality
|
||||||
|
- Implement feature toggles through props
|
||||||
|
- Create higher-order components for common patterns
|
||||||
|
- Use service composition for complex features
|
||||||
|
|
||||||
|
### Interface Segregation
|
||||||
|
- Define clear interfaces for services
|
||||||
|
- Keep component APIs minimal and focused
|
||||||
|
- Split large interfaces into smaller, specific ones
|
||||||
|
- Use TypeScript interfaces for type definitions
|
||||||
|
- Implement role-based interfaces for different use cases
|
||||||
|
|
||||||
|
### Fail Fast
|
||||||
|
- Validate inputs early in the process
|
||||||
|
- Use TypeScript strict mode
|
||||||
|
- Implement comprehensive error handling
|
||||||
|
- Add runtime checks for critical operations
|
||||||
|
- Use assertions for development-time validation
|
||||||
|
|
||||||
|
### Principle of Least Astonishment
|
||||||
|
- Follow Vue.js conventions consistently
|
||||||
|
- Use familiar naming patterns
|
||||||
|
- Implement predictable component behaviors
|
||||||
|
- Maintain consistent error handling
|
||||||
|
- Keep UI interactions intuitive
|
||||||
|
|
||||||
|
### Information Hiding
|
||||||
|
- Encapsulate implementation details
|
||||||
|
- Use private class members
|
||||||
|
- Implement proper access modifiers
|
||||||
|
- Hide complex logic behind simple interfaces
|
||||||
|
- Use TypeScript's access modifiers effectively
|
||||||
|
|
||||||
|
### Single Source of Truth
|
||||||
|
- Use Pinia for state management
|
||||||
|
- Maintain one source for user data
|
||||||
|
- Centralize configuration management
|
||||||
|
- Use computed properties for derived state
|
||||||
|
- Implement proper state synchronization
|
||||||
|
|
||||||
|
### Principle of Least Privilege
|
||||||
|
- Implement proper access control
|
||||||
|
- Use minimal required permissions
|
||||||
|
- Follow privacy-by-design principles
|
||||||
|
- Restrict component access to necessary data
|
||||||
|
- Implement proper authentication/authorization
|
||||||
|
|
||||||
|
### Continuous Integration/Continuous Deployment (CI/CD)
|
||||||
|
- Automated testing on every commit
|
||||||
|
- Consistent build process across platforms
|
||||||
|
- Automated deployment pipelines
|
||||||
|
- Quality gates for code merging
|
||||||
|
- Environment-specific configurations
|
||||||
|
|
||||||
|
This expanded documentation provides:
|
||||||
|
1. Clear principles for development
|
||||||
|
2. Practical implementation guidelines
|
||||||
|
3. Real-world examples
|
||||||
|
4. TypeScript integration
|
||||||
|
5. Best practices for Time Safari
|
||||||
|
|
||||||
|
|
||||||
|
## Vue Component Structure
|
||||||
|
|
||||||
|
- Use `@Options`, `@Ref`, `@Prop`, `@Emit`, and `@Watch` Typescript decorators for clear component structure
|
||||||
|
- Extend `Vue` class with proper type annotations for props, refs, and methods
|
||||||
|
- Use Tailwind utility classes for accessible and responsive design
|
||||||
|
- Avoid `setup()` or Composition API; use class syntax consistently
|
||||||
|
- Keep methods pure when possible; extract logic into utilities
|
||||||
|
- Ensure lifecycle methods are clearly defined inside class
|
||||||
|
- Use semantic HTML + Tailwind classes for styling
|
||||||
|
- Pinia for state management
|
||||||
|
|
||||||
|
## Vue Facing Decorators
|
||||||
|
|
||||||
|
- Ensure all Vue 3 components are written using TypeScript with strict type checking enabled.
|
||||||
|
- Always include explicit types for props, emits, and reactive properties.
|
||||||
|
- When using @Options, ensure it includes metadata like name, template, or styles.
|
||||||
|
- Use @Prop for defining props with validation and default values.
|
||||||
|
- Use @Emit for emitting events with proper payload typing.
|
||||||
|
- Use @Watch for reactive property changes, and @Ref for DOM references."
|
||||||
|
- Organize Vue 3 components with a clear structure: imports at the top, followed by @Options metadata, then class properties (props, refs, reactive state), lifecycle hooks, methods, and finally @Watch or @Emit handlers.
|
||||||
|
- Ensure all props have explicit types and optional validation.
|
||||||
|
- Use TypeScript interfaces or types for complex prop structures.
|
||||||
|
- Validate default values for props where applicable.
|
||||||
|
- Use lifecycle hooks (e.g., onMounted, onUnmounted) sparingly and document their purpose.
|
||||||
|
- Avoid side effects in lifecycle hooks unless absolutely necessary.
|
||||||
|
- Use @Emit for emitting events with strongly typed payloads.
|
||||||
|
- Ensure event names are descriptive and match the action being performed.
|
||||||
|
- Use ref or reactive for managing internal state.
|
||||||
|
- Avoid overusing reactive state for simple values. Prefer computed properties for derived state.
|
||||||
|
- Write unit tests for components using Vue Test Utils and Jest/Vitest.
|
||||||
|
- Ensure tests cover props, events, and lifecycle behavior.
|
||||||
|
- Avoid unnecessary re-renders by using v-once for static content and memoizing expensive computations with computed properties.
|
||||||
|
- Ensure components are accessible by using semantic HTML and ARIA attributes.
|
||||||
|
- Use scoped styles or CSS modules to encapsulate styles.
|
||||||
|
|
||||||
|
## es6 classes
|
||||||
|
|
||||||
|
- Use ES6 class syntax with decorators (@Options, @Prop, @Emit).
|
||||||
|
- Use modular imports and default exports.
|
||||||
|
- Use arrow functions for methods and callbacks.
|
||||||
|
- Use destructuring for props and state.
|
||||||
|
- Provide default parameters for optional props or arguments.
|
||||||
|
- Use template literals for dynamic strings.
|
||||||
|
- Use spread/rest operators for object manipulation and arguments.
|
||||||
|
- Use const/let appropriately for variable declarations.
|
||||||
|
- Use enhanced object literals for cleaner syntax.
|
||||||
|
- Use async/await for asynchronous operations.
|
||||||
|
- Add scoped styles for encapsulation.
|
||||||
|
- Ensure accessibility with semantic HTML and ARIA attributes.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- Include JSDoc comments for all public methods and props.
|
||||||
|
- Files must have comments explaing contents and workflow of file
|
||||||
|
- Methods and props should explain role and workflow of each
|
||||||
206
README.md
@@ -8,224 +8,31 @@ and expand to crowd-fund with time & money, then record and see the impact of co
|
|||||||
See [project.task.yaml](project.task.yaml) for current priorities.
|
See [project.task.yaml](project.task.yaml) for current priorities.
|
||||||
(Numbers at the beginning of lines are estimated hours. See [taskyaml.org](https://taskyaml.org/) for details.)
|
(Numbers at the beginning of lines are estimated hours. See [taskyaml.org](https://taskyaml.org/) for details.)
|
||||||
|
|
||||||
## Setup
|
## Setup & Building
|
||||||
|
|
||||||
We like pkgx: `sh <(curl https://pkgx.sh) +vite sh`
|
Quick start:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
npm install
|
npm install
|
||||||
```
|
|
||||||
|
|
||||||
### Compile and hot-reloads for development
|
|
||||||
```
|
|
||||||
npm run dev
|
npm run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
See the test locations for "IMAGE_API_SERVER" or "PARTNER_API_SERVER" below, or use http://localhost:3000 for local endorser.ch
|
See [BUILDING.md](BUILDING.md) for more details.
|
||||||
|
|
||||||
### Build the test & production app
|
|
||||||
```
|
|
||||||
npm run serve
|
|
||||||
```
|
|
||||||
|
|
||||||
### Lint and fix files
|
|
||||||
```
|
|
||||||
npm run lint
|
|
||||||
```
|
|
||||||
|
|
||||||
### Run all UI tests
|
|
||||||
|
|
||||||
Look below for the "test-all" instructions.
|
|
||||||
|
|
||||||
|
|
||||||
### Compile and minify for test & production
|
|
||||||
|
|
||||||
* If there are DB changes: before updating the test server, open browser(s) with current version to test DB migrations.
|
|
||||||
|
|
||||||
* `npx prettier --write ./sw_scripts/`
|
|
||||||
|
|
||||||
* Update the ClickUp tasks & CHANGELOG.md & the version in package.json, run `npm install`.
|
|
||||||
|
|
||||||
* Commit everything (since the commit hash is used the app).
|
|
||||||
|
|
||||||
* Put the commit hash in the changelog (which will help you remember to bump the version later).
|
|
||||||
|
|
||||||
* Tag with the new version, [online](https://gitea.anomalistdesign.com/trent_larson/crowd-funder-for-time-pwa/releases) or `git tag 0.3.55 && git push origin 0.3.55`.
|
|
||||||
|
|
||||||
* For test, build the app (because test server is not yet set up to build):
|
|
||||||
|
|
||||||
```
|
|
||||||
TIME_SAFARI_APP_TITLE="TimeSafari_Test" VITE_APP_SERVER=https://test.timesafari.app VITE_BVC_MEETUPS_PROJECT_CLAIM_ID=https://endorser.ch/entity/01HWE8FWHQ1YGP7GFZYYPS272F VITE_DEFAULT_ENDORSER_API_SERVER=https://test-api.endorser.ch VITE_DEFAULT_IMAGE_API_SERVER=https://test-image-api.timesafari.app VITE_DEFAULT_PARTNER_API_SERVER=https://test-partner-api.endorser.ch VITE_PASSKEYS_ENABLED=true npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
... and transfer to the test server: `rsync -azvu -e "ssh -i ~/.ssh/..." dist ubuntutest@test.timesafari.app:time-safari`
|
|
||||||
|
|
||||||
(Let's replace that with a .env.development or .env.staging file.)
|
|
||||||
|
|
||||||
(Note: The test BVC_MEETUPS_PROJECT_CLAIM_ID does not resolve as a URL because it's only in the test DB and the prod redirect won't redirect there.)
|
|
||||||
|
|
||||||
* For prod, get on the server and run the correct build:
|
|
||||||
|
|
||||||
... and log onto the server:
|
|
||||||
|
|
||||||
* `pkgx +npm sh`
|
|
||||||
|
|
||||||
* `cd crowd-funder-for-time-pwa && git checkout master && git pull && git checkout 0.3.55 && npm install && npm run build && cd -`
|
|
||||||
|
|
||||||
(The plain `npm run build` uses the .env.production file.)
|
|
||||||
|
|
||||||
* Back up the time-safari/dist folder & deploy: `mv time-safari/dist time-safari-dist-prev.0 && mv crowd-funder-for-time-pwa/dist time-safari/`
|
|
||||||
|
|
||||||
* Record the new hash in the changelog. Edit package.json to increment version & add "-beta", `npm install`, and commit. Also record what version is on production.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
### Automated
|
See [TESTING.md](test-playwright/TESTING.md) for detailed test instructions.
|
||||||
|
|
||||||
Use the locally running Endorser server:
|
|
||||||
|
|
||||||
* Clone and set up https://github.com/trentlarson/endorser-ch and run the following in that directory:
|
|
||||||
```
|
|
||||||
npm install
|
|
||||||
test/test.sh
|
|
||||||
cp .env.local .env
|
|
||||||
NODE_ENV=test-local npm run dev
|
|
||||||
```
|
|
||||||
|
|
||||||
If that fails, go to the README.md in the endorser-ch directory and follow the instructions there.
|
|
||||||
|
|
||||||
* Install playwright browsers:
|
|
||||||
```
|
|
||||||
npx playwright install
|
|
||||||
```
|
|
||||||
|
|
||||||
* Now you can run the local tests:
|
|
||||||
```
|
|
||||||
npm run test-all
|
|
||||||
```
|
|
||||||
|
|
||||||
Note that a test will sometimes fail and rerunning may succeed (and repeat if a different test fails).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
It's possible to use the global test Endorser (ledger) server (but currently the tests don't all succeed):
|
## Icons
|
||||||
`npx playwright test`
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
It's possible to run with a minimal set of data; the following starts with the bare minimum of test data:
|
|
||||||
```
|
|
||||||
rm ../endorser-ch-test-local.sqlite3
|
|
||||||
NODE_ENV=test-local npm run flyway migrate
|
|
||||||
NODE_ENV=test-local npm run test test/controller0
|
|
||||||
NODE_ENV=test-local npm run dev
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
To run a single test like above with the screenshots, use the following:
|
|
||||||
```
|
|
||||||
npx playwright test -c playwright.config-local.ts --trace on test-playwright/40-add-contact.spec.ts
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Register new user on test server
|
|
||||||
|
|
||||||
On the test server, User #0 has rights to register others, so you can start
|
|
||||||
playing by importing that user and registering others. Import the keys for the test User
|
|
||||||
`did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F` by importing this seed phrase:
|
|
||||||
`rigid shrug mobile smart veteran half all pond toilet brave review universe ship congress found yard skate elite apology jar uniform subway slender luggage`
|
|
||||||
(Other test users are found [here](https://github.com/trentlarson/endorser-ch/blob/master/test/util.js).)
|
|
||||||
|
|
||||||
### Create multiple identifiers
|
|
||||||
|
|
||||||
Under the "Your Identity" screen, click "Advanced", click "Switch Identity / No Identity", then "Add Another Identity...".
|
|
||||||
|
|
||||||
### Create keys with alternate tools
|
|
||||||
|
|
||||||
[This page](openssl_signing_console.rst) is a tool to create a JWT from a locally-generated keypair.
|
|
||||||
|
|
||||||
### Web-push
|
|
||||||
|
|
||||||
For your own web-push tests, change the push server URL in Advanced settings on the account page, and install Time Safari & push server on the same domain.
|
|
||||||
|
|
||||||
### Icons
|
|
||||||
|
|
||||||
To add an icon, add to main.ts and reference with `fa` element and `icon` attribute with the hyphenated name.
|
To add an icon, add to main.ts and reference with `fa` element and `icon` attribute with the hyphenated name.
|
||||||
|
|
||||||
### Manual walk-through test
|
|
||||||
|
|
||||||
- Backup seed & data & get a CSV dump from Endorser Mobile.
|
|
||||||
- If there were any DB changes, check that you're on the old version and reload the page and ensure you can still act and haven't lost data (ie. contacts, identities).
|
|
||||||
- Use a mobile user as well as a desktop user.
|
|
||||||
- Check that the version is updated.
|
|
||||||
- Clear the browser data & add identity & import Time Safari contacts and then CSV contacts.
|
|
||||||
- Make sure that it's using the test API (under Identity in 'Advanced').
|
|
||||||
- Clear the browser data again. (See "Reset" below.)
|
|
||||||
- Go to the account page before visiting the home page to see that there is no ID.
|
|
||||||
- On the home page:
|
|
||||||
- Check that it generated an ID.
|
|
||||||
- Check the feed without names.
|
|
||||||
- Copy the contact URL.
|
|
||||||
- On each page, verify the messaging, and that they cannot take action.
|
|
||||||
- On the discovery page, check that they can see projects, and set a search area to see projects nearby.
|
|
||||||
- On the contacts page, check that they can add a contact even without their own ID.
|
|
||||||
- Install the PWA.
|
|
||||||
- As User 0 in another browser on the test API, add a give & a project.
|
|
||||||
- Note that some combinations of desktop with mobile emulation stretch the image.
|
|
||||||
- Import User 0 with seed: `rigid shrug mobile smart veteran half all pond toilet brave review universe ship congress found yard skate elite apology jar uniform subway slender luggage`
|
|
||||||
- Add new user as a contact (which allows them to see User 0).
|
|
||||||
- With the new user on the home page, see the feed that shows User 0 in network but without the name.
|
|
||||||
- As the new user, import contacts & identifiers.
|
|
||||||
- As the new user on the contacts page, add User 0 as a contact.
|
|
||||||
- On the home page, see the feed that shows User 0 with a name.
|
|
||||||
- Switch back to the generated identifier.
|
|
||||||
- On the account page, check that they see messages on limits.
|
|
||||||
- As User 0, register the ID.
|
|
||||||
- As the new user on the home page, check that they can now record a gift, and record an offer & delivery.
|
|
||||||
- On the contacts page, check that they cannot register someone else yet.
|
|
||||||
- Walk through the functions on each page.
|
|
||||||
- Set and run notifications.
|
|
||||||
- Export & import, both seed and contacts & settings.
|
|
||||||
- Choose location on the search map.
|
|
||||||
- Offer, deliver a give, and confirm. Create a third user and test connections.
|
|
||||||
- On mobile, share an image with the app.
|
|
||||||
- Switch to "no identifier" to see that things look OK without any ID.
|
|
||||||
|
|
||||||
### Clear/Reset data & restart
|
|
||||||
|
|
||||||
* Clear cache for site. (In Chrome, go to `chrome://settings/cookies` and "all site data and permissions"; in Firefox, go to `about:preferences` and search for "cache" then "Manage Data", and also manually remove the IndexedDB data if the DBs still show.)
|
|
||||||
* Clear notification permission. (In Chrome, go to `chrome://settings/content/notifications`; in Firefox, go to `about:preferences` and search for "notifications".)
|
|
||||||
* Unregister service worker. (In Chrome, go to `chrome://serviceworker-internals`; in Firefox, go to `about:serviceworkers`.)
|
|
||||||
* Clear Cache Storage manually, possibly deleting the DB. (In Chrome, in dev tools under Application; in Firefox, in dev tools under Storage.)
|
|
||||||
|
|
||||||
(If you find more, add them to the HelpNotificationsView.vue file.)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Troubleshooting
|
|
||||||
|
|
||||||
* A problem with `GET http://localhost:8080/web-push/vapid` means the py-push-server is not running
|
|
||||||
(and notifications won't work for a local app without special routing from the browser's web push service provider, anyway).
|
|
||||||
|
|
||||||
* Red errors everywhere with a console message like this:
|
|
||||||
`Error: An ID is chosen but there are no keys for it so it cannot be used to talk with the service`
|
|
||||||
... has happened on account switching when the current account was erased (or maybe replaced -- once I had a duplicate and I don't know how).
|
|
||||||
|
|
||||||
* The error `DEXIE ENCRYPT ADDON: Could not decrypt message!` or
|
|
||||||
`Encryption key has changed` means that the encryption key is wrong,
|
|
||||||
sometimes seen after clearing storage for testing; you can make it happen by clearing localStorage.
|
|
||||||
Maybe only part of the storage was cleared out. Unless you got a copy of that password, you'll
|
|
||||||
have to erase storage and reload the identifier.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Other
|
## Other
|
||||||
|
|
||||||
### Reference Material
|
### Reference Material
|
||||||
@@ -237,7 +44,6 @@ To add an icon, add to main.ts and reference with `fa` element and `icon` attrib
|
|||||||
|
|
||||||
* If you are deploying in a subdirectory, add it to `publicPath` in vue.config.js, eg: `publicPath: "/app/time-tracker/",`
|
* If you are deploying in a subdirectory, add it to `publicPath` in vue.config.js, eg: `publicPath: "/app/time-tracker/",`
|
||||||
|
|
||||||
|
|
||||||
### Kudos
|
### Kudos
|
||||||
|
|
||||||
Gifts make the world go 'round!
|
Gifts make the world go 'round!
|
||||||
|
|||||||
104
android/.gitignore
vendored
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
|
||||||
|
|
||||||
|
app/gradle.properties.secrets
|
||||||
|
app/time-safari-upload-key-pkcs12.jks
|
||||||
|
|
||||||
|
# Built application files
|
||||||
|
*.apk
|
||||||
|
*.aar
|
||||||
|
*.ap_
|
||||||
|
*.aab
|
||||||
|
|
||||||
|
# Files for the ART/Dalvik VM
|
||||||
|
*.dex
|
||||||
|
|
||||||
|
# Java class files
|
||||||
|
*.class
|
||||||
|
|
||||||
|
# Generated files
|
||||||
|
bin/
|
||||||
|
gen/
|
||||||
|
out/
|
||||||
|
# Uncomment the following line in case you need and you don't have the release build type files in your app
|
||||||
|
# release/
|
||||||
|
|
||||||
|
# Gradle files
|
||||||
|
.gradle/
|
||||||
|
build/
|
||||||
|
|
||||||
|
# Local configuration file (sdk path, etc)
|
||||||
|
local.properties
|
||||||
|
|
||||||
|
# Proguard folder generated by Eclipse
|
||||||
|
proguard/
|
||||||
|
|
||||||
|
# Log Files
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# Android Studio Navigation editor temp files
|
||||||
|
.navigation/
|
||||||
|
|
||||||
|
# Android Studio captures folder
|
||||||
|
captures/
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
*.iml
|
||||||
|
.idea/workspace.xml
|
||||||
|
.idea/tasks.xml
|
||||||
|
.idea/gradle.xml
|
||||||
|
.idea/assetWizardSettings.xml
|
||||||
|
.idea/dictionaries
|
||||||
|
.idea/libraries
|
||||||
|
# Android Studio 3 in .gitignore file.
|
||||||
|
.idea/caches
|
||||||
|
.idea/modules.xml
|
||||||
|
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
|
||||||
|
.idea/navEditor.xml
|
||||||
|
|
||||||
|
# Keystore files
|
||||||
|
# Uncomment the following lines if you do not want to check your keystore files in.
|
||||||
|
#*.jks
|
||||||
|
#*.keystore
|
||||||
|
|
||||||
|
# External native build folder generated in Android Studio 2.2 and later
|
||||||
|
.externalNativeBuild
|
||||||
|
.cxx/
|
||||||
|
|
||||||
|
# Google Services (e.g. APIs or Firebase)
|
||||||
|
# google-services.json
|
||||||
|
|
||||||
|
# Freeline
|
||||||
|
freeline.py
|
||||||
|
freeline/
|
||||||
|
freeline_project_description.json
|
||||||
|
|
||||||
|
# fastlane
|
||||||
|
fastlane/report.xml
|
||||||
|
fastlane/Preview.html
|
||||||
|
fastlane/screenshots
|
||||||
|
fastlane/test_output
|
||||||
|
fastlane/readme.md
|
||||||
|
|
||||||
|
# Version control
|
||||||
|
vcs.xml
|
||||||
|
|
||||||
|
# lint
|
||||||
|
lint/intermediates/
|
||||||
|
lint/generated/
|
||||||
|
lint/outputs/
|
||||||
|
lint/tmp/
|
||||||
|
# lint/reports/
|
||||||
|
|
||||||
|
# Android Profiling
|
||||||
|
*.hprof
|
||||||
|
|
||||||
|
# Cordova plugins for Capacitor
|
||||||
|
capacitor-cordova-android-plugins
|
||||||
|
|
||||||
|
# Copied web assets
|
||||||
|
app/src/main/assets/public
|
||||||
|
|
||||||
|
# Generated Config files
|
||||||
|
app/src/main/assets/capacitor.config.json
|
||||||
|
app/src/main/assets/capacitor.plugins.json
|
||||||
|
app/src/main/res/xml/config.xml
|
||||||
2
android/.gradle/buildOutputCleanup/cache.properties
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#Wed Apr 09 09:01:13 UTC 2025
|
||||||
|
gradle.version=8.11.1
|
||||||
BIN
android/.gradle/file-system.probe
Normal file
0
android/.gradle/vcs-1/gc.properties
Normal file
2
android/app/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/build/*
|
||||||
|
!/build/.npmkeep
|
||||||
109
android/app/build.gradle
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
|
// These are sample values to set in gradle.properties.secrets
|
||||||
|
// MY_KEYSTORE_FILE=time-safari-upload-key-pkcs12.jks
|
||||||
|
// MY_KEYSTORE_PASSWORD=...
|
||||||
|
// MY_KEY_ALIAS=time-safari-key-alias
|
||||||
|
// MY_KEY_PASSWORD=...
|
||||||
|
|
||||||
|
// Try to load from environment variables first
|
||||||
|
project.ext.MY_KEYSTORE_FILE = System.getenv('ANDROID_KEYSTORE_FILE') ?: ""
|
||||||
|
project.ext.MY_KEYSTORE_PASSWORD = System.getenv('ANDROID_KEYSTORE_PASSWORD') ?: ""
|
||||||
|
project.ext.MY_KEY_ALIAS = System.getenv('ANDROID_KEY_ALIAS') ?: ""
|
||||||
|
project.ext.MY_KEY_PASSWORD = System.getenv('ANDROID_KEY_PASSWORD') ?: ""
|
||||||
|
|
||||||
|
// If no environment variables, try to load from secrets file
|
||||||
|
if (!project.ext.MY_KEYSTORE_FILE) {
|
||||||
|
def secretsPropertiesFile = rootProject.file("app/gradle.properties.secrets")
|
||||||
|
if (secretsPropertiesFile.exists()) {
|
||||||
|
Properties secretsProperties = new Properties()
|
||||||
|
secretsProperties.load(new FileInputStream(secretsPropertiesFile))
|
||||||
|
secretsProperties.each { name, value ->
|
||||||
|
project.ext[name] = value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
namespace 'app.timesafari'
|
||||||
|
compileSdk rootProject.ext.compileSdkVersion
|
||||||
|
defaultConfig {
|
||||||
|
applicationId "app.timesafari.app"
|
||||||
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
|
versionCode 10
|
||||||
|
versionName "0.4.4"
|
||||||
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
aaptOptions {
|
||||||
|
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||||
|
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
|
||||||
|
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
signingConfigs {
|
||||||
|
release {
|
||||||
|
if (project.ext.MY_KEYSTORE_FILE &&
|
||||||
|
project.ext.MY_KEYSTORE_PASSWORD &&
|
||||||
|
project.ext.MY_KEY_ALIAS &&
|
||||||
|
project.ext.MY_KEY_PASSWORD) {
|
||||||
|
|
||||||
|
storeFile file(project.ext.MY_KEYSTORE_FILE)
|
||||||
|
storePassword project.ext.MY_KEYSTORE_PASSWORD
|
||||||
|
keyAlias project.ext.MY_KEY_ALIAS
|
||||||
|
keyPassword project.ext.MY_KEY_PASSWORD
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
minifyEnabled false
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
|
// Only sign if we have the signing config
|
||||||
|
if (signingConfigs.release.storeFile != null) {
|
||||||
|
signingConfig signingConfigs.release
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enable bundle builds (without which it doesn't work right for bundleDebug vs bundleRelease)
|
||||||
|
bundle {
|
||||||
|
language {
|
||||||
|
enableSplit = true
|
||||||
|
}
|
||||||
|
density {
|
||||||
|
enableSplit = true
|
||||||
|
}
|
||||||
|
abi {
|
||||||
|
enableSplit = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
flatDir{
|
||||||
|
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
||||||
|
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
|
||||||
|
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
|
||||||
|
implementation project(':capacitor-android')
|
||||||
|
testImplementation "junit:junit:$junitVersion"
|
||||||
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
||||||
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
||||||
|
implementation project(':capacitor-cordova-android-plugins')
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: 'capacitor.build.gradle'
|
||||||
|
|
||||||
|
try {
|
||||||
|
def servicesJSON = file('google-services.json')
|
||||||
|
if (servicesJSON.text) {
|
||||||
|
apply plugin: 'com.google.gms.google-services'
|
||||||
|
}
|
||||||
|
} catch(Exception e) {
|
||||||
|
logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
|
||||||
|
}
|
||||||
25
android/app/capacitor.build.gradle
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
||||||
|
dependencies {
|
||||||
|
implementation project(':capacitor-app')
|
||||||
|
implementation project(':capacitor-camera')
|
||||||
|
implementation project(':capacitor-clipboard')
|
||||||
|
implementation project(':capacitor-filesystem')
|
||||||
|
implementation project(':capacitor-share')
|
||||||
|
implementation project(':capawesome-capacitor-file-picker')
|
||||||
|
implementation project(':capacitor-mlkit-barcode-scanning')
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (hasProperty('postBuildExtras')) {
|
||||||
|
postBuildExtras()
|
||||||
|
}
|
||||||
21
android/app/proguard-rules.pro
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Add project specific ProGuard rules here.
|
||||||
|
# You can control the set of applied configuration files using the
|
||||||
|
# proguardFiles setting in build.gradle.
|
||||||
|
#
|
||||||
|
# For more details, see
|
||||||
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||||
|
|
||||||
|
# If your project uses WebView with JS, uncomment the following
|
||||||
|
# and specify the fully qualified class name to the JavaScript interface
|
||||||
|
# class:
|
||||||
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||||
|
# public *;
|
||||||
|
#}
|
||||||
|
|
||||||
|
# Uncomment this to preserve the line number information for
|
||||||
|
# debugging stack traces.
|
||||||
|
#-keepattributes SourceFile,LineNumberTable
|
||||||
|
|
||||||
|
# If you keep the line number information, uncomment this to
|
||||||
|
# hide the original source file name.
|
||||||
|
#-renamesourcefileattribute SourceFile
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package com.getcapacitor.myapp;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||||
|
import androidx.test.platform.app.InstrumentationRegistry;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instrumented test, which will execute on an Android device.
|
||||||
|
*
|
||||||
|
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||||
|
*/
|
||||||
|
@RunWith(AndroidJUnit4.class)
|
||||||
|
public class ExampleInstrumentedTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void useAppContext() throws Exception {
|
||||||
|
// Context of the app under test.
|
||||||
|
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||||
|
|
||||||
|
assertEquals("app.timesafari.app", appContext.getPackageName());
|
||||||
|
}
|
||||||
|
}
|
||||||
45
android/app/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<application
|
||||||
|
android:allowBackup="true"
|
||||||
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
|
android:supportsRtl="true"
|
||||||
|
android:theme="@style/AppTheme">
|
||||||
|
<activity
|
||||||
|
android:name=".MainActivity"
|
||||||
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
||||||
|
android:exported="true"
|
||||||
|
android:label="@string/title_activity_main"
|
||||||
|
android:launchMode="singleTask"
|
||||||
|
android:theme="@style/AppTheme.NoActionBarLaunch">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
</intent-filter>
|
||||||
|
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.VIEW" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
|
<data android:scheme="timesafari" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
|
||||||
|
<provider
|
||||||
|
android:name="androidx.core.content.FileProvider"
|
||||||
|
android:authorities="${applicationId}.fileprovider"
|
||||||
|
android:exported="false"
|
||||||
|
android:grantUriPermissions="true">
|
||||||
|
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
|
||||||
|
</provider>
|
||||||
|
</application>
|
||||||
|
|
||||||
|
<!-- Permissions -->
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.CAMERA" />
|
||||||
|
</manifest>
|
||||||
29
android/app/src/main/assets/capacitor.config.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"appId": "app.timesafari",
|
||||||
|
"appName": "TimeSafari",
|
||||||
|
"webDir": "dist",
|
||||||
|
"bundledWebRuntime": false,
|
||||||
|
"server": {
|
||||||
|
"cleartext": true
|
||||||
|
},
|
||||||
|
"plugins": {
|
||||||
|
"App": {
|
||||||
|
"appUrlOpen": {
|
||||||
|
"handlers": [
|
||||||
|
{
|
||||||
|
"url": "timesafari://*",
|
||||||
|
"autoVerify": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"MLKitBarcodeScanner": {
|
||||||
|
"formats": [
|
||||||
|
"QR_CODE"
|
||||||
|
],
|
||||||
|
"detectorSize": 1,
|
||||||
|
"lensFacing": "back",
|
||||||
|
"googleBarcodeScannerModuleInstallState": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
30
android/app/src/main/assets/capacitor.plugins.json
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"pkg": "@capacitor/app",
|
||||||
|
"classpath": "com.capacitorjs.plugins.app.AppPlugin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pkg": "@capacitor/camera",
|
||||||
|
"classpath": "com.capacitorjs.plugins.camera.CameraPlugin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pkg": "@capacitor/clipboard",
|
||||||
|
"classpath": "com.capacitorjs.plugins.clipboard.ClipboardPlugin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pkg": "@capacitor/filesystem",
|
||||||
|
"classpath": "com.capacitorjs.plugins.filesystem.FilesystemPlugin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pkg": "@capacitor/share",
|
||||||
|
"classpath": "com.capacitorjs.plugins.share.SharePlugin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pkg": "@capawesome/capacitor-file-picker",
|
||||||
|
"classpath": "io.capawesome.capacitorjs.plugins.filepicker.FilePickerPlugin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pkg": "@capacitor-mlkit/barcode-scanning",
|
||||||
|
"classpath": "io.capawesome.capacitorjs.plugins.mlkit.barcodescanning.BarcodeScannerPlugin"
|
||||||
|
}
|
||||||
|
]
|
||||||
0
android/app/src/main/assets/public/cordova.js
vendored
Normal file
0
android/app/src/main/assets/public/cordova_plugins.js
vendored
Normal file
BIN
android/app/src/main/assets/public/favicon.ico
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 270 KiB |
|
After Width: | Height: | Size: 332 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 463 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 70 KiB |
BIN
android/app/src/main/assets/public/img/icons/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
android/app/src/main/assets/public/img/icons/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 46 KiB |
BIN
android/app/src/main/assets/public/img/icons/mstile-150x150.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
@@ -0,0 +1,86 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||||
|
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||||
|
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000"
|
||||||
|
preserveAspectRatio="xMidYMid meet">
|
||||||
|
|
||||||
|
<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"
|
||||||
|
fill="#000000" stroke="none">
|
||||||
|
<path d="M2480 4005 c-25 -7 -58 -20 -75 -29 -16 -9 -40 -16 -52 -16 -17 0
|
||||||
|
-24 -7 -28 -27 -3 -16 -14 -45 -24 -65 -21 -41 -13 -55 18 -38 25 13 67 13 92
|
||||||
|
-1 15 -8 35 -4 87 17 99 39 130 41 197 10 64 -29 77 -31 107 -15 20 11 20 11
|
||||||
|
-3 35 -12 13 -30 24 -38 24 -24 1 -132 38 -148 51 -8 7 -11 20 -7 32 12 37
|
||||||
|
-40 47 -126 22z"/>
|
||||||
|
<path d="M1450 3775 c-7 -8 -18 -15 -24 -15 -7 0 -31 -14 -54 -32 -29 -22 -38
|
||||||
|
-34 -29 -40 17 -11 77 -10 77 1 0 5 16 16 35 25 60 29 220 19 290 -18 17 -9
|
||||||
|
33 -16 37 -16 4 0 31 -15 60 -34 108 -70 224 -215 282 -353 30 -71 53 -190 42
|
||||||
|
-218 -10 -27 -23 -8 -52 75 -30 90 -88 188 -120 202 -13 6 -26 9 -29 6 -3 -2
|
||||||
|
11 -51 30 -108 28 -83 35 -119 35 -179 0 -120 -22 -127 -54 -17 -11 37 -13 21
|
||||||
|
-18 -154 -5 -180 -8 -200 -32 -264 -51 -132 -129 -245 -199 -288 -21 -12 -79
|
||||||
|
-49 -129 -80 -161 -102 -294 -141 -473 -141 -228 0 -384 76 -535 259 -81 99
|
||||||
|
-118 174 -154 312 -31 121 -35 273 -11 437 19 127 19 125 -4 125 -23 0 -51
|
||||||
|
-34 -87 -104 -14 -28 -33 -64 -41 -81 -19 -34 -22 -253 -7 -445 9 -106 12
|
||||||
|
-119 44 -170 19 -30 42 -67 50 -81 64 -113 85 -140 130 -169 28 -18 53 -44 61
|
||||||
|
-62 8 -20 36 -45 83 -76 62 -39 80 -46 151 -54 44 -5 96 -13 115 -18 78 -20
|
||||||
|
238 -31 282 -19 24 6 66 8 95 5 76 -9 169 24 319 114 32 19 80 56 106 82 27
|
||||||
|
26 52 48 58 48 5 0 27 26 50 58 48 66 56 70 132 71 62 1 165 29 238 64 112 55
|
||||||
|
177 121 239 245 37 76 39 113 10 267 -12 61 -23 131 -26 156 -5 46 -5 47 46
|
||||||
|
87 92 73 182 70 263 -8 l51 -49 -6 -61 c-4 -34 -13 -85 -21 -113 -28 -103 -30
|
||||||
|
-161 -4 -228 16 -44 32 -67 55 -83 18 -11 39 -37 47 -58 10 -23 37 -53 73 -81
|
||||||
|
32 -25 69 -57 82 -71 14 -14 34 -26 47 -26 12 0 37 -7 56 -15 20 -8 66 -17
|
||||||
|
104 -20 107 -10 110 -11 150 -71 50 -75 157 -177 197 -187 18 -5 53 -24 78
|
||||||
|
-42 71 -51 176 -82 304 -89 61 -4 127 -12 147 -18 29 -9 45 -8 77 6 23 9 50
|
||||||
|
16 60 16 31 0 163 46 216 76 28 15 75 46 105 69 30 23 69 49 85 58 17 8 46 31
|
||||||
|
64 51 19 20 40 36 47 36 18 0 77 70 100 120 32 66 45 108 55 173 5 32 16 71
|
||||||
|
24 87 43 84 43 376 0 549 -27 105 -43 127 -135 188 -30 21 -65 46 -77 57 -13
|
||||||
|
11 -23 17 -23 14 0 -3 21 -46 47 -94 79 -151 85 -166 115 -263 25 -83 28 -110
|
||||||
|
28 -226 0 -144 -17 -221 -75 -335 -39 -77 -208 -244 -304 -299 -451 -263 -975
|
||||||
|
-67 -1138 426 -23 70 -26 95 -28 254 -1 108 -7 183 -14 196 -6 12 -11 31 -11
|
||||||
|
43 0 32 31 122 52 149 10 13 18 28 18 34 0 5 25 40 56 78 60 73 172 170 219
|
||||||
|
190 30 12 30 13 6 17 -15 2 -29 -2 -37 -12 -6 -9 -16 -16 -22 -16 -6 0 -23
|
||||||
|
-11 -39 -24 -15 -12 -33 -25 -40 -27 -17 -6 -82 -60 -117 -97 -65 -70 -75 -82
|
||||||
|
-107 -133 -23 -34 -35 -46 -37 -35 -3 16 20 87 44 134 6 12 9 34 6 48 -4 22
|
||||||
|
-8 25 -31 19 -14 -3 -38 -15 -53 -26 -34 -24 -34 -21 -6 28 65 112 184 206
|
||||||
|
291 227 15 3 39 9 55 12 l27 6 -24 9 c-90 35 -304 -66 -478 -225 -39 -36 -74
|
||||||
|
-66 -77 -66 -22 0 18 82 72 148 19 23 32 46 28 49 -4 4 -26 13 -49 19 -73 21
|
||||||
|
-161 54 -171 64 -6 6 -20 10 -32 10 -21 0 -21 -1 -8 -40 45 -130 8 -247 -93
|
||||||
|
-299 -25 -13 -31 0 -14 29 15 22 1 33 -22 17 -56 -36 -117 -22 -117 28 0 13
|
||||||
|
-16 47 -35 76 -22 34 -33 60 -29 73 4 16 -3 26 -26 39 -16 10 -30 21 -30 25 1
|
||||||
|
18 54 64 87 76 l38 13 -33 5 c-30 4 -115 -18 -154 -42 -13 -7 -20 -5 -27 8 -9
|
||||||
|
16 -12 16 -53 1 -160 -61 -258 -104 -258 -114 0 -7 10 -20 21 -31 103 -91 217
|
||||||
|
-297 249 -449 28 -135 41 -237 35 -276 -14 -91 -48 -170 -97 -220 -44 -47 -68
|
||||||
|
-60 -68 -40 0 6 4 12 8 15 5 3 24 35 42 72 l33 67 -6 141 c-4 103 -11 158 -26
|
||||||
|
205 -12 35 -21 70 -21 77 0 7 -20 56 -45 108 -82 173 -227 322 -392 401 -67
|
||||||
|
33 -90 39 -163 42 -108 5 -130 10 -130 28 0 20 -63 20 -80 0z"/>
|
||||||
|
<path d="M3710 3765 c0 -20 8 -28 39 -41 22 -8 42 -22 45 -30 5 -14 42 -19 70
|
||||||
|
-8 10 4 -7 21 -58 55 -41 27 -79 49 -85 49 -6 0 -11 -11 -11 -25z"/>
|
||||||
|
<path d="M3173 3734 c-9 -25 10 -36 35 -18 12 8 22 19 22 25 0 16 -50 10 -57
|
||||||
|
-7z"/>
|
||||||
|
<path d="M1982 3728 c6 -16 36 -34 44 -26 3 4 4 14 1 23 -7 17 -51 21 -45 3z"/>
|
||||||
|
<path d="M1540 3620 c0 -5 7 -10 16 -10 8 0 12 5 9 10 -3 6 -10 10 -16 10 -5
|
||||||
|
0 -9 -4 -9 -10z"/>
|
||||||
|
<path d="M4467 3624 c-4 -4 23 -27 60 -50 84 -56 99 -58 67 -9 -28 43 -107 79
|
||||||
|
-127 59z"/>
|
||||||
|
<path d="M655 3552 c-11 -2 -26 -9 -33 -14 -7 -6 -27 -18 -45 -27 -36 -18 -58
|
||||||
|
-64 -39 -83 9 -9 25 1 70 43 53 48 78 78 70 84 -2 1 -12 -1 -23 -3z"/>
|
||||||
|
<path d="M1015 3460 c-112 -24 -247 -98 -303 -165 -53 -65 -118 -214 -136
|
||||||
|
-311 -20 -113 -20 -145 -1 -231 20 -88 49 -153 102 -230 79 -113 186 -182 331
|
||||||
|
-214 108 -24 141 -24 247 1 130 30 202 72 316 181 102 100 153 227 152 384 0
|
||||||
|
142 -58 293 -150 395 -60 67 -180 145 -261 171 -75 23 -232 34 -297 19z m340
|
||||||
|
-214 c91 -43 174 -154 175 -234 0 -18 -9 -51 -21 -73 -19 -37 -19 -42 -5 -64
|
||||||
|
35 -54 12 -121 -48 -142 -22 -7 -47 -19 -55 -27 -9 -8 -41 -27 -71 -42 -50
|
||||||
|
-26 -64 -29 -155 -29 -111 0 -152 14 -206 68 -49 49 -63 85 -64 162 0 59 4 78
|
||||||
|
28 118 31 52 96 105 141 114 23 5 33 17 56 68 46 103 121 130 225 81z"/>
|
||||||
|
<path d="M3985 3464 c-44 -7 -154 -44 -200 -67 -55 -28 -138 -96 -162 -132
|
||||||
|
-10 -16 -39 -75 -64 -130 l-44 -100 0 -160 0 -160 45 -90 c53 -108 152 -214
|
||||||
|
245 -264 59 -31 215 -71 281 -71 53 0 206 40 255 67 98 53 203 161 247 253 53
|
||||||
|
113 74 193 74 280 -1 304 -253 564 -557 575 -49 2 -103 1 -120 -1z m311 -220
|
||||||
|
c129 -68 202 -209 160 -309 -15 -35 -15 -42 -1 -72 26 -55 -3 -118 -59 -129
|
||||||
|
-19 -3 -43 -15 -53 -26 -26 -29 -99 -64 -165 -78 -45 -10 -69 -10 -120 -1 -74
|
||||||
|
15 -113 37 -161 91 -110 120 -50 331 109 385 24 8 44 23 52 39 6 14 18 38 25
|
||||||
|
53 33 72 127 93 213 47z"/>
|
||||||
|
<path d="M487 3394 c-21 -12 -27 -21 -25 -40 2 -14 7 -26 12 -27 14 -3 48 48
|
||||||
|
44 66 -3 14 -6 14 -31 1z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 705 KiB |
@@ -0,0 +1,11 @@
|
|||||||
|
Model Information:
|
||||||
|
* title: Lupine Plant
|
||||||
|
* source: https://sketchfab.com/3d-models/lupine-plant-bf30f1110c174d4baedda0ed63778439
|
||||||
|
* author: rufusrockwell (https://sketchfab.com/rufusrockwell)
|
||||||
|
|
||||||
|
Model License:
|
||||||
|
* license type: CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
|
||||||
|
* requirements: Author must be credited. Commercial use is allowed.
|
||||||
|
|
||||||
|
If you use this 3D model in your project be sure to copy paste this credit wherever you share it:
|
||||||
|
This work is based on "Lupine Plant" (https://sketchfab.com/3d-models/lupine-plant-bf30f1110c174d4baedda0ed63778439) by rufusrockwell (https://sketchfab.com/rufusrockwell) licensed under CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)
|
||||||
BIN
android/app/src/main/assets/public/models/lupine_plant/scene.bin
Normal file
@@ -0,0 +1,229 @@
|
|||||||
|
{
|
||||||
|
"accessors": [
|
||||||
|
{
|
||||||
|
"bufferView": 2,
|
||||||
|
"componentType": 5126,
|
||||||
|
"count": 2759,
|
||||||
|
"max": [
|
||||||
|
41.3074951171875,
|
||||||
|
40.37548828125,
|
||||||
|
87.85917663574219
|
||||||
|
],
|
||||||
|
"min": [
|
||||||
|
-35.245540618896484,
|
||||||
|
-36.895416259765625,
|
||||||
|
-0.9094290137290955
|
||||||
|
],
|
||||||
|
"type": "VEC3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"bufferView": 2,
|
||||||
|
"byteOffset": 33108,
|
||||||
|
"componentType": 5126,
|
||||||
|
"count": 2759,
|
||||||
|
"max": [
|
||||||
|
0.9999382495880127,
|
||||||
|
0.9986748695373535,
|
||||||
|
0.9985831379890442
|
||||||
|
],
|
||||||
|
"min": [
|
||||||
|
-0.9998949766159058,
|
||||||
|
-0.9975876212120056,
|
||||||
|
-0.411094069480896
|
||||||
|
],
|
||||||
|
"type": "VEC3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"bufferView": 3,
|
||||||
|
"componentType": 5126,
|
||||||
|
"count": 2759,
|
||||||
|
"max": [
|
||||||
|
0.9987699389457703,
|
||||||
|
0.9998998045921326,
|
||||||
|
0.9577858448028564,
|
||||||
|
1.0
|
||||||
|
],
|
||||||
|
"min": [
|
||||||
|
-0.9987726807594299,
|
||||||
|
-0.9990445971488953,
|
||||||
|
-0.999801516532898,
|
||||||
|
1.0
|
||||||
|
],
|
||||||
|
"type": "VEC4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"bufferView": 1,
|
||||||
|
"componentType": 5126,
|
||||||
|
"count": 2759,
|
||||||
|
"max": [
|
||||||
|
1.0061479806900024,
|
||||||
|
0.9993550181388855
|
||||||
|
],
|
||||||
|
"min": [
|
||||||
|
0.00279300007969141,
|
||||||
|
0.0011620000004768372
|
||||||
|
],
|
||||||
|
"type": "VEC2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"bufferView": 0,
|
||||||
|
"componentType": 5125,
|
||||||
|
"count": 6378,
|
||||||
|
"type": "SCALAR"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"asset": {
|
||||||
|
"extras": {
|
||||||
|
"author": "rufusrockwell (https://sketchfab.com/rufusrockwell)",
|
||||||
|
"license": "CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)",
|
||||||
|
"source": "https://sketchfab.com/3d-models/lupine-plant-bf30f1110c174d4baedda0ed63778439",
|
||||||
|
"title": "Lupine Plant"
|
||||||
|
},
|
||||||
|
"generator": "Sketchfab-12.68.0",
|
||||||
|
"version": "2.0"
|
||||||
|
},
|
||||||
|
"bufferViews": [
|
||||||
|
{
|
||||||
|
"buffer": 0,
|
||||||
|
"byteLength": 25512,
|
||||||
|
"name": "floatBufferViews",
|
||||||
|
"target": 34963
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buffer": 0,
|
||||||
|
"byteLength": 22072,
|
||||||
|
"byteOffset": 25512,
|
||||||
|
"byteStride": 8,
|
||||||
|
"name": "floatBufferViews",
|
||||||
|
"target": 34962
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buffer": 0,
|
||||||
|
"byteLength": 66216,
|
||||||
|
"byteOffset": 47584,
|
||||||
|
"byteStride": 12,
|
||||||
|
"name": "floatBufferViews",
|
||||||
|
"target": 34962
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buffer": 0,
|
||||||
|
"byteLength": 44144,
|
||||||
|
"byteOffset": 113800,
|
||||||
|
"byteStride": 16,
|
||||||
|
"name": "floatBufferViews",
|
||||||
|
"target": 34962
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"buffers": [
|
||||||
|
{
|
||||||
|
"byteLength": 157944,
|
||||||
|
"uri": "scene.bin"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"images": [
|
||||||
|
{
|
||||||
|
"uri": "textures/lambert2SG_baseColor.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"uri": "textures/lambert2SG_normal.png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"materials": [
|
||||||
|
{
|
||||||
|
"alphaCutoff": 0.2,
|
||||||
|
"alphaMode": "MASK",
|
||||||
|
"doubleSided": true,
|
||||||
|
"name": "lambert2SG",
|
||||||
|
"normalTexture": {
|
||||||
|
"index": 1
|
||||||
|
},
|
||||||
|
"pbrMetallicRoughness": {
|
||||||
|
"baseColorTexture": {
|
||||||
|
"index": 0
|
||||||
|
},
|
||||||
|
"metallicFactor": 0.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meshes": [
|
||||||
|
{
|
||||||
|
"name": "Object_0",
|
||||||
|
"primitives": [
|
||||||
|
{
|
||||||
|
"attributes": {
|
||||||
|
"NORMAL": 1,
|
||||||
|
"POSITION": 0,
|
||||||
|
"TANGENT": 2,
|
||||||
|
"TEXCOORD_0": 3
|
||||||
|
},
|
||||||
|
"indices": 4,
|
||||||
|
"material": 0,
|
||||||
|
"mode": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"matrix": [
|
||||||
|
1.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
2.220446049250313e-16,
|
||||||
|
-1.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
1.0,
|
||||||
|
2.220446049250313e-16,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
0.0,
|
||||||
|
1.0
|
||||||
|
],
|
||||||
|
"name": "Sketchfab_model"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"children": [
|
||||||
|
2
|
||||||
|
],
|
||||||
|
"name": "LupineSF.obj.cleaner.materialmerger.gles"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mesh": 0,
|
||||||
|
"name": "Object_2"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"samplers": [
|
||||||
|
{
|
||||||
|
"magFilter": 9729,
|
||||||
|
"minFilter": 9987,
|
||||||
|
"wrapS": 10497,
|
||||||
|
"wrapT": 10497
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"scene": 0,
|
||||||
|
"scenes": [
|
||||||
|
{
|
||||||
|
"name": "Sketchfab_Scene",
|
||||||
|
"nodes": [
|
||||||
|
0
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"textures": [
|
||||||
|
{
|
||||||
|
"sampler": 0,
|
||||||
|
"source": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sampler": 0,
|
||||||
|
"source": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 3.6 MiB |
|
After Width: | Height: | Size: 4.7 MiB |
2
android/app/src/main/assets/public/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow:
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package app.timesafari;
|
||||||
|
|
||||||
|
import com.getcapacitor.BridgeActivity;
|
||||||
|
|
||||||
|
public class MainActivity extends BridgeActivity {
|
||||||
|
// ... existing code ...
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package timesafari.app;
|
||||||
|
|
||||||
|
import com.getcapacitor.BridgeActivity;
|
||||||
|
|
||||||
|
public class MainActivity extends BridgeActivity {}
|
||||||
BIN
android/app/src/main/res/drawable-land-hdpi/splash.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
android/app/src/main/res/drawable-land-mdpi/splash.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
android/app/src/main/res/drawable-land-xhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
android/app/src/main/res/drawable-land-xxhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
android/app/src/main/res/drawable-land-xxxhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
android/app/src/main/res/drawable-port-hdpi/splash.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
android/app/src/main/res/drawable-port-mdpi/splash.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
android/app/src/main/res/drawable-port-xhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
android/app/src/main/res/drawable-port-xxhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
android/app/src/main/res/drawable-port-xxxhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:aapt="http://schemas.android.com/aapt"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportHeight="108"
|
||||||
|
android:viewportWidth="108">
|
||||||
|
<path
|
||||||
|
android:fillType="evenOdd"
|
||||||
|
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
|
||||||
|
android:strokeColor="#00000000"
|
||||||
|
android:strokeWidth="1">
|
||||||
|
<aapt:attr name="android:fillColor">
|
||||||
|
<gradient
|
||||||
|
android:endX="78.5885"
|
||||||
|
android:endY="90.9159"
|
||||||
|
android:startX="48.7653"
|
||||||
|
android:startY="61.0927"
|
||||||
|
android:type="linear">
|
||||||
|
<item
|
||||||
|
android:color="#44000000"
|
||||||
|
android:offset="0.0" />
|
||||||
|
<item
|
||||||
|
android:color="#00000000"
|
||||||
|
android:offset="1.0" />
|
||||||
|
</gradient>
|
||||||
|
</aapt:attr>
|
||||||
|
</path>
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFF"
|
||||||
|
android:fillType="nonZero"
|
||||||
|
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
|
||||||
|
android:strokeColor="#00000000"
|
||||||
|
android:strokeWidth="1" />
|
||||||
|
</vector>
|
||||||
170
android/app/src/main/res/drawable/ic_launcher_background.xml
Normal file
@@ -0,0 +1,170 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="108dp"
|
||||||
|
android:height="108dp"
|
||||||
|
android:viewportHeight="108"
|
||||||
|
android:viewportWidth="108">
|
||||||
|
<path
|
||||||
|
android:fillColor="#26A69A"
|
||||||
|
android:pathData="M0,0h108v108h-108z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M9,0L9,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M19,0L19,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M29,0L29,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M39,0L39,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M49,0L49,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M59,0L59,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M69,0L69,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M79,0L79,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M89,0L89,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M99,0L99,108"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,9L108,9"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,19L108,19"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,29L108,29"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,39L108,39"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,49L108,49"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,59L108,59"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,69L108,69"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,79L108,79"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,89L108,89"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M0,99L108,99"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M19,29L89,29"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M19,39L89,39"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M19,49L89,49"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M19,59L89,59"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M19,69L89,69"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M19,79L89,79"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M29,19L29,89"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M39,19L39,89"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M49,19L49,89"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M59,19L59,89"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M69,19L69,89"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#00000000"
|
||||||
|
android:pathData="M79,19L79,89"
|
||||||
|
android:strokeColor="#33FFFFFF"
|
||||||
|
android:strokeWidth="0.8" />
|
||||||
|
</vector>
|
||||||
BIN
android/app/src/main/res/drawable/splash.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
12
android/app/src/main/res/layout/activity_main.xml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
tools:context=".MainActivity">
|
||||||
|
|
||||||
|
<WebView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent" />
|
||||||
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<background android:drawable="@color/ic_launcher_background"/>
|
||||||
|
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||||
|
</adaptive-icon>
|
||||||
BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 15 KiB |
BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="ic_launcher_background">#FFFFFF</color>
|
||||||
|
</resources>
|
||||||
7
android/app/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">TimeSafari</string>
|
||||||
|
<string name="title_activity_main">TimeSafari</string>
|
||||||
|
<string name="package_name">timesafari.app</string>
|
||||||
|
<string name="custom_url_scheme">timesafari.app</string>
|
||||||
|
</resources>
|
||||||
22
android/app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- Base application theme. -->
|
||||||
|
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||||
|
<!-- Customize your theme here. -->
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||||
|
<item name="windowActionBar">false</item>
|
||||||
|
<item name="windowNoTitle">true</item>
|
||||||
|
<item name="android:background">@null</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
|
||||||
|
<item name="android:background">@drawable/splash</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
6
android/app/src/main/res/xml/config.xml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||||
|
<access origin="*" />
|
||||||
|
|
||||||
|
|
||||||
|
</widget>
|
||||||
6
android/app/src/main/res/xml/file_paths.xml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<external-path name="my_images" path="." />
|
||||||
|
<cache-path name="my_cache_images" path="." />
|
||||||
|
<files-path name="my_files" path="." />
|
||||||
|
</paths>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
package com.getcapacitor.myapp;
|
||||||
|
|
||||||
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Example local unit test, which will execute on the development machine (host).
|
||||||
|
*
|
||||||
|
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||||
|
*/
|
||||||
|
public class ExampleUnitTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void addition_isCorrect() throws Exception {
|
||||||
|
assertEquals(4, 2 + 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
29
android/build.gradle
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'com.android.tools.build:gradle:8.9.1'
|
||||||
|
classpath 'com.google.gms:google-services:4.4.0'
|
||||||
|
|
||||||
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
// in the individual module build.gradle files
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "variables.gradle"
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
task clean(type: Delete) {
|
||||||
|
delete rootProject.buildDir
|
||||||
|
}
|
||||||