
# Vedan

## Description
This is a basic PDF viewer developed in Ionic with core being Angular.<br>
I'm building this app according to my needs.This pdf viewer is like a Library. currently i've kept minimal functionality of listing, viewing of PDFs, located in Books folder of your internal directory and external both. Ionic dont have any native plugin to open a pdf so it uses [Sitewart cleverdox viewer](https://play.google.com/store/apps/details?id=de.sitewaerts.cleverdox.viewer)
</br>

## Contribution
Hey there Developer, You can clone this and simply start to check the functionality. You can add whatever the functionality you want. i created it entirely for my personal use only and experience. You can work on NightMode, or like different file operations maybe.</br>
I have attached screen shot that you might have seen in readme page. Append any funcitonality you like.
Go Ahead. keep Coding.

## Plugins used
- cordova-plugin-file
- cordova-plugin-file-opener2
- [cordova-plugin-document-viewer](https://github.com/sitewaerts/cordova-plugin-document-viewer)
</br>

## Creating APK
creating the apk can be trick part
` ionic cordova build android --prod --release` gives you `app-release-unsigned.apk` but `ionic cordova build android --prod` gives you `app-debug.apk`. So you gotta make you unsignes version signed. so that you can install it on your Android.</br>

**These are the few steps for same**</br>
 - **To create the build**</br>
 `ionic cordova build android --prod --release`
 - **Copy apk file to main folder**</br>
 `cp platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk app-release-unsigned.apk`
 - **Create your signature**</br>
 `keytool -genkey -v -keystore Vedan.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000`
 - **Sign your apk with your signature**</br>
 `jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore Vedan.keystore app-release-unsigned.apk alias_name`
 - **Verify (zipalign can be found in Android/Sdk/build-tools/28.0.3/)**</br>
 `zipalign  -v 4 app-release-unsigned.apk Vedan.apk`
</br>


## References
- [Ionic icons](https://ionicframework.com/docs/v3/ionicons/)
- [Ionic Docs](https://ionicframework.com/docs/components)
- [cleverdox viewer](https://play.google.com/store/apps/details?id=de.sitewaerts.cleverdox.viewer)
- [Material Colors](https://material-ui.com/customization/color/)

## Open Source 

open to contributions.
##
Peace.Love.Code.
