From ad5f282d3ea293d76ac0574cc62271d645eeb1e2 Mon Sep 17 00:00:00 2001 From: M M Arif Date: Sun, 10 Oct 2021 21:51:32 +0200 Subject: [PATCH] Add 'App structure' --- App-structure.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 App-structure.md diff --git a/App-structure.md b/App-structure.md new file mode 100644 index 0000000..7539ec8 --- /dev/null +++ b/App-structure.md @@ -0,0 +1,48 @@ +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 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