2190 Commits

Author SHA1 Message Date
Aditya-Sood
7473e12db9 Refactor: Extract method & use showToast() for all toasts 2019-07-01 20:13:48 +05:30
Aditya-Sood
1dcffa41bd UI background update
Use a softer dark gray background for compatibility with both dark and light modes
2019-06-29 23:37:46 +05:30
Aditya-Sood
93cf742d89 Increment: Ask user to confirm destination device before connecting 2019-06-29 23:21:21 +05:30
Aditya-Sood
ece703fbb9 Bugfix & Increment
- Fix user circumventing permissions: Permissions are now checked everytime the user taps the search icon, preventing the user from initiating search without required permissions.

- Added: Display rationale for the permission being requested
2019-06-29 23:04:19 +05:30
Aditya-Sood
adeffa854b Add responses to user
For refusing to enable WiFi or Location Services
2019-06-29 22:28:31 +05:30
Aditya-Sood
37b09bfa4b UI bug fix
Fix alignment offset between progress bar and status icon in FileItem list
2019-06-29 22:07:02 +05:30
Aditya-Sood
ff6768cbaa Refactor & Documentation
TransferProgressFragment, FileItem & FileListAdapter
2019-06-29 21:55:50 +05:30
Aditya-Sood
f9103e2d5a Remove FileTransferService
Functionality has already been replaced by the SenderDeviceAsyncTask
2019-06-29 21:08:28 +05:30
Aditya-Sood
dd2b4dfa76 Refactor WifiDirectBroadcastReceiver 2019-06-29 21:03:38 +05:30
Aditya-Sood
91b26a9f08 Major Refactor!
Comprehensive refactoring of DeviceListFragment, includes:
- Shifting all async-tasks to separate files
- Exceptions in the async-tasks are now handled by showing a toast and closing the LocalFileTransferActivity
- Added a new 'Error' status for file items
- If a file has error status after transfer, then an error icon is shown for it TransferProgressFragment
- Documentation and other additions/changes
2019-06-29 18:18:58 +05:30
Aditya-Sood
147dbb033b Refactor LocalFileTransferActivity 2019-06-28 16:58:47 +05:30
Aditya-Sood
74ab4b4a44 Refactor activity_local_file_transfer.xml
- Add title to activity
- Divide screen space between list of available peers and files for transfer
2019-06-28 16:56:17 +05:30
Aditya-Sood
36f563e209 Remove extra stuff
Unnecessary comments, todos, variables, imports, methods
2019-06-27 23:32:29 +05:30
Aditya-Sood
7759a4eb47 Refactor: Remove changeDeviceName() and related code
Device name for WiFi Direct is supposed to be changed manually (from the advanced wifi settings) by the user.

This solution used reflection to access the hidden method used by the system to perform the same. However use of non-SDK interfaces (fields/methods accessed using reflection) will be restricted and subsequently lead to exceptions, hence the feature needs to be removed.

