Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
GMAILab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMAILab
Commits
9c75bccf
Commit
9c75bccf
authored
Apr 30, 2020
by
曹逢阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5034621c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
93 additions
and
14 deletions
+93
-14
.gitignore
.gitignore
+40
-0
UserInterfaceState.xcuserstate
...xcuserdata/dzc.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Podfile.lock
Example/Podfile.lock
+1
-1
.DS_Store
Example/Pods/.DS_Store
+0
-0
GMAILab.podspec.json
Example/Pods/Local Podspecs/GMAILab.podspec.json
+0
-1
Manifest.lock
Example/Pods/Manifest.lock
+1
-1
project.pbxproj
Example/Pods/Pods.xcodeproj/project.pbxproj
+0
-0
GMAILab-umbrella.h
Example/Pods/Target Support Files/GMAILab/GMAILab-umbrella.h
+1
-0
GMAILab.podspec
GMAILab.podspec
+1
-1
GMAIChannelViewController.m
GMAILab/Classes/Controller/GMAIChannelViewController.m
+1
-1
NSBundle+GMAILab.h
GMAILab/Classes/Utils/NSBundle+GMAILab.h
+1
-1
NSBundle+GMAILab.m
GMAILab/Classes/Utils/NSBundle+GMAILab.m
+6
-8
UIImage+GMAILab.h
GMAILab/Classes/Utils/UIImage+GMAILab.h
+20
-0
UIImage+GMAILab.m
GMAILab/Classes/Utils/UIImage+GMAILab.m
+21
-0
No files found.
.gitignore
0 → 100644
View file @
9c75bccf
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
*.DS_Store
*.cer
*.mobileprovision
.DS_Store
*.ipa
UntrackDebugDomains.h
#*GMLocalServerDomains.h
#*GMLocalServerDomains.m
# CocoaPods
Pods/
Gengmei/.DS_Store
Gengmei/.idea/
Gengmei/Gengmei.app.dSYM.zip
#Gemfile
#Gemfile.lock
Gengmei/fastlane/archive
*.dSYM.zip
Gengmei/fastlane/report.xml
report.xml
fastlane/report.xml
fastlane/archive
WorkspaceSettings.xcsettings
Example/GMAILab.xcworkspace/xcuserdata/dzc.xcuserdatad/UserInterfaceState.xcuserstate
View file @
9c75bccf
No preview for this file type
Example/Podfile.lock
View file @
9c75bccf
...
...
@@ -179,7 +179,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
GMAILab:
35f544e87ecde9ce08be2609e4f4fa0be405a8b5
GMAILab:
1b28ba3f10a7e4d430153127c4397888c0febef6
GMBase: 2b77f591a35a589ed331c490af093b68b0fc73be
GMCache: b78d8e46db864405e91d226ce640cc80d966c611
GMediator: 0b222275ef14deaf72eca107e76e048b67172c2c
...
...
Example/Pods/.DS_Store
View file @
9c75bccf
No preview for this file type
Example/Pods/Local Podspecs/GMAILab.podspec.json
View file @
9c75bccf
...
...
@@ -18,7 +18,6 @@
"platforms"
:
{
"ios"
:
"9.0"
},
"source_files"
:
"GMAILab/Classes/*.{h,m}"
,
"resource_bundles"
:
{
"GMAILab"
:
[
"GMAILab/Assets/*.{png,xib}"
...
...
Example/Pods/Manifest.lock
View file @
9c75bccf
...
...
@@ -179,7 +179,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
GMAILab:
35f544e87ecde9ce08be2609e4f4fa0be405a8b5
GMAILab:
1b28ba3f10a7e4d430153127c4397888c0febef6
GMBase: 2b77f591a35a589ed331c490af093b68b0fc73be
GMCache: b78d8e46db864405e91d226ce640cc80d966c611
GMediator: 0b222275ef14deaf72eca107e76e048b67172c2c
...
...
Example/Pods/Pods.xcodeproj/project.pbxproj
View file @
9c75bccf
This diff is collapsed.
Click to expand it.
Example/Pods/Target Support Files/GMAILab/GMAILab-umbrella.h
View file @
9c75bccf
...
...
@@ -13,6 +13,7 @@
#import "GMAIChannelViewController.h"
#import "GMAICardModel.h"
#import "NSBundle+GMAILab.h"
#import "UIImage+GMAILab.h"
#import "GMAICardCollectionCell.h"
#import "GMVerticalFlowLayout.h"
#import "GMAIChannelViewModel.h"
...
...
GMAILab.podspec
View file @
9c75bccf
...
...
@@ -30,7 +30,7 @@ TODO: Add long description of the pod here.
s
.
ios
.
deployment_target
=
'9.0'
s
.
source_files
=
'GMAILab/Classes/*.{h,m}'
#
s.source_files = 'GMAILab/Classes/*.{h,m}'
s
.
subspec
'Model'
do
|
ss
|
ss
.
source_files
=
'GMAILab/Classes/Model/*.{h,m}'
...
...
GMAILab/Classes/Controller/GMAIChannelViewController.m
View file @
9c75bccf
...
...
@@ -75,7 +75,7 @@
_collectionView
.
delegate
=
self
;
[
_collectionView
registerCell
:
GMAICardCollectionCell
.
class
];
NSBundle
*
bundle
=
[
NSBundle
gm_AILabBundle
];
NSBundle
*
bundle
=
[
NSBundle
gm_AILabBundle
:
GMAICardCollectionCell
.
class
];
UINib
*
nib
=
[
UINib
nibWithNibName
:
NSStringFromClass
(
GMAICardCollectionCell
.
class
)
bundle
:
bundle
];
[
_collectionView
registerNib
:
nib
forCellWithReuseIdentifier
:
NSStringFromClass
(
GMAICardCollectionCell
.
class
)];
}
...
...
GMAILab/Classes/Utils/NSBundle+GMAILab.h
View file @
9c75bccf
...
...
@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface
NSBundle
(
GMAILab
)
+
(
instancetype
)
gm_AILabBundle
;
+
(
instancetype
)
gm_AILabBundle
:(
Class
)
className
;
@end
...
...
GMAILab/Classes/Utils/NSBundle+GMAILab.m
View file @
9c75bccf
...
...
@@ -4,27 +4,25 @@
//
// Created by cfy on 2020/4/30.
//
#import "NSBundle+GMAILab.h"
#import "GMVerticalFlowLayout.h"
@implementation
NSBundle
(
GMAILabBundle
)
+
(
instancetype
)
gm_AILabBundle
{
+
(
instancetype
)
gm_AILabBundle
:(
Class
)
className
{
static
NSBundle
*
bundle
=
nil
;
static
dispatch_once_t
onceToken
;
dispatch_once
(
&
onceToken
,
^
{
bundle
=
[
NSBundle
gm_AILabBundleBundle
];
bundle
=
[
NSBundle
gm_AILabBundleBundle
:
className
];
});
return
bundle
;
}
+
(
NSBundle
*
)
gm_AILabBundleBundle
{
return
[
self
bundleWithURL
:[
self
gm_AILabBundleURL
:
GMVerticalFlowLayout
.
class
]];
+
(
NSBundle
*
)
gm_AILabBundleBundle
:(
Class
)
className
{
return
[
self
bundleWithURL
:[
self
gm_AILabBundleURL
:
className
]];
}
+
(
NSURL
*
)
gm_AILabBundleURL
:
(
Class
)
class
{
NSBundle
*
bundle
=
[
NSBundle
bundleForClass
:
class
];
+
(
NSURL
*
)
gm_AILabBundleURL
:(
Class
)
class
Name
{
NSBundle
*
bundle
=
[
NSBundle
bundleForClass
:
class
Name
];
return
[
bundle
URLForResource
:
@"GMAILab"
withExtension
:
@"bundle"
];
}
...
...
GMAILab/Classes/Utils/UIImage+GMAILab.h
0 → 100644
View file @
9c75bccf
//
// UIImage+GMAILab.h
// Pods
//
// Created by cfy on 2020/4/30.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface
UIImage
(
GMAILab
)
+
(
UIImage
*
)
gm_AILabBundleImageNamed
:(
NSString
*
)
name
bundleClass
:(
Class
)
bundleClass
;
+
(
UIImage
*
)
gm_AILabImageNamed
:(
NSString
*
)
name
inBundle
:(
NSBundle
*
)
bundle
;
@end
NS_ASSUME_NONNULL_END
GMAILab/Classes/Utils/UIImage+GMAILab.m
0 → 100644
View file @
9c75bccf
//
// UIImage+GMAILab.m
// Pods
//
// Created by cfy on 2020/4/30.
//
#import "UIImage+GMAILab.h"
#import "NSBundle+GMAILab.h"
@implementation
UIImage
(
GMAILab
)
+
(
UIImage
*
)
gm_AILabBundleImageNamed
:(
NSString
*
)
name
bundleClass
:(
Class
)
bundleClass
{
return
[
self
gm_AILabImageNamed
:
name
inBundle
:[
NSBundle
gm_AILabBundle
:
bundleClass
]];
}
+
(
UIImage
*
)
gm_AILabImageNamed
:(
NSString
*
)
name
inBundle
:(
NSBundle
*
)
bundle
{
return
[
UIImage
imageNamed
:
name
inBundle
:
bundle
compatibleWithTraitCollection
:
nil
];
}
@end
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