Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
501-iOS: minor changes, adding struct MethodChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Gregor committed May 29, 2020
1 parent 981a84d commit 627fa9c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion delta_chat_core
Submodule delta_chat_core updated 1 files
+2 −10 src/job.rs
53 changes: 53 additions & 0 deletions ios/Classes/Helper/MethodChannel.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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.
*/

import Foundation

struct MethodChannel {}

extension MethodChannel {

struct DeltaChat {
static let Core = "deltaChatCore"
}

}
2 changes: 1 addition & 1 deletion ios/Classes/SwiftDeltaChatCorePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class SwiftDeltaChatCorePlugin: NSObject, FlutterPlugin {

// This is our entry point
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "deltaChatCore", binaryMessenger: registrar.messenger())
let channel = FlutterMethodChannel(name: MethodChannel.DeltaChat.Core, binaryMessenger: registrar.messenger())
let delegate = SwiftDeltaChatCorePlugin(registrar: registrar)
registrar.addMethodCallDelegate(delegate, channel: channel)
}
Expand Down

0 comments on commit 627fa9c

Please sign in to comment.