Automated build of GopenPGP
This commit is contained in:
parent
96f7c1960d
commit
083c37f4e7
24 changed files with 36 additions and 361 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
|
@ -55,6 +55,13 @@ Cartfile.resolved
|
||||||
|
|
||||||
Carthage/Build
|
Carthage/Build
|
||||||
|
|
||||||
|
# Go Mobile Build results and dependency sources
|
||||||
|
go/bin/
|
||||||
|
go/dist/
|
||||||
|
go/pkg/
|
||||||
|
go/src/*
|
||||||
|
!go/src/gopenpgpwrapper
|
||||||
|
|
||||||
# fastlane
|
# fastlane
|
||||||
#
|
#
|
||||||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
|
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
|
||||||
|
|
|
||||||
BIN
go/dist/Gopenpgpwrapper.framework/Gopenpgpwrapper
vendored
BIN
go/dist/Gopenpgpwrapper.framework/Gopenpgpwrapper
vendored
Binary file not shown.
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
// Objective-C API for talking to the following Go packages
|
|
||||||
//
|
|
||||||
// github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
|
|
||||||
//
|
|
||||||
// File is generated by gomobile bind. Do not edit.
|
|
||||||
#ifndef __Gopenpgpwrapper_FRAMEWORK_H__
|
|
||||||
#define __Gopenpgpwrapper_FRAMEWORK_H__
|
|
||||||
|
|
||||||
#include "Gopenpgpwrapper.objc.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// Objective-C API for talking to github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper Go package.
|
|
||||||
// gobind -lang=objc github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Gopenpgpwrapper_H__
|
|
||||||
#define __Gopenpgpwrapper_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
|
|
||||||
@class GopenpgpwrapperKey;
|
|
||||||
|
|
||||||
@interface GopenpgpwrapperKey : NSObject <goSeqRefInterface> {
|
|
||||||
}
|
|
||||||
@property(strong, readonly) _Nonnull id _ref;
|
|
||||||
|
|
||||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
||||||
- (nonnull instancetype)init;
|
|
||||||
- (NSData* _Nullable)decrypt:(NSData* _Nullable)ciphertext passphrase:(NSString* _Nullable)passphrase;
|
|
||||||
- (NSData* _Nullable)encrypt:(NSData* _Nullable)plaintext armor:(BOOL)armor;
|
|
||||||
- (NSString* _Nonnull)getKeyID;
|
|
||||||
@end
|
|
||||||
|
|
||||||
FOUNDATION_EXPORT GopenpgpwrapperKey* _Nullable GopenpgpwrapperReadKey(NSData* _Nullable data);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// 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
|
|
||||||
35
go/dist/Gopenpgpwrapper.framework/Headers/ref.h
vendored
35
go/dist/Gopenpgpwrapper.framework/Headers/ref.h
vendored
|
|
@ -1,35 +0,0 @@
|
||||||
// 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
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
framework module "Gopenpgpwrapper" {
|
|
||||||
header "ref.h"
|
|
||||||
header "Gopenpgpwrapper.objc.h"
|
|
||||||
header "Universe.objc.h"
|
|
||||||
header "Gopenpgpwrapper.h"
|
|
||||||
|
|
||||||
export *
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<?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>
|
|
||||||
Binary file not shown.
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
// Objective-C API for talking to the following Go packages
|
|
||||||
//
|
|
||||||
// github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
|
|
||||||
//
|
|
||||||
// File is generated by gomobile bind. Do not edit.
|
|
||||||
#ifndef __Gopenpgpwrapper_FRAMEWORK_H__
|
|
||||||
#define __Gopenpgpwrapper_FRAMEWORK_H__
|
|
||||||
|
|
||||||
#include "Gopenpgpwrapper.objc.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// Objective-C API for talking to github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper Go package.
|
|
||||||
// gobind -lang=objc github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Gopenpgpwrapper_H__
|
|
||||||
#define __Gopenpgpwrapper_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
|
|
||||||
@class GopenpgpwrapperKey;
|
|
||||||
|
|
||||||
@interface GopenpgpwrapperKey : NSObject <goSeqRefInterface> {
|
|
||||||
}
|
|
||||||
@property(strong, readonly) _Nonnull id _ref;
|
|
||||||
|
|
||||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
||||||
- (nonnull instancetype)init;
|
|
||||||
- (NSData* _Nullable)decrypt:(NSData* _Nullable)ciphertext passphrase:(NSString* _Nullable)passphrase;
|
|
||||||
- (NSData* _Nullable)encrypt:(NSData* _Nullable)plaintext armor:(BOOL)armor;
|
|
||||||
- (NSString* _Nonnull)getKeyID;
|
|
||||||
@end
|
|
||||||
|
|
||||||
FOUNDATION_EXPORT GopenpgpwrapperKey* _Nullable GopenpgpwrapperReadKey(NSData* _Nullable data);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// 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
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
// 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
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
framework module "Gopenpgpwrapper" {
|
|
||||||
header "ref.h"
|
|
||||||
header "Gopenpgpwrapper.objc.h"
|
|
||||||
header "Universe.objc.h"
|
|
||||||
header "Gopenpgpwrapper.h"
|
|
||||||
|
|
||||||
export *
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<?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>
|
|
||||||
Binary file not shown.
|
|
@ -1,13 +0,0 @@
|
||||||
|
|
||||||
// Objective-C API for talking to the following Go packages
|
|
||||||
//
|
|
||||||
// github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
|
|
||||||
//
|
|
||||||
// File is generated by gomobile bind. Do not edit.
|
|
||||||
#ifndef __Gopenpgpwrapper_FRAMEWORK_H__
|
|
||||||
#define __Gopenpgpwrapper_FRAMEWORK_H__
|
|
||||||
|
|
||||||
#include "Gopenpgpwrapper.objc.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// Objective-C API for talking to github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper Go package.
|
|
||||||
// gobind -lang=objc github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
|
|
||||||
//
|
|
||||||
// File is generated by gobind. Do not edit.
|
|
||||||
|
|
||||||
#ifndef __Gopenpgpwrapper_H__
|
|
||||||
#define __Gopenpgpwrapper_H__
|
|
||||||
|
|
||||||
@import Foundation;
|
|
||||||
#include "ref.h"
|
|
||||||
#include "Universe.objc.h"
|
|
||||||
|
|
||||||
|
|
||||||
@class GopenpgpwrapperKey;
|
|
||||||
|
|
||||||
@interface GopenpgpwrapperKey : NSObject <goSeqRefInterface> {
|
|
||||||
}
|
|
||||||
@property(strong, readonly) _Nonnull id _ref;
|
|
||||||
|
|
||||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
|
||||||
- (nonnull instancetype)init;
|
|
||||||
- (NSData* _Nullable)decrypt:(NSData* _Nullable)ciphertext passphrase:(NSString* _Nullable)passphrase;
|
|
||||||
- (NSData* _Nullable)encrypt:(NSData* _Nullable)plaintext armor:(BOOL)armor;
|
|
||||||
- (NSString* _Nonnull)getKeyID;
|
|
||||||
@end
|
|
||||||
|
|
||||||
FOUNDATION_EXPORT GopenpgpwrapperKey* _Nullable GopenpgpwrapperReadKey(NSData* _Nullable data);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
// 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
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
// 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
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
framework module "Gopenpgpwrapper" {
|
|
||||||
header "ref.h"
|
|
||||||
header "Gopenpgpwrapper.objc.h"
|
|
||||||
header "Universe.objc.h"
|
|
||||||
header "Gopenpgpwrapper.h"
|
|
||||||
|
|
||||||
export *
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
<?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>
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package gopenpgpwrapper // import "gopenpgpwrapper"
|
package gopenpgpwrapper
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
28
gopenpgp_build.sh
Executable file
28
gopenpgp_build.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
OLDGOPATH=$GOPATH
|
||||||
|
|
||||||
|
export GOPATH=$(pwd)/go
|
||||||
|
|
||||||
|
go get -u golang.org/x/mobile/cmd/gomobile
|
||||||
|
go install golang.org/x/mobile/cmd/gobind
|
||||||
|
go get golang.org/x/mobile
|
||||||
|
|
||||||
|
go get -u github.com/ProtonMail/gopenpgp
|
||||||
|
|
||||||
|
cd $GOPATH/src/github.com/ProtonMail/gopenpgp
|
||||||
|
|
||||||
|
git fetch && git fetch --tags
|
||||||
|
|
||||||
|
git checkout v0
|
||||||
|
|
||||||
|
GO111MODULE=on go mod vendor
|
||||||
|
|
||||||
|
git checkout v1.0.0
|
||||||
|
|
||||||
|
cd $GOPATH
|
||||||
|
mkdir dist
|
||||||
|
|
||||||
|
$GOPATH/bin/gomobile bind -target ios -o dist/Gopenpgpwrapper.framework gopenpgpwrapper
|
||||||
|
|
||||||
|
export GOPATH=$OLDGOPATH
|
||||||
Loading…
Add table
Add a link
Reference in a new issue