This project is the android client for V Transfer, allowing people to share their file easily with minimum steps without compromising with the security. At the backend we are using IPFS to upload file which is a blockchain based technology for file sharing making it secure and reliable, below are some of the key feature of this app.
- Upload file and get a short url for sharing
- Create different URL with different configuration like
- Limit click count
- Control visibility of url (suspending the url temporarily)
- Deleting the url
- View file details and related urls
- User authentication for better security
- Manage user details
- Support dark and light mode
Before setting up the development environment make sure you have downloaded the Android Studio SDK and set it up correctly. You can find a guide on how to do this here: Setting up Android Studio.
- Clone the repository using command:
git clone https://github.com/code-gambit/VT-AndroidClient.git
- Open Android Studio.
- Click on 'Open an existing Android Studio project'
- Browse to the directory where you cloned the android-client repo and click OK.
- Let Android Studio import the project.
- Build the application in your device by clicking run button.
- Fork it
- Create your feature branch
(git checkout -b my-new-feature)
- Commit your changes
(git commit -m 'Add some feature')
- In case of multiple commits squash them. You can find guide here: how to squash commits
- Clear the checks and make sure build is successfull
- Push your branch
(git push origin my-new-feature)
- Create a new Pull Request, following the template
Currently we have basic github workflow setup for CI, which takes care of building the project and running the basic ktlint checks. For this project we are using ktlint code style, it provide the basic codestyle checks and formatter which can be applied using basic gradle task. Make sure all your pull requests pass the CI build only then, it will be allowed to merge. Sometimes,when the build doesn't pass you can use these commands in your local terminal and check for the errors.
For Mac OS and Linux based, you can use the following commands:
./gradlew ktlintcheck
quality checks on your project’s code using defualt ktlint codestyle and generates reports from these checks../gradlew ktlintformat
automatic reformating of code based on ktlint codestyle./gradlew lint
an predefined android lint checker../gradlew build
provides a command line to execute build script.
For Windows, you can use the following commands:
gradlew ktlintcheck
quality checks on your project’s code using defualt ktlint codestyle and generates reports from these checks.gradlew ktlintformat
automatic reformating of code based on ktlint codestylegradlew lint
an predefined android lint checker.gradlew build
provides a command line to execute build script.