https://github.com/1312inc/webasyst-x-android
Simple Android boilerplate app that authenticates users via Webasyst ID and connects to Blog, Site, and Shop-Script server apps APIs. A handy starter kit for developing custom native Android client apps for just any Webasyst server-side setup.
https://github.com/1312inc/webasyst-x-android
android android-application android-studio boilerplate-application kotlin-extension webasyst
Last synced: 12 months ago
JSON representation
Simple Android boilerplate app that authenticates users via Webasyst ID and connects to Blog, Site, and Shop-Script server apps APIs. A handy starter kit for developing custom native Android client apps for just any Webasyst server-side setup.
- Host: GitHub
- URL: https://github.com/1312inc/webasyst-x-android
- Owner: 1312inc
- License: mit
- Created: 2020-08-23T03:19:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T13:32:08.000Z (almost 3 years ago)
- Last Synced: 2025-04-12T07:51:48.968Z (about 1 year ago)
- Topics: android, android-application, android-studio, boilerplate-application, kotlin-extension, webasyst
- Language: Kotlin
- Homepage: https://developers.webasyst.com/
- Size: 1.06 MB
- Stars: 2
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webasyst-X-Android

Simple native boilerplate Android app that authenticates users via Webasyst ID and enables direct access to all linked Webasyst accounts APIs.
## Running the example app with Android Studio
1. Clone this repository
2. Create new file `webasyst.properties` in repository root:
```
webasyst.x.client_id="YOUR_WEBASYSTID_APP_CLIENT_ID_HERE"
webasyst.x.host="https://www.webasyst.com"
```
Get your Webasyst ID auth client id here: https://www.webasyst.com/my/waid/apps/
3. Install Android Studio as described in https://developer.android.com/studio/install
4. In Android Studio choose file -> open and navigate to project directory.
5. Detailed manual on running an app on the Android Emulator can be found here: https://developer.android.com/studio/run/emulator
## Project structure
The project has a main module `webasyst-x` that provides the core structure of the sample Android application.
Also have the following gradle submodules:
### `auth`
The module contains on-boarding screens (intro) and activity for authorization. Implemented methods of authorization by password, by phone number, by QR Code. Also implemented is an express connection of the WAID-user to the installation using a QR Code.
### `barcode`
Use this module if you need to login and connect users by QR Code.
### `common`
Сommon utility classes, functions and resources.
### `i18n`
String resources of the whole project (incl. submodules). See [note for translators](#note-for-translators)
### `installations`
A key module that allows you to get information about the user's installations. Contains both data layer objects and interface elements that allow the user to switch between installations.
### `pin_code`
Use this module if you need to protect sensitive user data. Call `PinCodeStore.hasPinCode()` or `PinCodeStore.hasPinCodeWithTime()` in `onResume()` of the corresponding activity or fragment.
### `profile_editor`
Adds user profile editing features.
## Note for translators
String resources are located in `/webasyst-x/i18n/src/main/res/values[-lang[-rREGION]]`
where `lang` is two-letter ISO 639-1 language code
and `REGION` is two letter ISO 3166-1-alpha-2 region code (note the lowercase r).
Android selects resources based on the system locale. If it fails to locate appropriate
resources, it falls back to default (`res/values/`)
For details, follow the link https://developer.android.com/guide/topics/resources/localization
For details on string resource format, follow the link https://developer.android.com/guide/topics/resources/string-resource
## Сreate your own application based on the example application
1. Change unique application ID in the main module build.gradle file. More about application ID here: https://developer.android.com/build/configure-app-module
2. Change the package attribute of the main `Manifest.xml` file and change the package name in all source files.
3. Change application name in the string resources.
4. Change `app_redirect_scheme` in string resources. It is recommended that you specify a package name or your web domain (in reverse domain name notation)
5. Modify the source code at your own discretion.