Skip to content

Commit

Permalink
Merge branch 'release/1.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-fraccaroli committed Aug 18, 2020
2 parents 143bb11 + 60609ab commit 7ed1b6a
Show file tree
Hide file tree
Showing 46 changed files with 613 additions and 63 deletions.
42 changes: 31 additions & 11 deletions Example/JTProximitySDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 52;
objects = {

/* Begin PBXBuildFile section */
Expand All @@ -17,10 +17,24 @@
6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; };
71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; };
873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
A990284B24AC7F1100453BD3 /* JTProximitySDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9DD79DB1F790C9E0082D642 /* JTProximitySDK.framework */; };
A990284C24AC7F1400453BD3 /* JTProximitySDK.bundle in Resources */ = {isa = PBXBuildFile; fileRef = A9DD79D61F790BC20082D642 /* JTProximitySDK.bundle */; };
A91ACF2324EA7EA7004A606A /* JTProximitySDK.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9D19E8024EA7D290054B25E /* JTProximitySDK.xcframework */; };
A91ACF2424EA7EA7004A606A /* JTProximitySDK.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = A9D19E8024EA7D290054B25E /* JTProximitySDK.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
A91ACF2524EA7EA7004A606A /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
A91ACF2424EA7EA7004A606A /* JTProximitySDK.xcframework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
6003F58A195388D20070C39A /* JTProximitySDK_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JTProximitySDK_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
Expand All @@ -38,9 +52,8 @@
71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
797E9CDCA3D16084E6160507 /* JTProximitySDK.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = JTProximitySDK.podspec; path = ../JTProximitySDK.podspec; sourceTree = "<group>"; };
873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
A9D19E8024EA7D290054B25E /* JTProximitySDK.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = JTProximitySDK.xcframework; path = ../Library/JTProximitySDK.xcframework; sourceTree = "<group>"; };
A9D1CE391F8E729F00D2FE14 /* JTProximitySDK_Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = JTProximitySDK_Example.entitlements; sourceTree = "<group>"; };
A9DD79D61F790BC20082D642 /* JTProximitySDK.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = JTProximitySDK.bundle; path = ../Library/JTProximitySDK.bundle; sourceTree = "<group>"; };
A9DD79DB1F790C9E0082D642 /* JTProximitySDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JTProximitySDK.framework; path = ../Library/JTProximitySDK.framework; sourceTree = "<group>"; };
BA68D94D3ECDB61F9AF6FA64 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
D928605FFA49F51500A0A14D /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -51,8 +64,8 @@
buildActionMask = 2147483647;
files = (
6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
A990284B24AC7F1100453BD3 /* JTProximitySDK.framework in Frameworks */,
6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
A91ACF2324EA7EA7004A606A /* JTProximitySDK.xcframework in Frameworks */,
6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -82,8 +95,7 @@
6003F58C195388D20070C39A /* Frameworks */ = {
isa = PBXGroup;
children = (
A9DD79DB1F790C9E0082D642 /* JTProximitySDK.framework */,
A9DD79D61F790BC20082D642 /* JTProximitySDK.bundle */,
A9D19E8024EA7D290054B25E /* JTProximitySDK.xcframework */,
6003F58D195388D20070C39A /* Foundation.framework */,
6003F58F195388D20070C39A /* CoreGraphics.framework */,
6003F591195388D20070C39A /* UIKit.framework */,
Expand Down Expand Up @@ -138,6 +150,7 @@
6003F586195388D20070C39A /* Sources */,
6003F587195388D20070C39A /* Frameworks */,
6003F588195388D20070C39A /* Resources */,
A91ACF2524EA7EA7004A606A /* Embed Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -194,7 +207,6 @@
873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */,
71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */,
6003F5A9195388D20070C39A /* Images.xcassets in Resources */,
A990284C24AC7F1400453BD3 /* JTProximitySDK.bundle in Resources */,
6003F598195388D20070C39A /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -341,8 +353,12 @@
FRAMEWORK_SEARCH_PATHS = ../Library;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
INFOPLIST_FILE = "JTProximitySDK/JTProximitySDK-Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_BUNDLE_IDENTIFIER = com.jointag.proximity.sample.GithubSample;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand All @@ -356,8 +372,12 @@
FRAMEWORK_SEARCH_PATHS = ../Library;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
INFOPLIST_FILE = "JTProximitySDK/JTProximitySDK-Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_BUNDLE_IDENTIFIER = com.jointag.proximity.sample.GithubSample;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
Expand Down
18 changes: 9 additions & 9 deletions Example/JTProximitySDK/JTProximitySDK-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>This application requires your location for provide context-aware informations</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This application requires your location for provide context-aware informations</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand All @@ -45,14 +54,5 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>This application requires your location for provide context-aware informations</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This application requires your location for provide context-aware informations</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>
20 changes: 8 additions & 12 deletions JTProximitySDK.podspec
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
Pod::Spec.new do |s|
s.name = "JTProximitySDK"
s.version = "1.10.0"
s.version = "1.11.0"
s.summary = "iOS library for Jointag Proximity"
s.homepage = "https://www.jointag.com/"
s.author = "Jointag S.r.l."
s.platform = :ios
s.source = { :git => "https://github.com/jointag/JTProximitySDK-iOS.git", :tag => "#{s.version}" }
s.source_files = "Library/JTProximitySDK.framework/Headers/JTProximitySDK.*"
s.vendored_frameworks = 'Library/JTProximitySDK.framework'
s.ios.deployment_target = '8.0'
s.resources = ["Library/JTProximitySDK.bundle"]
s.frameworks = 'UIKit', 'Foundation', 'SystemConfiguration', 'MobileCoreServices', 'CoreLocation', 'CoreBluetooth'
s.requires_arc = true
s.xcconfig = {
'LIBRARY_SEARCH_PATHS' => '"$(PODS_ROOT)/JTProximitySDK"',
'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/JTProximitySDK"'
s.source = {
:git => "https://github.com/jointag/JTProximitySDK-iOS.git",
:tag => "#{s.version}"
}
s.license = {
s.ios.deployment_target = '8.0'
s.vendored_frameworks = 'Library/JTProximitySDK.xcframework'
s.frameworks = 'UIKit', 'Foundation', 'SystemConfiguration', 'MobileCoreServices', 'CoreLocation', 'CoreTelephony', 'AdSupport', 'WebKit'
s.license = {
:type => "Copyright",
:text => <<-LICENSE
Copyright 2020 Jointag S.r.l. All rights reserved.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Library/JTProximitySDK.bundle/Info.plist
Binary file not shown.
Binary file removed Library/JTProximitySDK.framework/Info.plist
Binary file not shown.
Binary file removed Library/JTProximitySDK.framework/JTProximitySDK
Binary file not shown.
41 changes: 41 additions & 0 deletions Library/JTProximitySDK.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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-i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>JTProximitySDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-armv7_arm64</string>
<key>LibraryPath</key>
<string>JTProximitySDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>armv7</string>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// JTPLogger.h
// JTProximitySDK
//
// Created by Michele Ambrosi on 27/06/17.
// Copyright © 2017 Jointag Srl. All rights reserved.
// Copyright © 2020 Jointag Srl. All rights reserved.
//
#import <Foundation/Foundation.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// JTProximitySDK.h
// JTProximitySDK
//
// Created by Michele Ambrosi on 06/07/17.
// Copyright © 2017 Jointag Srl. All rights reserved.
// Copyright © 2020 Jointag Srl. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
Expand All @@ -15,9 +14,6 @@

#endif

extern NSString * _Nonnull const SDK_VERSION;
extern NSInteger const SDK_BUILD;

@protocol JTProximityCustomDelegate<NSObject>

- (void)jtProximityDidReceiveCustomAction:(nullable NSString *)customAction;
Expand All @@ -27,6 +23,10 @@ extern NSInteger const SDK_BUILD;
NS_SWIFT_NAME(ProximitySDK)
@interface JTProximitySDK : NSObject

@property (class, readonly, nonatomic, nonnull) NSString* sdkVersion;

@property (class, readonly, nonatomic) NSUInteger sdkBuild;

@property (readonly, nonatomic, nullable) NSString *apiKey;

@property (readonly, nonatomic, nullable) NSString *apiSecret;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// JTPLogger.h
// JTProximitySDK
//
// Copyright © 2020 Jointag Srl. All rights reserved.
//
#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, JTPLogLevel) {
JTPLogLevelVerbose,
JTPLogLevelDebug,
JTPLogLevelInfo,
JTPLogLevelWarn,
JTPLogLevelError
};

@interface JTPLogger : NSObject

// Shorthand methods
+ (void)v:(NSString *)format, ...;
+ (void)d:(NSString *)format, ...;
+ (void)i:(NSString *)format, ...;
+ (void)w:(NSString *)format, ...;
+ (void)e:(NSString *)format, ...;
+ (void)logWithLogLevel:(JTPLogLevel)level andFormat:(NSString *)format, ...;
+ (void)setLogLevel:(JTPLogLevel)newLogLevel;
+ (void)setWriteLogToFile:(BOOL)newWriteLogToFile;

@end
Loading

0 comments on commit 7ed1b6a

Please sign in to comment.