Trainium Documentation

website·Indexed 29 days ago

https://trainium2dam.github.io

Technical documentation for Trainium, a native Android application for comprehensive gym management. The docs cover the technical stack, architecture including the NavHost navigation graph in MainActivity.kt, data models using kotlinx.serialization, utility classes like AppConfig and DbConstants, and API services such as SupabaseClient.

Tokens
165.5K
Snippets
678
Records
1.3K
Agent score
67%

What's inside Trainium

  1. Overview of Trainium Gym Management Platform

    Trainium is an all-in-one intelligent management platform for sports centers and gyms. It provides a suite of tools to digitize gym operations, including user authentication, equipment scheduling, and member health tracking.
  2. Overview of Trainium i18n Architecture

    Trainium implements a custom internationalization system in Jetpack Compose using CompositionLocal. This architecture allows the UI language to change at runtime without requiring an application restart. The system is organized within the data/i18n/ package across five primary files:

    • AppLanguage.kt: Enum of 12 supported languages and logic to resolve them from a Locale.
    • AppStrings.kt: Data class containing all UI string literals as properties.
    • LocalStrings.kt: Defines the CompositionLocal and the stringsForLanguage() helper function.
    • LanguageManager.kt: Handles language persistence using DataStore.
    • LanguagePickerDialog.kt: The UI component for selecting a language.

    Language-specific translations are stored in separate files (e.g., StringsEs.kt, StringsEn.kt) as specific instances of AppStrings.

  3. Overview of Trainium Gym Management Platform

    Trainium is an all-in-one intelligent management platform for sports centers and gyms. It provides a suite of tools to digitize gym operations, including user authentication, equipment scheduling, and member health tracking.
  4. Overview of Trainium i18n Architecture

    Trainium implements its internationalization system in Compose using CompositionLocal to allow the UI language to change at runtime without restarting the application. The system is organized within the data/i18n/ package and consists of the following components:

    • AppLanguage.kt: Enum containing 12 supported languages and their identifiers.
    • AppStrings.kt: Data class containing all UI string literals as properties.
    • LocalStrings.kt: Provides the CompositionLocal and the stringsForLanguage() helper function.
    • LanguageManager.kt: Handles language persistence using DataStore.
    • LanguagePickerDialog.kt: UI component for selecting a language.
    • String files (e.g., StringsEs.kt, StringsEn.kt): Specific AppStrings instances for each language.
  5. Overview of Trainium i18n Architecture

    Trainium uses a custom internationalization system in Compose based on CompositionLocal to enable runtime language switching without restarting the application. The system is organized within the data/i18n/ package with the following components:

    • AppLanguage.kt: Enum defining supported languages and their resolution from Locale.
    • AppStrings.kt: Data class containing all UI string literals as properties.
    • LocalStrings.kt: Provides the CompositionLocal and the stringsForLanguage() helper function.
    • LanguageManager.kt: Handles language persistence using DataStore.
    • LanguagePickerDialog.kt: UI component for language selection.
    • Concrete string files (e.g., StringsEs.kt, StringsEn.kt): Implementations of AppStrings for specific languages.
  6. Overview of Trainium i18n Architecture

    Trainium uses a custom internationalization system in Jetpack Compose that allows runtime language switching without restarting the application. The system is centered around a CompositionLocal and consists of the following components in the data/i18n/ package:

    • AppLanguage.kt: Enum defining supported languages and their resolution from Locale.
    • AppStrings.kt: Data class containing all UI string literals as properties.
    • LocalStrings.kt: Provides the CompositionLocal and the stringsForLanguage() helper function.
    • LanguageManager.kt: Handles language persistence using DataStore.
    • LanguagePickerDialog.kt: UI component for language selection.

    Language-specific string instances (e.g., StringsEs.kt, StringsEn.kt) implement the AppStrings data class.

  7. Overview of Trainium i18n Architecture

    Trainium uses a custom internationalization system in Compose based on CompositionLocal, allowing the UI language to be changed at runtime without restarting the application. The system is organized within the data/i18n/ package with the following components:

    • AppLanguage.kt: Enum defining supported languages and their resolution from Locale.
    • AppStrings.kt: Data class containing all UI string literals as properties.
    • LocalStrings.kt: Provides the CompositionLocal and the stringsForLanguage() helper function.
    • LanguageManager.kt: Handles language persistence using DataStore.
    • LanguagePickerDialog.kt: The UI component for language selection.
    • Concrete string files (e.g., StringsEs.kt, StringsEn.kt): Implementations of AppStrings for specific languages.
  8. Overview of Trainium gym management features

    Trainium is a comprehensive management platform for gyms and sports centers. It provides the following core functional modules:

    • User Management: Full authentication system including login, registration, password recovery, and encrypted data protection.
    • Machine Booking: Real-time availability checks and booking to optimize training sessions and reduce wait times.
    • Nutritional Plans: Goal-based diet management (weight loss, bulking, or maintenance) with macro tracking.
    • Machine Catalog: A detailed directory of equipment featuring exercise tutorials, targeted muscle groups, and instructions.
    • Physical Tracking: Monitoring of weight, BMI, and body measurements with visual progress charts and statistics.
    • Premium Access: Management of personalized plans, unlimited tracking, priority support, and integrated payment methods.
  9. Overview of Trainium i18n Architecture

    Trainium uses a custom internationalization system in Compose based on CompositionLocal to enable runtime language switching without restarting the application. The system is organized in the data/i18n/ package with the following components:

    • AppLanguage.kt: Enum defining supported languages and Locale resolution.
    • AppStrings.kt: Data class containing all UI string literals as properties.
    • LocalStrings.kt: Provides the CompositionLocal and the stringsForLanguage() helper function.
    • LanguageManager.kt: Handles language persistence using DataStore.
    • LanguagePickerDialog.kt: UI component for language selection.
    • Strings[Xx].kt: Concrete instances of AppStrings for each supported language (e.g., StringsEs.kt, StringsEn.kt).
  10. Overview of Trainium application features

    Trainium is an Android application designed for managing sports activities. It provides the following core functionalities:

    • Equipment Management: Browse the equipment catalog and book time slots for machines.
    • Booking Management: View, filter, and cancel bookings, with the ability to export them to the phone's calendar.
    • Nutrition & Recipes: Browse recipes, check calories and preparation time, and suggest new recipes.
    • Weight Tracking: Log daily weight and visualize progress via a graph.
    • Profile Management: Edit personal data, update profile pictures, and configure notifications.
    • Premium Subscription: Access advanced features through monthly, semi-annual, or annual subscription plans.
  11. Overview of Trainium gym management features

    Trainium is an Android application designed to manage gym activities. It provides the following core functionalities:

    • Equipment Management: Browse the equipment catalog and reserve time slots for machines.
    • Reservation Management: View, filter, and cancel reservations, with the ability to export them to the phone's calendar.
    • Nutrition: Search for recipes, check calories and preparation times, and suggest new dishes.
    • Weight Tracking: Log daily weight and visualize progress via a graph.
    • Profile Management: Edit personal data, update profile photos, and configure notifications.
    • Premium Subscriptions: Access all features via monthly, semi-annual, or annual subscription plans.
  12. Overview of Trainium gym management features

    Trainium is a comprehensive platform designed for the intelligent management of sports centers and gyms. Its core feature set includes:

    • User Management: Full authentication system including registration, login, password recovery, and advanced data encryption.
    • Machine Booking: Real-time availability checks and booking to optimize training sessions and reduce wait times.
    • Nutritional Plans: Goal-based diet planning (weight loss, bulking, or maintenance) with integrated macro tracking.
    • Machine Catalog: A detailed directory of equipment featuring exercise tutorials, instructions, and targeted muscle group information.
    • Physical Tracking: Monitoring of weight, BMI, and body measurements with detailed statistics and progress graphs.
    • Premium Access: Management of personalized plans, unlimited tracking, priority support, and integrated payment methods.