Skip to content

Commit

Permalink
Version 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullah-radwan committed May 22, 2018
1 parent 5f9a8bf commit a2c1f32
Show file tree
Hide file tree
Showing 24 changed files with 375 additions and 113 deletions.
Binary file modified Charts Finder Android Manual.docx
Binary file not shown.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# Charts Finder Android
Charts Finder is a usefull tool to get charts for your flight, now available on Android!
Charts Finder is a useful tool to get charts for your flight, now available on Android!

## Install
Go to releases, download latest ChartsFinderAndroid.zip, uncompress the file, move ChartsFinderAndroid.apk to your phone and install it.
Go to releases, download latest ChartsFinderAndroid.zip, uncompress the file, move ChartsFinder.apk to your phone and install it.

Ensure 'Unknown sources' option is enabled to allow installing apk on your device.

## How to use
Enter ICAO code/s (Seperate codes with space) in the field and hit 'Get charts'. You can monitor the progress using the notifications and the progress bar.
Make sure to read the manual to know everything about the program.

## Developers
The program's license is GPL 3.0, which means you can edit the program as you want. Any edits is always welcome.

Note: The apk is same as source but it's include my firebase settings to monitor the application.

## About
This program was made by Abdullah Radwan.
Should you have any inquires, don''t hesitate to contact me on abbodmar@gmail.com
This program is made by Abdullah Radwan.
Should you have any inquires, don't hesitate to contact me on [abbodmar@gmail.com](mailto:abbodmar@gmail.com?subject=Charts%20Finder).

Copyright © Abdullah Radwan
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "com.abdullahradwan.chartsfinder"
minSdkVersion 17
targetSdkVersion 27
versionCode 3
versionName "1.0.2"
versionCode 4
versionName "1.0.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
Expand All @@ -29,9 +29,9 @@ dependencies {
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
/*implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.2'*/
//implementation 'com.google.firebase:firebase-core:15.0.2'
//implementation 'com.google.firebase:firebase-messaging:15.0.2'
//implementation 'com.crashlytics.sdk.android:crashlytics:2.9.2'
implementation 'com.github.barteksc:android-pdf-viewer:3.0.0-beta.5'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'org.jsoup:jsoup:1.11.3'
Expand Down
52 changes: 30 additions & 22 deletions app/src/main/java/com/abdullahradwan/chartsfinder/ConfigEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,45 @@ class ConfigEditor {

void readConfig(){

// Set variables
MainActivity.showNotify = sharedPref.getBoolean("showNotify", true);
try {

MainActivity.openChart = sharedPref.getBoolean("openChart", false);
// Set variables
MainActivity.showNotify = sharedPref.getBoolean("showNotify", true);

MainActivity.internalPDF = sharedPref.getBoolean("interiorPDF",true);
MainActivity.openChart = sharedPref.getBoolean("openChart", false);

// Set default value to downloads folder
MainActivity.path = sharedPref.getString("path",
String.valueOf(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)));
MainActivity.internalPDF = sharedPref.getBoolean("interiorPDF", true);

// Get array as string and convert it to ArrayList
ArrayList<ResourcesItem> resItems = gson.fromJson(sharedPref.getString("resItems",""),
new TypeToken<List<ResourcesItem>>(){}.getType());
MainActivity.modifyRes = sharedPref.getBoolean("modifyRes", false);

// If there is a list
if(resItems!=null){MainActivity.resources = resItems;} else{MainActivity.resetRes();}
// Set default value to downloads folder
MainActivity.path = sharedPref.getString("path",
String.valueOf(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)));

ArrayList<FilesItems> fileItems = gson.fromJson(sharedPref.getString("fileItems",""),
new TypeToken<List<FilesItems>>(){}.getType());
// Get array as string and convert it to ArrayList
ArrayList<ResourcesItem> resItems = gson.fromJson(sharedPref.getString("resItems", ""),
new TypeToken<List<ResourcesItem>>() {}.getType());

if(fileItems!=null){MainActivity.files = fileItems;}
// If there is a list
if (resItems != null) {MainActivity.resources = resItems;} else {MainActivity.resetRes();}

ArrayList<String> fileSpinnerItems = gson.fromJson(sharedPref.getString("fileSpinnerItems",""),
new TypeToken<List<String>>(){}.getType());
ArrayList<FilesItems> fileItems = gson.fromJson(sharedPref.getString("fileItems", ""),
new TypeToken<List<FilesItems>>() {}.getType());

if(fileSpinnerItems!=null){MainActivity.fileSpinnerItems = fileSpinnerItems;}
if (fileItems != null) { MainActivity.files = fileItems;}

// Get HashMap as string and convert it to HashMap
HashMap<String, ArrayList<FilesItems>> filesMap = gson.fromJson(sharedPref.getString("filesMap",""),
new TypeToken<HashMap<String, ArrayList<FilesItems>>>(){}.getType());
ArrayList<String> fileSpinnerItems = gson.fromJson(sharedPref.getString("fileSpinnerItems", ""),
new TypeToken<List<String>>() {}.getType());

if(filesMap!=null){MainActivity.filesMap = filesMap;}
if (fileSpinnerItems != null) {MainActivity.fileSpinnerItems = fileSpinnerItems;}

// Get HashMap as string and convert it to HashMap
HashMap<String, ArrayList<FilesItems>> filesMap = gson.fromJson(sharedPref.getString("filesMap", ""),
new TypeToken<HashMap<String, ArrayList<FilesItems>>>() {}.getType());

if (filesMap != null) {MainActivity.filesMap = filesMap;}

} catch (Exception ex){MainActivity.resetRes();}

}

Expand All @@ -70,6 +76,8 @@ void writeConfig(){

prefsEdit.putBoolean("interiorPDF", MainActivity.internalPDF);

prefsEdit.putBoolean("modifyRes", MainActivity.modifyRes);

prefsEdit.putString("path", MainActivity.path);

// Convert lists to string
Expand Down
Loading

0 comments on commit a2c1f32

Please sign in to comment.