Added iOS torrent server lib
This commit is contained in:
parent
32fdcba849
commit
fc6aa5ac7e
46 changed files with 716 additions and 5 deletions
40
ios/Frameworks/Libmtorrentserver.xcframework/Info.plist
Normal file
40
ios/Frameworks/Libmtorrentserver.xcframework/Info.plist
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>AvailableLibraries</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>LibraryIdentifier</key>
|
||||||
|
<string>ios-arm64</string>
|
||||||
|
<key>LibraryPath</key>
|
||||||
|
<string>Libmtorrentserver.framework</string>
|
||||||
|
<key>SupportedArchitectures</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
</array>
|
||||||
|
<key>SupportedPlatform</key>
|
||||||
|
<string>ios</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>LibraryIdentifier</key>
|
||||||
|
<string>ios-arm64_x86_64-simulator</string>
|
||||||
|
<key>LibraryPath</key>
|
||||||
|
<string>Libmtorrentserver.framework</string>
|
||||||
|
<key>SupportedArchitectures</key>
|
||||||
|
<array>
|
||||||
|
<string>arm64</string>
|
||||||
|
<string>x86_64</string>
|
||||||
|
</array>
|
||||||
|
<key>SupportedPlatform</key>
|
||||||
|
<string>ios</string>
|
||||||
|
<key>SupportedPlatformVariant</key>
|
||||||
|
<string>simulator</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>XFWK</string>
|
||||||
|
<key>XCFrameworkFormatVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
// Objective-C API for talking to the following Go packages
|
||||||
|
//
|
||||||
|
// server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gomobile bind. Do not edit.
|
||||||
|
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
#define __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
|
||||||
|
#include "Libmtorrentserver.objc.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Objective-C API for talking to server/binding/mobile Go package.
|
||||||
|
// gobind -lang=objc server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Libmtorrentserver_H__
|
||||||
|
#define __Libmtorrentserver_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT void LibmtorrentserverStart(NSString* _Nullable mcfg);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Objective-C API for talking to Go package.
|
||||||
|
// gobind -lang=objc
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Universe_H__
|
||||||
|
#define __Universe_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
|
||||||
|
@protocol Universeerror;
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@protocol Universeerror <NSObject>
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
||||||
|
}
|
||||||
|
@property(strong, readonly) _Nonnull id _ref;
|
||||||
|
|
||||||
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
#ifndef __GO_REF_HDR__
|
||||||
|
#define __GO_REF_HDR__
|
||||||
|
|
||||||
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
// GoSeqRef is an object tagged with an integer for passing back and
|
||||||
|
// forth across the language boundary. A GoSeqRef may represent either
|
||||||
|
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||||
|
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||||
|
// when it is passed to Objective-C. The Go seq package maintains a
|
||||||
|
// reference to the Go object in a map keyed by the refnum along with
|
||||||
|
// a reference count. When the reference count reaches zero, the Go
|
||||||
|
// seq package will clear the corresponding entry in the map.
|
||||||
|
@interface GoSeqRef : NSObject {
|
||||||
|
}
|
||||||
|
@property(readonly) int32_t refnum;
|
||||||
|
@property(strong) id obj; // NULL when representing a Go object.
|
||||||
|
|
||||||
|
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||||
|
// provided from Go side.
|
||||||
|
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
||||||
|
|
||||||
|
- (int32_t)incNum;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@protocol goSeqRefInterface
|
||||||
|
-(GoSeqRef*) _ref;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,8 @@
|
||||||
|
framework module "Libmtorrentserver" {
|
||||||
|
header "ref.h"
|
||||||
|
header "Libmtorrentserver.objc.h"
|
||||||
|
header "Universe.objc.h"
|
||||||
|
header "Libmtorrentserver.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
// Objective-C API for talking to the following Go packages
|
||||||
|
//
|
||||||
|
// server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gomobile bind. Do not edit.
|
||||||
|
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
#define __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
|
||||||
|
#include "Libmtorrentserver.objc.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Objective-C API for talking to server/binding/mobile Go package.
|
||||||
|
// gobind -lang=objc server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Libmtorrentserver_H__
|
||||||
|
#define __Libmtorrentserver_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT void LibmtorrentserverStart(NSString* _Nullable mcfg);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Objective-C API for talking to Go package.
|
||||||
|
// gobind -lang=objc
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Universe_H__
|
||||||
|
#define __Universe_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
|
||||||
|
@protocol Universeerror;
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@protocol Universeerror <NSObject>
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
||||||
|
}
|
||||||
|
@property(strong, readonly) _Nonnull id _ref;
|
||||||
|
|
||||||
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
#ifndef __GO_REF_HDR__
|
||||||
|
#define __GO_REF_HDR__
|
||||||
|
|
||||||
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
// GoSeqRef is an object tagged with an integer for passing back and
|
||||||
|
// forth across the language boundary. A GoSeqRef may represent either
|
||||||
|
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||||
|
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||||
|
// when it is passed to Objective-C. The Go seq package maintains a
|
||||||
|
// reference to the Go object in a map keyed by the refnum along with
|
||||||
|
// a reference count. When the reference count reaches zero, the Go
|
||||||
|
// seq package will clear the corresponding entry in the map.
|
||||||
|
@interface GoSeqRef : NSObject {
|
||||||
|
}
|
||||||
|
@property(readonly) int32_t refnum;
|
||||||
|
@property(strong) id obj; // NULL when representing a Go object.
|
||||||
|
|
||||||
|
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||||
|
// provided from Go side.
|
||||||
|
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
||||||
|
|
||||||
|
- (int32_t)incNum;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@protocol goSeqRefInterface
|
||||||
|
-(GoSeqRef*) _ref;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,8 @@
|
||||||
|
framework module "Libmtorrentserver" {
|
||||||
|
header "ref.h"
|
||||||
|
header "Libmtorrentserver.objc.h"
|
||||||
|
header "Universe.objc.h"
|
||||||
|
header "Libmtorrentserver.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
// Objective-C API for talking to the following Go packages
|
||||||
|
//
|
||||||
|
// server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gomobile bind. Do not edit.
|
||||||
|
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
#define __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
|
||||||
|
#include "Libmtorrentserver.objc.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Objective-C API for talking to server/binding/mobile Go package.
|
||||||
|
// gobind -lang=objc server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Libmtorrentserver_H__
|
||||||
|
#define __Libmtorrentserver_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT void LibmtorrentserverStart(NSString* _Nullable mcfg);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Objective-C API for talking to Go package.
|
||||||
|
// gobind -lang=objc
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Universe_H__
|
||||||
|
#define __Universe_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
|
||||||
|
@protocol Universeerror;
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@protocol Universeerror <NSObject>
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
||||||
|
}
|
||||||
|
@property(strong, readonly) _Nonnull id _ref;
|
||||||
|
|
||||||
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
#ifndef __GO_REF_HDR__
|
||||||
|
#define __GO_REF_HDR__
|
||||||
|
|
||||||
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
// GoSeqRef is an object tagged with an integer for passing back and
|
||||||
|
// forth across the language boundary. A GoSeqRef may represent either
|
||||||
|
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||||
|
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||||
|
// when it is passed to Objective-C. The Go seq package maintains a
|
||||||
|
// reference to the Go object in a map keyed by the refnum along with
|
||||||
|
// a reference count. When the reference count reaches zero, the Go
|
||||||
|
// seq package will clear the corresponding entry in the map.
|
||||||
|
@interface GoSeqRef : NSObject {
|
||||||
|
}
|
||||||
|
@property(readonly) int32_t refnum;
|
||||||
|
@property(strong) id obj; // NULL when representing a Go object.
|
||||||
|
|
||||||
|
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||||
|
// provided from Go side.
|
||||||
|
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
||||||
|
|
||||||
|
- (int32_t)incNum;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@protocol goSeqRefInterface
|
||||||
|
-(GoSeqRef*) _ref;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,8 @@
|
||||||
|
framework module "Libmtorrentserver" {
|
||||||
|
header "ref.h"
|
||||||
|
header "Libmtorrentserver.objc.h"
|
||||||
|
header "Universe.objc.h"
|
||||||
|
header "Libmtorrentserver.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
// Objective-C API for talking to the following Go packages
|
||||||
|
//
|
||||||
|
// server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gomobile bind. Do not edit.
|
||||||
|
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
#define __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
|
||||||
|
#include "Libmtorrentserver.objc.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Objective-C API for talking to server/binding/mobile Go package.
|
||||||
|
// gobind -lang=objc server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Libmtorrentserver_H__
|
||||||
|
#define __Libmtorrentserver_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT void LibmtorrentserverStart(NSString* _Nullable mcfg);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Objective-C API for talking to Go package.
|
||||||
|
// gobind -lang=objc
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Universe_H__
|
||||||
|
#define __Universe_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
|
||||||
|
@protocol Universeerror;
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@protocol Universeerror <NSObject>
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
||||||
|
}
|
||||||
|
@property(strong, readonly) _Nonnull id _ref;
|
||||||
|
|
||||||
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
#ifndef __GO_REF_HDR__
|
||||||
|
#define __GO_REF_HDR__
|
||||||
|
|
||||||
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
// GoSeqRef is an object tagged with an integer for passing back and
|
||||||
|
// forth across the language boundary. A GoSeqRef may represent either
|
||||||
|
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||||
|
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||||
|
// when it is passed to Objective-C. The Go seq package maintains a
|
||||||
|
// reference to the Go object in a map keyed by the refnum along with
|
||||||
|
// a reference count. When the reference count reaches zero, the Go
|
||||||
|
// seq package will clear the corresponding entry in the map.
|
||||||
|
@interface GoSeqRef : NSObject {
|
||||||
|
}
|
||||||
|
@property(readonly) int32_t refnum;
|
||||||
|
@property(strong) id obj; // NULL when representing a Go object.
|
||||||
|
|
||||||
|
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||||
|
// provided from Go side.
|
||||||
|
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
||||||
|
|
||||||
|
- (int32_t)incNum;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@protocol goSeqRefInterface
|
||||||
|
-(GoSeqRef*) _ref;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,8 @@
|
||||||
|
framework module "Libmtorrentserver" {
|
||||||
|
header "ref.h"
|
||||||
|
header "Libmtorrentserver.objc.h"
|
||||||
|
header "Universe.objc.h"
|
||||||
|
header "Libmtorrentserver.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
// Objective-C API for talking to the following Go packages
|
||||||
|
//
|
||||||
|
// server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gomobile bind. Do not edit.
|
||||||
|
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
#define __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
|
||||||
|
#include "Libmtorrentserver.objc.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Objective-C API for talking to server/binding/mobile Go package.
|
||||||
|
// gobind -lang=objc server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Libmtorrentserver_H__
|
||||||
|
#define __Libmtorrentserver_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT void LibmtorrentserverStart(NSString* _Nullable mcfg);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Objective-C API for talking to Go package.
|
||||||
|
// gobind -lang=objc
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Universe_H__
|
||||||
|
#define __Universe_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
|
||||||
|
@protocol Universeerror;
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@protocol Universeerror <NSObject>
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
||||||
|
}
|
||||||
|
@property(strong, readonly) _Nonnull id _ref;
|
||||||
|
|
||||||
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
#ifndef __GO_REF_HDR__
|
||||||
|
#define __GO_REF_HDR__
|
||||||
|
|
||||||
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
// GoSeqRef is an object tagged with an integer for passing back and
|
||||||
|
// forth across the language boundary. A GoSeqRef may represent either
|
||||||
|
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||||
|
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||||
|
// when it is passed to Objective-C. The Go seq package maintains a
|
||||||
|
// reference to the Go object in a map keyed by the refnum along with
|
||||||
|
// a reference count. When the reference count reaches zero, the Go
|
||||||
|
// seq package will clear the corresponding entry in the map.
|
||||||
|
@interface GoSeqRef : NSObject {
|
||||||
|
}
|
||||||
|
@property(readonly) int32_t refnum;
|
||||||
|
@property(strong) id obj; // NULL when representing a Go object.
|
||||||
|
|
||||||
|
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||||
|
// provided from Go side.
|
||||||
|
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
||||||
|
|
||||||
|
- (int32_t)incNum;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@protocol goSeqRefInterface
|
||||||
|
-(GoSeqRef*) _ref;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,8 @@
|
||||||
|
framework module "Libmtorrentserver" {
|
||||||
|
header "ref.h"
|
||||||
|
header "Libmtorrentserver.objc.h"
|
||||||
|
header "Universe.objc.h"
|
||||||
|
header "Libmtorrentserver.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
// Objective-C API for talking to the following Go packages
|
||||||
|
//
|
||||||
|
// server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gomobile bind. Do not edit.
|
||||||
|
#ifndef __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
#define __Libmtorrentserver_FRAMEWORK_H__
|
||||||
|
|
||||||
|
#include "Libmtorrentserver.objc.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
// Objective-C API for talking to server/binding/mobile Go package.
|
||||||
|
// gobind -lang=objc server/binding/mobile
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Libmtorrentserver_H__
|
||||||
|
#define __Libmtorrentserver_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
#include "Universe.objc.h"
|
||||||
|
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT void LibmtorrentserverStart(NSString* _Nullable mcfg);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Objective-C API for talking to Go package.
|
||||||
|
// gobind -lang=objc
|
||||||
|
//
|
||||||
|
// File is generated by gobind. Do not edit.
|
||||||
|
|
||||||
|
#ifndef __Universe_H__
|
||||||
|
#define __Universe_H__
|
||||||
|
|
||||||
|
@import Foundation;
|
||||||
|
#include "ref.h"
|
||||||
|
|
||||||
|
@protocol Universeerror;
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@protocol Universeerror <NSObject>
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@class Universeerror;
|
||||||
|
|
||||||
|
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
||||||
|
}
|
||||||
|
@property(strong, readonly) _Nonnull id _ref;
|
||||||
|
|
||||||
|
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
||||||
|
- (NSString* _Nonnull)error;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
// Copyright 2015 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
#ifndef __GO_REF_HDR__
|
||||||
|
#define __GO_REF_HDR__
|
||||||
|
|
||||||
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
// GoSeqRef is an object tagged with an integer for passing back and
|
||||||
|
// forth across the language boundary. A GoSeqRef may represent either
|
||||||
|
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||||
|
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||||
|
// when it is passed to Objective-C. The Go seq package maintains a
|
||||||
|
// reference to the Go object in a map keyed by the refnum along with
|
||||||
|
// a reference count. When the reference count reaches zero, the Go
|
||||||
|
// seq package will clear the corresponding entry in the map.
|
||||||
|
@interface GoSeqRef : NSObject {
|
||||||
|
}
|
||||||
|
@property(readonly) int32_t refnum;
|
||||||
|
@property(strong) id obj; // NULL when representing a Go object.
|
||||||
|
|
||||||
|
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||||
|
// provided from Go side.
|
||||||
|
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
||||||
|
|
||||||
|
- (int32_t)incNum;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@protocol goSeqRefInterface
|
||||||
|
-(GoSeqRef*) _ref;
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
||||||
Binary file not shown.
|
|
@ -0,0 +1,8 @@
|
||||||
|
framework module "Libmtorrentserver" {
|
||||||
|
header "ref.h"
|
||||||
|
header "Libmtorrentserver.objc.h"
|
||||||
|
header "Universe.objc.h"
|
||||||
|
header "Libmtorrentserver.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -16,6 +16,10 @@
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||||
|
D081C25C294826C0006EB10B /* libc++.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = D081C25B294826C0006EB10B /* libc++.tbd */; };
|
||||||
|
A3045F742B62677C0046BD95 /* Libmtorrentserver.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = A3045F732B62677C0046BD95 /* Libmtorrentserver.xcframework */; };
|
||||||
|
A3045F752B62677C0046BD95 /* Libmtorrentserver.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = A3045F732B62677C0046BD95 /* Libmtorrentserver.xcframework */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
|
A33AA3042B62949C00A19BF1 /* libresolv.9.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = A33AA3032B62949C00A19BF1 /* libresolv.9.tbd */; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXContainerItemProxy section */
|
/* Begin PBXContainerItemProxy section */
|
||||||
|
|
@ -35,9 +39,10 @@
|
||||||
dstPath = "";
|
dstPath = "";
|
||||||
dstSubfolderSpec = 10;
|
dstSubfolderSpec = 10;
|
||||||
files = (
|
files = (
|
||||||
|
A3045F752B62677C0046BD95 /* Libmtorrentserver.xcframework in Embed Frameworks */,
|
||||||
);
|
);
|
||||||
name = "Embed Frameworks";
|
name = "Embed Frameworks";
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 1;
|
||||||
};
|
};
|
||||||
/* End PBXCopyFilesBuildPhase section */
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
|
|
@ -63,8 +68,11 @@
|
||||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
A3045F732B62677C0046BD95 /* Libmtorrentserver.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = Libmtorrentserver.xcframework; path = Frameworks/Libmtorrentserver.xcframework; sourceTree = "<group>"; };
|
||||||
AB7DB3653F826C1130BA821D /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
AB7DB3653F826C1130BA821D /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
C285F7A67E9BCA1B19C52A22 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
C285F7A67E9BCA1B19C52A22 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
D081C25B294826C0006EB10B /* libc++.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = "libc++.tbd"; path = "usr/lib/libc++.tbd"; sourceTree = SDKROOT; };
|
||||||
|
A33AA3032B62949C00A19BF1 /* libresolv.9.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.9.tbd; path = usr/lib/libresolv.9.tbd; sourceTree = SDKROOT; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXFrameworksBuildPhase section */
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
|
@ -72,7 +80,10 @@
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
A33AA3042B62949C00A19BF1 /* libresolv.9.tbd in Frameworks */,
|
||||||
2B39CF7DA699CAC000F142BE /* Pods_Runner.framework in Frameworks */,
|
2B39CF7DA699CAC000F142BE /* Pods_Runner.framework in Frameworks */,
|
||||||
|
A3045F742B62677C0046BD95 /* Libmtorrentserver.xcframework in Frameworks */,
|
||||||
|
D081C25C294826C0006EB10B /* libc++.tbd in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
|
@ -98,6 +109,9 @@
|
||||||
55A7979F4EC3D2F1E3F1CBAE /* Frameworks */ = {
|
55A7979F4EC3D2F1E3F1CBAE /* Frameworks */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
A33AA3032B62949C00A19BF1 /* libresolv.9.tbd */,
|
||||||
|
A3045F732B62677C0046BD95 /* Libmtorrentserver.xcframework */,
|
||||||
|
D081C25B294826C0006EB10B /* libc++.tbd */,
|
||||||
AB7DB3653F826C1130BA821D /* Pods_Runner.framework */,
|
AB7DB3653F826C1130BA821D /* Pods_Runner.framework */,
|
||||||
7BD77255B8011AAE8AE211FF /* Pods_RunnerTests.framework */,
|
7BD77255B8011AAE8AE211FF /* Pods_RunnerTests.framework */,
|
||||||
);
|
);
|
||||||
|
|
@ -451,7 +465,7 @@
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
|
@ -578,7 +592,7 @@
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
|
|
@ -627,7 +641,7 @@
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
SDKROOT = iphoneos;
|
SDKROOT = iphoneos;
|
||||||
SUPPORTED_PLATFORMS = iphoneos;
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import UIKit
|
import UIKit
|
||||||
import Flutter
|
import Flutter
|
||||||
|
import Libmtorrentserver
|
||||||
|
|
||||||
@UIApplicationMain
|
@UIApplicationMain
|
||||||
@objc class AppDelegate: FlutterAppDelegate {
|
@objc class AppDelegate: FlutterAppDelegate {
|
||||||
|
|
@ -7,6 +8,20 @@ import Flutter
|
||||||
_ application: UIApplication,
|
_ application: UIApplication,
|
||||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||||
) -> Bool {
|
) -> Bool {
|
||||||
|
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
|
||||||
|
let mChannel = FlutterMethodChannel(name: "com.kodjodevf.mangayomi.libmtorrentserver", binaryMessenger: controller.binaryMessenger)
|
||||||
|
mChannel.setMethodCallHandler({
|
||||||
|
(call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in
|
||||||
|
switch call.method {
|
||||||
|
case "start":
|
||||||
|
let args = call.arguments as? Dictionary<String, Any>
|
||||||
|
let config = args?["config"] as? String
|
||||||
|
LibmtorrentserverStart(config)
|
||||||
|
default:
|
||||||
|
result(FlutterMethodNotImplemented)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
GeneratedPluginRegistrant.register(with: self)
|
GeneratedPluginRegistrant.register(with: self)
|
||||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ class MTorrentServer {
|
||||||
final path = (await StorageProvider().getBtDirectory())!.path;
|
final path = (await StorageProvider().getBtDirectory())!.path;
|
||||||
final config = jsonEncode({"path": path, "address": address});
|
final config = jsonEncode({"path": path, "address": address});
|
||||||
|
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isAndroid || Platform.isIOS) {
|
||||||
const channel =
|
const channel =
|
||||||
MethodChannel('com.kodjodevf.mangayomi.libmtorrentserver');
|
MethodChannel('com.kodjodevf.mangayomi.libmtorrentserver');
|
||||||
channel.invokeMethod('start', {"config": config});
|
channel.invokeMethod('start', {"config": config});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue