Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
dz_TZImagePickerController
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shuijing
dz_TZImagePickerController
Commits
75e99682
Commit
75e99682
authored
Nov 14, 2020
by
woxtu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the SPM provided flag
parent
22a57d5b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
Package.swift
Package.swift
+1
-4
TZImagePickerController/TZImagePickerController/NSBundle+TZImagePicker.m
...ntroller/TZImagePickerController/NSBundle+TZImagePicker.m
+1
-1
No files found.
Package.swift
View file @
75e99682
...
...
@@ -23,10 +23,7 @@ let package = Package(
name
:
"TZImagePickerController"
,
path
:
"TZImagePickerController/TZImagePickerController"
,
resources
:
[
.
process
(
"TZImagePickerController.bundle"
)],
publicHeadersPath
:
"."
,
cSettings
:
[
.
define
(
"TZ_SPM"
)
]
publicHeadersPath
:
"."
)
]
)
TZImagePickerController/TZImagePickerController/NSBundle+TZImagePicker.m
View file @
75e99682
...
...
@@ -12,7 +12,7 @@
@implementation
NSBundle
(
TZImagePicker
)
+
(
NSBundle
*
)
tz_imagePickerBundle
{
#ifdef
TZ_SPM
#ifdef
SWIFT_PACKAGE
NSBundle
*
bundle
=
SWIFTPM_MODULE_BUNDLE
;
#else
NSBundle
*
bundle
=
[
NSBundle
bundleForClass
:[
TZImagePickerController
class
]];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment