Skip to content

Commit

Permalink
feat: release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SSebo committed May 25, 2022
0 parents commit 8fca02a
Show file tree
Hide file tree
Showing 15 changed files with 2,060 additions and 0 deletions.
15 changes: 15 additions & 0 deletions FeatureProbe.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pod::Spec.new do |s|
s.name = 'FeatureProbe'
s.version = '1.0.1'
s.license = { :type => 'MIT' }
s.homepage = 'https://www.featureprobe.com/'
s.summary = 'iOS feature probe SDK'
s.source = { :git => 'git@github.com:FeatureProbe/client-sdk-ios.git', :tag => s.version }
s.source_files = 'Sources/**/*.swift'
s.authors = 'FeatreProbeTeam'

s.platform = :ios, '9.0'
s.pod_target_xcconfig = { 'VALID_ARCHS' => 'x86_64 arm64' }
s.swift_versions = ['4.0', '4.2', '5.0', '5.5']
s.vendored_frameworks = "FeatureProbeFFI.xcframework"
end
40 changes: 40 additions & 0 deletions FeatureProbeFFI.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -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>FeatureProbeFFI.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>FeatureProbeFFI.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>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
// This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!

#pragma once

#include <stdbool.h>
#include <stdint.h>

// The following structs are used to implement the lowest level
// of the FFI, and thus useful to multiple uniffied crates.
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
#ifdef UNIFFI_SHARED_H
// We also try to prevent mixing versions of shared uniffi header structs.
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
#ifndef UNIFFI_SHARED_HEADER_V4
#error Combining helper code from multiple versions of uniffi is not supported
#endif // ndef UNIFFI_SHARED_HEADER_V4
#else
#define UNIFFI_SHARED_H
#define UNIFFI_SHARED_HEADER_V4
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️

typedef struct RustBuffer
{
int32_t capacity;
int32_t len;
uint8_t *_Nullable data;
} RustBuffer;

typedef int32_t (*ForeignCallback)(uint64_t, int32_t, RustBuffer, RustBuffer *_Nonnull);

typedef struct ForeignBytes
{
int32_t len;
const uint8_t *_Nullable data;
} ForeignBytes;

// Error definitions
typedef struct RustCallStatus {
int8_t code;
RustBuffer errorBuf;
} RustCallStatus;

// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
#endif // def UNIFFI_SHARED_H

void ffi_featureprobe_17ce_FeatureProbe_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void*_Nonnull featureprobe_17ce_FeatureProbe_new(
void*_Nonnull config,void*_Nonnull user,
RustCallStatus *_Nonnull out_status
);
int8_t featureprobe_17ce_FeatureProbe_bool_value(
void*_Nonnull ptr,RustBuffer key,int8_t default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_bool_detail(
void*_Nonnull ptr,RustBuffer key,int8_t default_value,
RustCallStatus *_Nonnull out_status
);
double featureprobe_17ce_FeatureProbe_number_value(
void*_Nonnull ptr,RustBuffer key,double default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_number_detail(
void*_Nonnull ptr,RustBuffer key,double default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_string_value(
void*_Nonnull ptr,RustBuffer key,RustBuffer default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_string_detail(
void*_Nonnull ptr,RustBuffer key,RustBuffer default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_json_value(
void*_Nonnull ptr,RustBuffer key,RustBuffer default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_json_detail(
void*_Nonnull ptr,RustBuffer key,RustBuffer default_value,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_FPUser_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void*_Nonnull featureprobe_17ce_FPUser_new(
RustBuffer key,
RustCallStatus *_Nonnull out_status
);
void featureprobe_17ce_FPUser_set_attr(
void*_Nonnull ptr,RustBuffer key,RustBuffer value,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_FPUrl_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_FPUrlBuilder_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void*_Nonnull featureprobe_17ce_FPUrlBuilder_new(
RustBuffer remote_url,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FPUrlBuilder_build(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_FPConfig_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void*_Nonnull featureprobe_17ce_FPConfig_new(
void*_Nonnull remote_url,RustBuffer client_sdk_key,uint8_t refresh_interval,int8_t wait_first_resp,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_featureprobe_17ce_rustbuffer_alloc(
int32_t size,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_featureprobe_17ce_rustbuffer_from_bytes(
ForeignBytes bytes,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_rustbuffer_free(
RustBuffer buf,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_featureprobe_17ce_rustbuffer_reserve(
RustBuffer buf,int32_t additional,
RustCallStatus *_Nonnull out_status
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!
module FeatureProbeFFI {
header "FeatureProbeFFI.h"
export *
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module FeatureProbeFFI {
umbrella header "FeatureprobeFFI.h"

export *
module * { export * }
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
// This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!

#pragma once

#include <stdbool.h>
#include <stdint.h>

// The following structs are used to implement the lowest level
// of the FFI, and thus useful to multiple uniffied crates.
// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H.
#ifdef UNIFFI_SHARED_H
// We also try to prevent mixing versions of shared uniffi header structs.
// If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4
#ifndef UNIFFI_SHARED_HEADER_V4
#error Combining helper code from multiple versions of uniffi is not supported
#endif // ndef UNIFFI_SHARED_HEADER_V4
#else
#define UNIFFI_SHARED_H
#define UNIFFI_SHARED_HEADER_V4
// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️

typedef struct RustBuffer
{
int32_t capacity;
int32_t len;
uint8_t *_Nullable data;
} RustBuffer;

typedef int32_t (*ForeignCallback)(uint64_t, int32_t, RustBuffer, RustBuffer *_Nonnull);

typedef struct ForeignBytes
{
int32_t len;
const uint8_t *_Nullable data;
} ForeignBytes;

// Error definitions
typedef struct RustCallStatus {
int8_t code;
RustBuffer errorBuf;
} RustCallStatus;

// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️
// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️
#endif // def UNIFFI_SHARED_H

void ffi_featureprobe_17ce_FeatureProbe_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void*_Nonnull featureprobe_17ce_FeatureProbe_new(
void*_Nonnull config,void*_Nonnull user,
RustCallStatus *_Nonnull out_status
);
int8_t featureprobe_17ce_FeatureProbe_bool_value(
void*_Nonnull ptr,RustBuffer key,int8_t default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_bool_detail(
void*_Nonnull ptr,RustBuffer key,int8_t default_value,
RustCallStatus *_Nonnull out_status
);
double featureprobe_17ce_FeatureProbe_number_value(
void*_Nonnull ptr,RustBuffer key,double default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_number_detail(
void*_Nonnull ptr,RustBuffer key,double default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_string_value(
void*_Nonnull ptr,RustBuffer key,RustBuffer default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_string_detail(
void*_Nonnull ptr,RustBuffer key,RustBuffer default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_json_value(
void*_Nonnull ptr,RustBuffer key,RustBuffer default_value,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FeatureProbe_json_detail(
void*_Nonnull ptr,RustBuffer key,RustBuffer default_value,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_FPUser_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void*_Nonnull featureprobe_17ce_FPUser_new(
RustBuffer key,
RustCallStatus *_Nonnull out_status
);
void featureprobe_17ce_FPUser_set_attr(
void*_Nonnull ptr,RustBuffer key,RustBuffer value,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_FPUrl_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_FPUrlBuilder_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void*_Nonnull featureprobe_17ce_FPUrlBuilder_new(
RustBuffer remote_url,
RustCallStatus *_Nonnull out_status
);
RustBuffer featureprobe_17ce_FPUrlBuilder_build(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_FPConfig_object_free(
void*_Nonnull ptr,
RustCallStatus *_Nonnull out_status
);
void*_Nonnull featureprobe_17ce_FPConfig_new(
void*_Nonnull remote_url,RustBuffer client_sdk_key,uint8_t refresh_interval,int8_t wait_first_resp,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_featureprobe_17ce_rustbuffer_alloc(
int32_t size,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_featureprobe_17ce_rustbuffer_from_bytes(
ForeignBytes bytes,
RustCallStatus *_Nonnull out_status
);
void ffi_featureprobe_17ce_rustbuffer_free(
RustBuffer buf,
RustCallStatus *_Nonnull out_status
);
RustBuffer ffi_featureprobe_17ce_rustbuffer_reserve(
RustBuffer buf,int32_t additional,
RustCallStatus *_Nonnull out_status
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!
module FeatureProbeFFI {
header "FeatureProbeFFI.h"
export *
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module FeatureProbeFFI {
umbrella header "FeatureprobeFFI.h"

export *
module * { export * }
}
Loading

0 comments on commit 8fca02a

Please # to comment.