-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[NEW] Add to F-Droid #2171
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
Merged
Merged
[NEW] Add to F-Droid #2171
Changes from 3 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
f7fb701
create play and foss build
GOVINDDIXIT d0059c9
update package.json to generate each build
GOVINDDIXIT 504911d
check1
GOVINDDIXIT 1e14686
requested changes
GOVINDDIXIT 1d2fa0f
initial commit
GOVINDDIXIT ecba7fc
Update config.yml
GOVINDDIXIT dbebd1c
minor changes
GOVINDDIXIT 82593b9
Merge branch 'ci-update' of https://github.com/RocketChat/Rocket.Chat…
GOVINDDIXIT 0da3dee
Merge branch 'develop' into ci-update
GOVINDDIXIT ad16e34
Merge branch 'develop' of https://github.com/RocketChat/Rocket.Chat.R…
GOVINDDIXIT 00feb2f
remove bugsnag from foss build
GOVINDDIXIT e66e383
remove bugsnag tasks from foss job
GOVINDDIXIT cf22c21
Merge branch 'develop' into ci-update
GOVINDDIXIT ed42199
fix stuck screen
GOVINDDIXIT 6109b12
Merge branch 'develop' into fdroid-build
GOVINDDIXIT 512a777
fixes
GOVINDDIXIT 3356aa5
Merge branch 'fdroid-build' of https://github.com/RocketChat/Rocket.C…
GOVINDDIXIT 0350c24
Merge branch 'develop' into ci-update
GOVINDDIXIT ac094a0
update
GOVINDDIXIT eeb30c0
fix lint
GOVINDDIXIT 11bed7b
Merge branch 'develop' into fdroid-build
GOVINDDIXIT 91d042b
Merge branch 'develop' into fdroid-build
GOVINDDIXIT 8f91193
finalise :rocket:
GOVINDDIXIT 4e07f1c
Merge branch 'develop' of https://github.com/RocketChat/Rocket.Chat.R…
GOVINDDIXIT 0bf4716
Merge branch 'fdroid-build' of https://github.com/RocketChat/Rocket.C…
GOVINDDIXIT a4055da
Merge branch 'develop' of https://github.com/RocketChat/Rocket.Chat.R…
djorkaeffalexandre 36595d0
requested changes
GOVINDDIXIT 5c37a88
fix merge conflicts
GOVINDDIXIT 50152b3
share app for fdroid
GOVINDDIXIT 5139d0f
solve merge conflicts
GOVINDDIXIT 50862b1
update
GOVINDDIXIT 4660822
use negation for builds
GOVINDDIXIT cad8184
requested change
GOVINDDIXIT 16752aa
update share app
GOVINDDIXIT 1cfa82a
Merge branch 'develop' of https://github.com/RocketChat/Rocket.Chat.R…
GOVINDDIXIT 67c877d
fix issues due to latest sync
GOVINDDIXIT 7768244
add extra line
GOVINDDIXIT b8f09f3
Merge pull request #2366 from RocketChat/ci-update
GOVINDDIXIT cb82e8d
fix merge conflicts
GOVINDDIXIT ae75e07
fix lint
GOVINDDIXIT ce9209a
update
GOVINDDIXIT 939a061
update
GOVINDDIXIT 358f2f4
fix bugsnag issue
GOVINDDIXIT 24447b3
Update config.yml
GOVINDDIXIT ba20898
Merge branch 'develop' of https://github.com/RocketChat/Rocket.Chat.R…
GOVINDDIXIT 2b10169
Merge branch 'fdroid-build' of https://github.com/RocketChat/Rocket.C…
GOVINDDIXIT b5e6334
Merge branch 'develop' into fdroid-build
diegolmello 646e1cb
Fix store url
diegolmello f2d491f
Foss release instead of debug
diegolmello cbe3e8c
Add hold for foss
diegolmello ddd504a
Fix build
diegolmello 2ed1e6c
requested changes
GOVINDDIXIT a0212e8
update name and icons
GOVINDDIXIT b7f82db
Merge branch 'fdroid-build' of https://github.com/RocketChat/Rocket.C…
GOVINDDIXIT 8fad678
update
GOVINDDIXIT b47d420
fix
GOVINDDIXIT 3edae5f
Revert "Bump version to 4.11.0 (#2392)"
diegolmello 3f1c607
sync latest changes, fix all merge conflicts and update versio :rocket:
GOVINDDIXIT b784174
finalise
GOVINDDIXIT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
android/app/src/foss/java/chat/rocket/reactnative/CustomPushNotification.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package chat.rocket.reactnative; | ||
|
|
||
| import android.content.Context; | ||
| import android.os.Bundle; | ||
|
|
||
| import com.facebook.react.bridge.ReactApplicationContext; | ||
| import com.wix.reactnativenotifications.core.AppLaunchHelper; | ||
| import com.wix.reactnativenotifications.core.AppLifecycleFacade; | ||
| import com.wix.reactnativenotifications.core.JsIOHelper; | ||
| import com.wix.reactnativenotifications.core.notification.PushNotification; | ||
|
|
||
| public class CustomPushNotification extends PushNotification { | ||
| public static ReactApplicationContext reactApplicationContext; | ||
|
|
||
| public CustomPushNotification(Context context, Bundle bundle, AppLifecycleFacade appLifecycleFacade, AppLaunchHelper appLaunchHelper, JsIOHelper jsIoHelper) { | ||
| super(context, bundle, appLifecycleFacade, appLaunchHelper, jsIoHelper); | ||
| reactApplicationContext = new ReactApplicationContext(context); | ||
| } | ||
|
|
||
| } |
12 changes: 12 additions & 0 deletions
12
android/app/src/foss/java/chat/rocket/reactnative/DismissNotification.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package chat.rocket.reactnative; | ||
|
|
||
| import android.content.BroadcastReceiver; | ||
| import android.content.Context; | ||
| import android.content.Intent; | ||
|
|
||
| public class DismissNotification extends BroadcastReceiver { | ||
| @Override | ||
| public void onReceive(Context context, Intent intent) { | ||
|
|
||
| } | ||
| } |
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
android/app/src/foss/java/chat/rocket/reactnative/ReplyBroadcast.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package chat.rocket.reactnative; | ||
|
|
||
| import android.content.BroadcastReceiver; | ||
| import android.content.Context; | ||
| import android.content.Intent; | ||
|
|
||
| public class ReplyBroadcast extends BroadcastReceiver { | ||
|
|
||
| @Override | ||
| public void onReceive(Context context, Intent intent) { | ||
|
|
||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
android/app/src/play/java/chat/rocket/reactnative/Ejson.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| package chat.rocket.reactnative; | ||
|
|
||
| import android.content.SharedPreferences; | ||
|
|
||
| import chat.rocket.userdefaults.RNUserDefaultsModule; | ||
|
|
||
| public class Ejson { | ||
| String host; | ||
| String rid; | ||
| String type; | ||
| Sender sender; | ||
|
|
||
| private String TOKEN_KEY = "reactnativemeteor_usertoken-"; | ||
| private SharedPreferences sharedPreferences = RNUserDefaultsModule.getPreferences(CustomPushNotification.reactApplicationContext); | ||
|
|
||
| public String getAvatarUri() { | ||
| if (type == null) { | ||
| return null; | ||
| } | ||
| return serverURL() + "/avatar/" + this.sender.username + "?rc_token=" + token() + "&rc_uid=" + userId(); | ||
| } | ||
|
|
||
| public String token() { | ||
| return sharedPreferences.getString(TOKEN_KEY.concat(userId()), ""); | ||
| } | ||
|
|
||
| public String userId() { | ||
| return sharedPreferences.getString(TOKEN_KEY.concat(serverURL()), ""); | ||
| } | ||
|
|
||
| public String serverURL() { | ||
| String url = this.host; | ||
| if (url != null && url.endsWith("/")) { | ||
| url = url.substring(0, url.length() - 1); | ||
| } | ||
| return url; | ||
| } | ||
|
|
||
| public class Sender { | ||
| String username; | ||
| String _id; | ||
| } | ||
| } |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.