This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Android components and try push workarounds #501 OT-779
Fixed MethodChannels.java typo Updated gradle Update libs Added more push callback for debugging
- Loading branch information
Showing
7 changed files
with
127 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
63 changes: 63 additions & 0 deletions
63
android/app/src/main/java/com/openxchange/oxcoi/MainApplication.java
This file contains 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,63 @@ | ||
/* | ||
* OPEN-XCHANGE legal information | ||
* | ||
* All intellectual property rights in the Software are protected by | ||
* international copyright laws. | ||
* | ||
* | ||
* In some countries OX, OX Open-Xchange and open xchange | ||
* as well as the corresponding Logos OX Open-Xchange and OX are registered | ||
* trademarks of the OX Software GmbH group of companies. | ||
* The use of the Logos is not covered by the Mozilla Public License 2.0 (MPL 2.0). | ||
* Instead, you are allowed to use these Logos according to the terms and | ||
* conditions of the Creative Commons License, Version 2.5, Attribution, | ||
* Non-commercial, ShareAlike, and the interpretation of the term | ||
* Non-commercial applicable to the aforementioned license is published | ||
* on the web site https://www.open-xchange.com/terms-and-conditions/. | ||
* | ||
* Please make sure that third-party modules and libraries are used | ||
* according to their respective licenses. | ||
* | ||
* Any modifications to this package must retain all copyright notices | ||
* of the original copyright holder(s) for the original code used. | ||
* | ||
* After any such modifications, the original and derivative code shall remain | ||
* under the copyright of the copyright holder(s) and/or original author(s) as stated here: | ||
* https://www.open-xchange.com/legal/. The contributing author shall be | ||
* given Attribution for the derivative code and a license granting use. | ||
* | ||
* Copyright (C) 2016-2020 OX Software GmbH | ||
* Mail: [email protected] | ||
* | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
* or FITNESS FOR A PARTICULAR PURPOSE. See the Mozilla Public License 2.0 | ||
* for more details. | ||
*/ | ||
|
||
package com.openxchange.oxcoi; | ||
|
||
import io.flutter.app.FlutterApplication; | ||
import io.flutter.plugin.common.PluginRegistry; | ||
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback; | ||
import io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin; | ||
import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService; | ||
|
||
// TODO this whole class is a temporary hack to be able to try stuff with the FirebaseMessagingPlugin - See https://github.com/FirebaseExtended/flutterfire/issues/1754 for more information | ||
public class MainApplication extends FlutterApplication implements PluginRegistrantCallback { | ||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
FlutterFirebaseMessagingService.setPluginRegistrant(this); | ||
} | ||
|
||
@Override | ||
public void registerWith(PluginRegistry registry) { | ||
FirebaseMessagingPlugin.registerWith(registry.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin")); | ||
} | ||
} |
45 changes: 43 additions & 2 deletions
45
android/app/src/main/java/com/openxchange/oxcoi/MethodChannels.java
This file contains 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 |
---|---|---|
@@ -1,13 +1,54 @@ | ||
package com.openxchange.oxcoi; | ||
/* | ||
* OPEN-XCHANGE legal information | ||
* | ||
* All intellectual property rights in the Software are protected by | ||
* international copyright laws. | ||
* | ||
* | ||
* In some countries OX, OX Open-Xchange and open xchange | ||
* as well as the corresponding Logos OX Open-Xchange and OX are registered | ||
* trademarks of the OX Software GmbH group of companies. | ||
* The use of the Logos is not covered by the Mozilla Public License 2.0 (MPL 2.0). | ||
* Instead, you are allowed to use these Logos according to the terms and | ||
* conditions of the Creative Commons License, Version 2.5, Attribution, | ||
* Non-commercial, ShareAlike, and the interpretation of the term | ||
* Non-commercial applicable to the aforementioned license is published | ||
* on the web site https://www.open-xchange.com/terms-and-conditions/. | ||
* | ||
* Please make sure that third-party modules and libraries are used | ||
* according to their respective licenses. | ||
* | ||
* Any modifications to this package must retain all copyright notices | ||
* of the original copyright holder(s) for the original code used. | ||
* | ||
* After any such modifications, the original and derivative code shall remain | ||
* under the copyright of the copyright holder(s) and/or original author(s) as stated here: | ||
* https://www.open-xchange.com/legal/. The contributing author shall be | ||
* given Attribution for the derivative code and a license granting use. | ||
* | ||
* Copyright (C) 2016-2020 OX Software GmbH | ||
* Mail: [email protected] | ||
* | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
* or FITNESS FOR A PARTICULAR PURPOSE. See the Mozilla Public License 2.0 | ||
* for more details. | ||
*/ | ||
|
||
package com.openxchange.oxcoi; | ||
|
||
class MethodChannels { | ||
|
||
abstract static class Security { | ||
static final String NAME = "oxcoi.security"; | ||
|
||
abstract static class Methods { | ||
static final String DECRYPT = "'decrypt'"; | ||
static final String DECRYPT = "decrypt"; | ||
} | ||
|
||
abstract static class Arguments { | ||
|
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Thu Nov 28 13:37:47 CET 2019 | ||
#Wed Apr 29 13:11:03 CEST 2020 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip |
This file contains 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