mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-16 15:48:13 +08:00
3
App structure
M M Arif edited this page 2023-01-20 17:49:19 +00:00
app/src/main
├── AndroidManifest.xml # Manifest file
├── assets
│ └── fonts
│ └── # custom fonts
├── java/org/mian/gitnex
│ ├── actions
│ │ └── # reusable actions to send POST, PATCH, PUT or DELETE requests to Forgejo or Gitea instances
│ ├── activities
│ │ ├── # the application's activities
│ │ ├── MainActivity.java # main activity, launched when app launchs
│ │ └── Settings*Activity.java # activities used in the settings
│ ├── adapters
│ │ ├── # the application's adapters for RecyclerViews
│ │ └── profile
│ │ └── # the adapters for RecyclerViews used in the user profiles
│ ├── clients
│ │ └── # clients for Picasso and Retrofit
│ ├── core
│ │ ├── MainApplication.java # the application code
│ │ └── MainGrammarLocator.java # code to get syntax highlighting language from extension
│ ├── database
│ │ ├── api
│ │ │ └── # classes to query database content
│ │ ├── dao
│ │ │ └── # Room Daos (Database Access Objects)
│ │ ├── db
│ │ │ └── GitnexDatabase.java # the database
│ │ └── models
│ │ └── # database models
│ ├── fragments
│ │ ├── # the application's fragments (used in MainActivity and ViewPagers)
│ │ └── profile
│ │ └── # the fragments used in the user profiles
│ ├── helpers
│ │ └── # various classes/functions to simplify code
│ ├── notifications
│ | └── # background notifications
│ ├── viewmodels
│ | └── # ViewModels for different activities/fragments
│ └── views
│ └── # Android views
└── res
├── # Android resource files
├── drawable # icons and logos
├── layout # layout files
├── menu # menu files (for option menus)
└── values-* # translation files