Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Task to quickly sync files #37

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7a49e97
added database implementation for tasks
newhinton Dec 20, 2019
b7d1edb
added taskdialog
newhinton Dec 20, 2019
427563a
added translation for sync direction
newhinton Dec 20, 2019
2a96c90
added new constructor for RemoteItem
newhinton Dec 20, 2019
f815eab
implemented and integrated TaskFragment
newhinton Dec 20, 2019
ec08d98
added exported service to expose tasks
newhinton Dec 20, 2019
97494e4
moved task-buttons to 3dot-menu
newhinton Dec 21, 2019
49b2efa
added ui to edit tasks
newhinton Dec 21, 2019
84ac480
fixed offsets and messed up strings in taskitem
newhinton Dec 21, 2019
8c9cae9
implemented import&export for tasks
newhinton Dec 21, 2019
1ebb51d
removed logging from database handler
newhinton Dec 21, 2019
3ac900c
Add success message to exporter (Added string)
newhinton Dec 21, 2019
4a65e89
fix service not starting from background
newhinton Dec 22, 2019
0baaf37
impmemented additional sync methods via SyncDirectionObject
newhinton Dec 22, 2019
e8e0a57
fixed missing syncdirections in taskdialog
newhinton Dec 22, 2019
acdabac
Switch to MIT-License
newhinton Jan 2, 2020
d8118d5
renamed variables and refactored code so that unnessessary objects ar…
newhinton Jan 2, 2020
ea638e7
Add intentservice to README.md
newhinton Jan 2, 2020
a564886
Add persistent success notification
newhinton Jan 4, 2020
6085811
Fix success notifications not stacking
newhinton Jan 13, 2020
01ece03
Add option to block notification at sync end
newhinton Jan 22, 2020
c314b52
Add pin to home shortcut
newhinton Jan 22, 2020
64cb52b
Add new icons for tasks & success & error
newhinton Mar 6, 2020
e660318
Merge remote-tracking branch 'origin/master'
newhinton Mar 6, 2020
380215f
Readd firebase
newhinton Mar 6, 2020
2367704
Fixed summary notification icon does not reflect success state
newhinton Mar 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 0 additions & 99 deletions .idea/assetWizardSettings.xml

This file was deleted.

Binary file removed .idea/caches/build_file_checksums.ser
Binary file not shown.
29 changes: 0 additions & 29 deletions .idea/codeStyles/Project.xml

This file was deleted.

34 changes: 0 additions & 34 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Features
- Customizable primary and accent colors
- Supports ARM and x86 devices
- Supports SDK 21+ (Lollipop 5.0)
- Intentservice to start tasks via third party apps!

TODO
------------
Expand Down Expand Up @@ -46,6 +47,22 @@ Grab the [latest version](https://github.com/kaczmarkiewiczp/rcloneExplorer/rele
- For x86 devices download RcloneExplorer-x86.apk
- Ultimately, RcloneExplorer.apk will work with both ARM and x86 devices.



Intentservice
-------------
This app includes the ability to launch an intent! Create a task to sync to a remote, and copy it's id (via the treedot-menu)
The intent needs the following:

| Intent | Content | |
| :------------- | :-------------: | -------------: |
| packageName | ca.pkay.rcloneexplorer | |
| className | ca.pkay.rcloneexplorer.Services.TaskStartService | |
| Action | START_TASK | |
| Integer Extra | task | idOfTask |
| Boolean Extra | notification | true or false |


Credits/Libraries
-----------------
- [Android Support Libraries](https://developer.android.com/topic/libraries/support-library)
Expand Down
6 changes: 0 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

android {
compileSdkVersion 28
Expand Down Expand Up @@ -40,13 +39,8 @@ dependencies {
implementation 'com.github.GrenderG:Toasty:1.3.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.github.bumptech.glide:glide:4.7.1'
implementation 'com.google.firebase:firebase-core:16.0.5'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

apply plugin: 'com.google.gms.google-services'
112 changes: 64 additions & 48 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ca.pkay.rcloneexplorer">

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand All @@ -27,47 +21,6 @@
</intent-filter>
</activity>

<service android:name=".Services.DownloadService" />
<service android:name=".Services.UploadService" />
<service android:name=".Services.StreamingService" />
<service android:name=".Services.FirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<service android:name=".Services.FirebaseIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<service android:name=".Services.ThumbnailsLoadingService" />
<service android:name=".Services.DeleteService" />
<service android:name=".Services.MoveService" />
<service android:name=".Services.SyncService" />

<receiver android:name=".BroadcastReceivers.DownloadCancelAction" />
<receiver android:name=".BroadcastReceivers.UploadCancelAction" />
<receiver android:name=".BroadcastReceivers.ServeCancelAction" />
<receiver android:name=".BroadcastReceivers.DeleteCancelAction" />
<receiver android:name=".BroadcastReceivers.MoveCancelAction" />
<receiver android:name=".BroadcastReceivers.SyncCancelAction" />

<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_notification" />

<meta-data android:name="firebase_crashlytics_collection_enabled" android:value="false" />

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="ca.pkay.rcloneexplorer.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_provider_paths" />
</provider>

<activity
android:name=".AboutActivity"
android:label="@string/title_activity_about"
Expand All @@ -89,35 +42,47 @@
<activity
android:name=".SharingActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar" >
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.SEND" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="video/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="*/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="video/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="*/*" />
</intent-filter>
</activity>
Expand All @@ -128,7 +93,58 @@
android:name=".RemoteConfig.RemoteConfig"
android:label="@string/title_activity_remote_config"
android:theme="@style/AppTheme.NoActionBar" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_notification" />

<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="ca.pkay.rcloneexplorer.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_provider_paths" />
</provider>

<receiver android:name=".BroadcastReceivers.DownloadCancelAction" />

<receiver android:name=".BroadcastReceivers.UploadCancelAction" />
<receiver android:name=".BroadcastReceivers.ServeCancelAction" />
<receiver android:name=".BroadcastReceivers.DeleteCancelAction" />
<receiver android:name=".BroadcastReceivers.MoveCancelAction" />
<receiver android:name=".BroadcastReceivers.SyncCancelAction" />
<service
android:name=".Services.TaskStartService"
android:exported="true">
</service>

<service android:name=".Services.DownloadService" />
<service android:name=".Services.UploadService" />
<service android:name=".Services.StreamingService" />
<service android:name=".Services.FirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name=".Services.FirebaseIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<service android:name=".Services.ThumbnailsLoadingService" />
<service android:name=".Services.DeleteService" />
<service android:name=".Services.MoveService" />
<service android:name=".Services.SyncService" />
</application>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

</manifest>
Loading