-
Notifications
You must be signed in to change notification settings - Fork 198
Developer documentation
-
Download and Install Android Studio.
-
Install node.js from http://nodejs.org/.
-
Open a Terminal/command prompt.
-
Create a directory e.g. 'mydevdir' and change to that directory.
-
Run:
git clone https://github.com/AndBible/and-bible.git
- In Android Studio select File/Open. Then open the and-bible folder with a green compass icon under mydevdir/and-bible/and-bible.
While running And Bible in emulator, I'm using the following configuration:
Other steps which may be required:
- In Android Studio, enable 'Google Play Licensing Library' via Tools > SDK Manager > Android SDK > SDK Tools
It is possible to install And Bible as 2 different IDs on your device. This is really having 2 installs of And Bible on one device. To build the debug version as a separate app, simply open local.properties
file (which is in the root of the development project), and add this line at the bottom: APP_SUFFIX=.debug
Now when you build the app it will create a separate And Bible application on your device.
I (Tuomas) am using (and recommend) Android Studio for native Android code and WebStorm for Vue.js / Javascript side. Free alternative (which I have heard is very good) for Vue.js / Javascript development is Visual Studio Code with Vetur extension which enables Vue.js support.
Configuration for running tests in Android Studio:
For running tests, you need to install test modules. There is one module in test modules package that we don't have permission to distribute publicly, so please contact us ([email protected]) if you need to run tests. CI has these modules.
- Fork the repo
- Consider writing unit tests (whether it is very important or not depends on the type of code you write)
- Run tests and fix any that happen to be broken after your improvements
- Create pull request from your fork's feature branch (see naming convention) towards one of these branches:
- develop (for new features)
- current-stable (for bugfixes or minor improvements)
- Do not write too long lines (120 characters should be your guide)
- Preferrably write new code in Kotlin (i.e. if you need to create new file, create Kotlin file)
- If you are planning to work on stuff that involves touching a lot of Java files, please discuss with Tuomas first. We are gradually migrating Java files to Kotlin and that should probably be done first.
Please name your branches in the following syntax: <type>/#<issue-number>_<name>
, where
-
<type>
can be one of:- feature
- bugfix
- improve
- docs
- refactor
-
<issue-number>
is the Github issue number. Use it where applicable, e.g. docs or refactor might not have an issue. -
<name>
is a short human-readable name of the feature, spaces replaced with underscores (_).
Example: feature/#100_improve_layout
- Test fresh install
- Test migrations
- Test release (see Release testing)
- About 1-2 weeks before,
tx push -s
and call for translators- Write release notes on a ticket (see for example #474)
- Write translator context ticket (see for example #472)
- Increment major or minor version and release 'release candidate' (RC) in Play Store
- Prepare introduction video (See #475 for example)
- Update translations (
make tx-pull
) - Update Play Store & F-Droid & website description texts if needed (
make fastlane-supply
) - Merge develop to current-stable
- Create new release/ branch from current-stable
- Update .github/workflows/config.properties file
- Tag a release (vx.x.xxx) and release in Play Store
- Tag a f-droid release (vx.x.xxx-fdroid) for new automatic f-droid build
- Make a facebook post
- Home
- Support
- FAQ (English)
- How to contribute
- Backup & Restore
- Reading Plans
- Discrete build (for the persecuted)
- And Bible Advanced Usage
- Press releases / release notes
- People
- Privacy Policy
- Terms of Service