Skip to content

Commit

Permalink
Merge pull request #228 from ruslanskorb/develop
Browse files Browse the repository at this point in the history
Version 3.0.1
  • Loading branch information
ruslanskorb authored Dec 11, 2020
2 parents 075c1a6 + 4bb3397 commit 9fffe3c
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Example/RSKImageCropperExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "RSKImageCropperExample/RSKImageCropperExample-Prefix.pch";
INFOPLIST_FILE = "RSKImageCropperExample/RSKImageCropperExample-Info.plist";
MARKETING_VERSION = 3.0.0;
MARKETING_VERSION = 3.0.1;
PRODUCT_BUNDLE_IDENTIFIER = "com.ruslanskorb.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = RSKImageCropperExample;
TARGETED_DEVICE_FAMILY = 1;
Expand All @@ -567,7 +567,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "RSKImageCropperExample/RSKImageCropperExample-Prefix.pch";
INFOPLIST_FILE = "RSKImageCropperExample/RSKImageCropperExample-Info.plist";
MARKETING_VERSION = 3.0.0;
MARKETING_VERSION = 3.0.1;
PRODUCT_BUNDLE_IDENTIFIER = "com.ruslanskorb.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = RSKImageCropperExample;
TARGETED_DEVICE_FAMILY = 1;
Expand Down
8 changes: 6 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.2
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -15,6 +15,10 @@ let package = Package(
.target(
name: "RSKImageCropper",
path: "RSKImageCropper",
publicHeadersPath: "include"),
resources: [
.copy("RSKImageCropperStrings.bundle")
],
publicHeadersPath: "include"
),
]
)
2 changes: 1 addition & 1 deletion RSKImageCropper.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RSKImageCropper'
s.version = '3.0.0'
s.version = '3.0.1'
s.summary = 'An image cropper for iOS like in the Contacts app with support for landscape orientation.'
s.homepage = 'https://github.com/ruslanskorb/RSKImageCropper'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
20 changes: 10 additions & 10 deletions RSKImageCropper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 3.0.0;
CURRENT_PROJECT_VERSION = 3.0.1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand Down Expand Up @@ -289,7 +289,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 3.0.0;
CURRENT_PROJECT_VERSION = 3.0.1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -315,15 +315,15 @@
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CURRENT_PROJECT_VERSION = 3.0.0;
CURRENT_PROJECT_VERSION = 3.0.1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 3.0.0;
DYLIB_CURRENT_VERSION = 3.0.0;
DYLIB_COMPATIBILITY_VERSION = 3.0.1;
DYLIB_CURRENT_VERSION = 3.0.1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Framework/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 3.0.0;
MARKETING_VERSION = 3.0.1;
MODULEMAP_FILE = "$(SRCROOT)/RSKImageCropper/RSKImageCropper.modulemap";
PRODUCT_BUNDLE_IDENTIFIER = "com.ruslanskorb.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = RSKImageCropper;
Expand All @@ -335,15 +335,15 @@
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CURRENT_PROJECT_VERSION = 3.0.0;
CURRENT_PROJECT_VERSION = 3.0.1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 3.0.0;
DYLIB_CURRENT_VERSION = 3.0.0;
DYLIB_COMPATIBILITY_VERSION = 3.0.1;
DYLIB_CURRENT_VERSION = 3.0.1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Framework/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 3.0.0;
MARKETING_VERSION = 3.0.1;
MODULEMAP_FILE = "$(SRCROOT)/RSKImageCropper/RSKImageCropper.modulemap";
PRODUCT_BUNDLE_IDENTIFIER = "com.ruslanskorb.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = RSKImageCropper;
Expand Down
11 changes: 8 additions & 3 deletions RSKImageCropper/RSKInternalUtility.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ + (NSBundle *)bundleForStrings

static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
NSBundle *bundleForClass = [NSBundle bundleForClass:[self class]];
NSString *stringsBundlePath = [bundleForClass pathForResource:@"RSKImageCropperStrings" ofType:@"bundle"];
bundle = [NSBundle bundleWithPath:stringsBundlePath] ?: bundleForClass;
NSBundle *resourcesBundle;
#ifdef SWIFTPM_MODULE_BUNDLE
resourcesBundle = SWIFTPM_MODULE_BUNDLE;
#else
resourcesBundle = [NSBundle bundleForClass:[self class]];
#endif
NSString *stringsBundlePath = [resourcesBundle pathForResource:@"RSKImageCropperStrings" ofType:@"bundle"];
bundle = [NSBundle bundleWithPath:stringsBundlePath] ?: resourcesBundle;
});

return bundle;
Expand Down

0 comments on commit 9fffe3c

Please sign in to comment.