Skip to content

Commit

Permalink
change orientation in build_instructions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sayantan-kgp committed Mar 13, 2021
1 parent a304d71 commit 7e12276
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions build_instructions.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
## Build instructions (in Linux terminal):
1. Make sure you have `git` installed on your system. Type `git --version` to check installed version. If not installed, refer to your distribution's package manager to check how to install it.
2. Change to your preferred directory. Here we are assuming your home directory on Linux.
```
cd ~
```
3. Clone this repository. Then change directory into the repository.
```
git clone https://github.com/SayantanRC/FileX.git
cd FileX
```

# Build instructions (in Linux terminal):
1. Make sure you have `git` installed on your system. Type `git --version` to check installed version. If not installed, refer to your distribution's package manager to check how to install it.
2. Change to your preferred directory. Here we are assuming your home directory on Linux.
```
cd ~
```
3. Clone this repository. Then change directory into the repository.
```
git clone https://github.com/SayantanRC/FileX.git
cd FileX
```
4. You can now directly use this directory in your projects.
- To add it as an external library, open your project in Android Studio.
- Open `settings.gradle` file.
Expand All @@ -23,11 +24,11 @@ cd FileX
implementation project(path: ':FileX')
```
- Then Gradle sync.
- Advantage of the is that you can again cd to the `FileX` cloned repository (`cd ~/FileX`) and pull new changes/commits anytime you wish (`git pull`) without waiting for releases on jitpack or anywhere.
- Advantage of the is that you can again cd to the `FileX` cloned repository (`cd ~/FileX`) and pull new changes/commits anytime you wish (`git pull`) without waiting for releases on jitpack or anywhere.
5. However, if you with to build AAR, use the following commands. Here we are assuming your `android-studio` directory is under home and you are using the Java runtime provided by it.
```
cd ~/FileX
export JAVA_HOME="$HOME/android-studio/jre/"
./gradlew assembleRelease -xtest -xlint
```
The compiled AAR is located under the FileX directory -> build/outputs/aar/FileX-release.aar
```
cd ~/FileX
export JAVA_HOME="$HOME/android-studio/jre/"
./gradlew assembleRelease -xtest -xlint
```
The compiled AAR is located under the FileX directory -> build/outputs/aar/FileX-release.aar

0 comments on commit 7e12276

Please sign in to comment.