For more: developer.android.com/distribute/best-practices/develop/restrictions-non-sdk-interfaces
2019-06-27 01:22:14 +05:30
Aditya-Sood
26c92ee64e Increment: Add cancelSearch() method
For disconnecting a connection to an erroneous peer device
2019-06-27 01:05:22 +05:30
Aditya-Sood
99b93659f2 Refactor exit from LocalFileTransferActivity
- Separate device disconnection to separate method
- Override back button
2019-06-27 00:47:14 +05:30
Aditya-Sood
c474d02391 Fix Bug Part 2: Add finish() activity on sender side once files have been transferred 2019-06-26 23:31:52 +05:30
Aditya-Sood
cf66b61a7d Fix bug: Last file being transferred gets corrupted
Best guess - Calling disconnect after sending the last file was somehow corrupting the output stream to the server. Replacing with Toast (or just finish()) has corrected it.
2019-06-26 22:47:54 +05:30
Aditya-Sood
8874204d0f Increment: Disconnect devices post file transfer 2019-06-26 22:39:05 +05:30
Aditya-Sood
4115ca3bfb Increment: Transfer progress is now displayed in the list of files 2019-06-26 21:16:50 +05:30
Aditya-Sood
98184e82cd Increment: Improve file list display 2019-06-26 21:11:49 +05:30
Aditya-Sood
af5a4e1c65 Increment: Update code to use FileItem to represent files for transfer 2019-06-26 01:05:31 +05:30
Aditya-Sood
b40cfe779a Refactor: Fix margin errors in file item layout 2019-06-26 01:04:31 +05:30
Aditya-Sood
4b82f254e2 Increment: Setup file item to show status of transfer
3 possible states: To be sent (wait icon) -> sending (progress bar) -> sent (check icon)
2019-06-26 00:20:31 +05:30
Aditya-Sood
f90ba10b75 Add 'FileItem' class to represent files when being transferred
Fields: File name and transfer status (to be sent, sending, sent)
2019-06-26 00:17:39 +05:30
Aditya-Sood
be5c377917 Increment: After handshake, both devices display list of files being transferred
Next step - Use this list to display progress of transfer
2019-06-25 23:29:02 +05:30
Aditya-Sood
8ba431d00a Refactor: Updated LocalFileTransfer to open WiFi settings page
Instead of the general 'Wireless' settings page, incase the wifi hasn't been turned on for file transfer
2019-06-24 23:29:54 +05:30
Aditya-Sood
fa5cdf8f5c Refactor: Add black close icon & correct tint of white close icon
White icon tint was corrected in the commit before the previous one
2019-06-24 17:52:16 +05:30
Aditya-Sood
86f45a087b Refactor: LocalFileActivity layout file 2019-06-24 17:46:38 +05:30
Aditya-Sood
32b0043e5f Increment: Add navigation icon and functionality to action bar of LocalFileTransferActivity 2019-06-23 21:58:33 +05:30
Aditya-Sood
d3704e8f9f Increment: Transferred files now saved in the user-preference 'Kiwix' folder
Location obtained from the SharedPreferenceUtil
2019-06-23 20:44:09 +05:30
Aditya-Sood
2066db6bd9 Increment: Improve flow of LocalFileTransfer activity
- File receiver device can not initiate connection anymore
- Activity closes on both devices once transfer is complete
2019-06-23 19:26:14 +05:30
Aditya-Sood
459a087728 Increment: LocalFileTransferActivity now supports sending multiple files
All selected files (not just the first one) are trasferred to the receiving device
2019-06-23 16:39:31 +05:30
Aditya-Sood
72d1694150 Upgrade: Share file transfer details during handshake
- During handshake, sender device informs the receiver of:
	1) Total no. of files
	2) Name of files to be sent
- The file name is now being used instead of "temp.zim" to save the received file in the 'KiwixWifi' directory
2019-06-23 15:39:07 +05:30
Aditya-Sood
596a7fda00 Increment: Shift file transfer fucntionality to AsynTask
Instead of using a service, so that the progress can be visually displayed
2019-06-22 18:29:13 +05:30
Aditya-Sood
e357d47d49 Increment: LocalFileTransferActivity now has core functionality
The activity can now be used to send one selected ZIM file to a nearby device
(Cleanup and refactoring yet to be done)
2019-06-22 01:00:57 +05:30
Aditya-Sood
25e0ef4dd7 Initial commit: LocalFileTransferActivity shows up as option to transfer ZIM files 2019-06-21 19:51:01 +05:30
Aditya-Sood
38f236b9f1 Remove non-essential file (abstract.txt) 2019-06-07 13:41:04 +05:30
Aditya-Sood
5f8ba8f038 GSoC project abstract 2019-06-07 13:41:04 +05:30
Aditya-Sood
1cd964c8e7 Remove non-essential file (abstract.txt) 2019-06-07 13:41:04 +05:30
Aditya-Sood
9f0a6b617d GSoC project abstract 2019-06-07 13:41:04 +05:30
soloturn
a43e631de0 switching from apply plugin to pluins {}
following this migration guide:
https://guides.gradle.org/migrating-build-logic-from-groovy-to-kotlin/
2019-06-01 17:37:09 +01:00
soloturn
a0977ce446 replace ' with " in build.gradle
prepare migration to build.gradle.kts, following:
https://guides.gradle.org/migrating-build-logic-from-groovy-to-kotlin/
2019-06-01 17:37:09 +01:00
soloturn
959670468f remove androidstudio warnings from app/build.gradle 2019-06-01 17:37:09 +01:00
soloturn
4e572fb8d6 update android tools to 3.4.1 2019-06-01 17:37:09 +01:00
soloturn
1b866d6903 proguard, D8: Type 'sun.misc.Unsafe' was not found 2019-06-01 17:37:09 +01:00
soloturn
2b7d12ce14 update gradlew distribution url to gradle-5.4.1 2019-06-01 17:37:09 +01:00
Kelson
ed5c724b3f
Fix Google Play badge 2019-05-23 15:26:08 +02:00
chris1b
ad693a9e5b improve network status check: re-create clean feature branch #934
delete feature/improve_network_status_check and recreate from current
upstream/master as feature/improve_network_status_check__recreated
2019-05-18 18:06:24 +02:00
waahm7
da6ed6d375 Fix zoom level color bug 2019-05-18 16:27:07 +02:00