Skip to content

Commit 17dc8e8

Browse files
committed
chore: using xcframework for ios
1 parent 02d5b0d commit 17dc8e8

File tree

16 files changed

+271
-15
lines changed

16 files changed

+271
-15
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

ios/Openpgp.xcframework/Info.plist

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>BinaryPath</key>
9+
<string>libopenpgp_bridge.a</string>
10+
<key>HeadersPath</key>
11+
<string>Headers</string>
12+
<key>LibraryIdentifier</key>
13+
<string>ios-arm64</string>
14+
<key>LibraryPath</key>
15+
<string>libopenpgp_bridge.a</string>
16+
<key>SupportedArchitectures</key>
17+
<array>
18+
<string>arm64</string>
19+
</array>
20+
<key>SupportedPlatform</key>
21+
<string>ios</string>
22+
</dict>
23+
<dict>
24+
<key>BinaryPath</key>
25+
<string>libopenpgp_bridge.a</string>
26+
<key>HeadersPath</key>
27+
<string>Headers</string>
28+
<key>LibraryIdentifier</key>
29+
<string>ios-arm64_x86_64-simulator</string>
30+
<key>LibraryPath</key>
31+
<string>libopenpgp_bridge.a</string>
32+
<key>SupportedArchitectures</key>
33+
<array>
34+
<string>arm64</string>
35+
<string>x86_64</string>
36+
</array>
37+
<key>SupportedPlatform</key>
38+
<string>ios</string>
39+
<key>SupportedPlatformVariant</key>
40+
<string>simulator</string>
41+
</dict>
42+
</array>
43+
<key>CFBundlePackageType</key>
44+
<string>XFWK</string>
45+
<key>XCFrameworkFormatVersion</key>
46+
<string>1.0</string>
47+
</dict>
48+
</plist>
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/* Code generated by cmd/cgo; DO NOT EDIT. */
2+
3+
/* package command-line-arguments */
4+
5+
6+
#line 1 "cgo-builtin-export-prolog"
7+
8+
#include <stddef.h>
9+
10+
#ifndef GO_CGO_EXPORT_PROLOGUE_H
11+
#define GO_CGO_EXPORT_PROLOGUE_H
12+
13+
#ifndef GO_CGO_GOSTRING_TYPEDEF
14+
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15+
#endif
16+
17+
#endif
18+
19+
/* Start of preamble from import "C" comments. */
20+
21+
22+
#line 3 "main.go"
23+
#include <stdint.h>
24+
#include <stdlib.h>
25+
typedef struct { void* message; int size; char* error; } BytesReturn;
26+
27+
#line 1 "cgo-generated-wrapper"
28+
29+
30+
/* End of preamble from import "C" comments. */
31+
32+
33+
/* Start of boilerplate cgo prologue. */
34+
#line 1 "cgo-gcc-export-header-prolog"
35+
36+
#ifndef GO_CGO_PROLOGUE_H
37+
#define GO_CGO_PROLOGUE_H
38+
39+
typedef signed char GoInt8;
40+
typedef unsigned char GoUint8;
41+
typedef short GoInt16;
42+
typedef unsigned short GoUint16;
43+
typedef int GoInt32;
44+
typedef unsigned int GoUint32;
45+
typedef long long GoInt64;
46+
typedef unsigned long long GoUint64;
47+
typedef GoInt64 GoInt;
48+
typedef GoUint64 GoUint;
49+
typedef size_t GoUintptr;
50+
typedef float GoFloat32;
51+
typedef double GoFloat64;
52+
#ifdef _MSC_VER
53+
#include <complex.h>
54+
typedef _Fcomplex GoComplex64;
55+
typedef _Dcomplex GoComplex128;
56+
#else
57+
typedef float _Complex GoComplex64;
58+
typedef double _Complex GoComplex128;
59+
#endif
60+
61+
/*
62+
static assertion to make sure the file is being used on architecture
63+
at least with matching size of GoInt.
64+
*/
65+
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66+
67+
#ifndef GO_CGO_GOSTRING_TYPEDEF
68+
typedef _GoString_ GoString;
69+
#endif
70+
typedef void *GoMap;
71+
typedef void *GoChan;
72+
typedef struct { void *t; void *v; } GoInterface;
73+
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74+
75+
#endif
76+
77+
/* End of boilerplate cgo prologue. */
78+
79+
#ifdef __cplusplus
80+
extern "C" {
81+
#endif
82+
83+
extern BytesReturn* OpenPGPBridgeCall(char* name, void* payload, int payloadSize);
84+
85+
#ifdef __cplusplus
86+
}
87+
#endif
Binary file not shown.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
/* Code generated by cmd/cgo; DO NOT EDIT. */
2+
3+
/* package command-line-arguments */
4+
5+
6+
#line 1 "cgo-builtin-export-prolog"
7+
8+
#include <stddef.h>
9+
10+
#ifndef GO_CGO_EXPORT_PROLOGUE_H
11+
#define GO_CGO_EXPORT_PROLOGUE_H
12+
13+
#ifndef GO_CGO_GOSTRING_TYPEDEF
14+
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15+
#endif
16+
17+
#endif
18+
19+
/* Start of preamble from import "C" comments. */
20+
21+
22+
#line 3 "main.go"
23+
#include <stdint.h>
24+
#include <stdlib.h>
25+
typedef struct { void* message; int size; char* error; } BytesReturn;
26+
27+
#line 1 "cgo-generated-wrapper"
28+
29+
30+
/* End of preamble from import "C" comments. */
31+
32+
33+
/* Start of boilerplate cgo prologue. */
34+
#line 1 "cgo-gcc-export-header-prolog"
35+
36+
#ifndef GO_CGO_PROLOGUE_H
37+
#define GO_CGO_PROLOGUE_H
38+
39+
typedef signed char GoInt8;
40+
typedef unsigned char GoUint8;
41+
typedef short GoInt16;
42+
typedef unsigned short GoUint16;
43+
typedef int GoInt32;
44+
typedef unsigned int GoUint32;
45+
typedef long long GoInt64;
46+
typedef unsigned long long GoUint64;
47+
typedef GoInt64 GoInt;
48+
typedef GoUint64 GoUint;
49+
typedef size_t GoUintptr;
50+
typedef float GoFloat32;
51+
typedef double GoFloat64;
52+
#ifdef _MSC_VER
53+
#include <complex.h>
54+
typedef _Fcomplex GoComplex64;
55+
typedef _Dcomplex GoComplex128;
56+
#else
57+
typedef float _Complex GoComplex64;
58+
typedef double _Complex GoComplex128;
59+
#endif
60+
61+
/*
62+
static assertion to make sure the file is being used on architecture
63+
at least with matching size of GoInt.
64+
*/
65+
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66+
67+
#ifndef GO_CGO_GOSTRING_TYPEDEF
68+
typedef _GoString_ GoString;
69+
#endif
70+
typedef void *GoMap;
71+
typedef void *GoChan;
72+
typedef struct { void *t; void *v; } GoInterface;
73+
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74+
75+
#endif
76+
77+
/* End of boilerplate cgo prologue. */
78+
79+
#ifdef __cplusplus
80+
extern "C" {
81+
#endif
82+
83+
extern BytesReturn* OpenPGPBridgeCall(char* name, void* payload, int payloadSize);
84+
85+
#ifdef __cplusplus
86+
}
87+
#endif

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-fast-openpgp",
3-
"version": "2.7.2",
3+
"version": "2.7.3",
44
"description": "library for use openPGP",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)