Browse Source

commit missing changes.

Frank 4 years ago
parent
commit
84a1e7e70a
3 changed files with 3 additions and 4 deletions
  1. 1 1
      MJRefresh.podspec
  2. 1 2
      MJRefresh/NSBundle+MJRefresh.m
  3. 1 1
      README.md

+ 1 - 1
MJRefresh.podspec

@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
     s.name         = 'MJRefresh'
-    s.version      = '3.7.0'
+    s.version      = '3.7.1'
     s.summary      = 'An easy way to use pull-to-refresh'
     s.homepage     = 'https://github.com/CoderMJLee/MJRefresh'
     s.license      = 'MIT'

+ 1 - 2
MJRefresh/NSBundle+MJRefresh.m

@@ -18,12 +18,11 @@ + (instancetype)mj_refreshBundle
 {
     static NSBundle *refreshBundle = nil;
     if (refreshBundle == nil) {
-#ifdef MJ_USEING_SPM
+#ifdef MJ_SPM
         NSBundle *containnerBundle = SWIFTPM_MODULE_BUNDLE;
 #else
         NSBundle *containnerBundle = [NSBundle bundleForClass:[MJRefreshComponent class]];
 #endif
-        // 这里不使用mainBundle是为了适配pod 1.x和0.x
         refreshBundle = [NSBundle bundleWithPath:[containnerBundle pathForResource:@"MJRefresh" ofType:@"bundle"]];
     }
     return refreshBundle;

+ 1 - 1
README.md

@@ -96,7 +96,7 @@ override func i18nDidChange() {
 
 ### <a id="spm_supported"></a>SPM Supported
 
-Released from [`3.7.0`](https://github.com/CoderMJLee/MJRefresh/releases/tag/3.7.0)
+Released from [`3.7.1`](https://github.com/CoderMJLee/MJRefresh/releases/tag/3.7.1)
 
 ### <a id="swift_chaining_grammar_supported"></a>Swift Chaining Grammar Supported