Skip to content

Commit c128822

Browse files
author
CyJaySong
committed
update sdk
1 parent fc03696 commit c128822

File tree

13 files changed

+30
-29
lines changed

13 files changed

+30
-29
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.0.5
2+
3+
- update sdk.
4+
- 升级 SDK
5+
16
## 0.0.4
27

38
- update sdk.

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ android {
4545

4646
dependencies {
4747
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
48-
implementation files('libs/QWeather_Public_Android_V4.5.jar')
49-
compile 'com.squareup.okhttp3:okhttp:3.9.0+'
50-
compile 'com.google.code.gson:gson:2.6.2+'
48+
implementation fileTree(dir: 'libs', include: ['*.jar'])
49+
implementation 'com.squareup.okhttp3:okhttp:3.9.0+'
50+
implementation 'com.google.code.gson:gson:2.6.2+'
5151
}
212 KB
Binary file not shown.

ios/QWeather.framework/Headers/AllWeatherInquieirs.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ typedef NS_ENUM(NSInteger, BASIN_TYPE) {
117117
BASIN_TYPE_SI,//南印度洋
118118
};
119119

120-
UIKIT_EXTERN NSString * const INDICES_TYPESTRING[];
121-
122120
typedef NS_ENUM(NSInteger, SERCHMODE_TYPE) {
123121
SERCHMODE_TYPE_EXACT= 0,//精准查询
124122
SERCHMODE_TYPE_FUZZY = 1,//模糊搜索
@@ -261,11 +259,11 @@ typedef NS_ENUM(NSInteger, SERCHMODE_TYPE) {
261259

262260
/**
263261
生活指数数据类型,包括洗车指数、穿衣指数、钓鱼指数等。可以一次性获取多个类型的生活指数.
264-
indices内 放入需要的INDICES_TYPESTRING类型,默认indices = @[INDICES_TYPESTRING[INDICES_TYPE_comf]]
262+
indices内 放入需要的NSNumber类型,默认indices = @[[NSNumber numberWithInt:INDICES_TYPE_comf]]
265263
266264
具体生活指数的类型参数值如下:
267265
*/
268-
@property (nonatomic, strong) NSArray *indices;
266+
@property (nonatomic, strong) NSArray<NSNumber *> *indices;
269267

270268
/**
271269
选择POI所在城市,可设定只搜索在特定城市内的POI信息。城市名称可以是中文、英文或城市的LocationID。默认全世界范围。

ios/QWeather.framework/Headers/QWeather.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FOUNDATION_EXPORT const unsigned char QWeatherVersionString[];
1717
// #import <QWeather/QWeather.h>
1818

1919

20-
/* 当前版本 2021-05-17 4.4 */
20+
/* 当前版本 2021-07-20 4.5 */
2121

2222
/**
2323
* 写在前面的(废)话

ios/QWeather.framework/Info.plist

-1 Bytes
Binary file not shown.

ios/QWeather.framework/QWeather

-1.58 MB
Binary file not shown.

ios/flutter_qweather.podspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ A qweather Flutter plugin.
2424

2525
# Flutter.framework does not contain a i386 slice.
2626
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
27-
s.swift_version = '5.0'
2827
end
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mixin _Geo on _ServiceApi {
1010
"range": range.isEmpty ? 'world' : range,
1111
"number": Platform.isAndroid ? number : number.toString()
1212
};
13-
Map? value = await methodChannel.invokeMapMethod(
13+
Map? value = await _methodChannel.invokeMapMethod(
1414
MethodConstants.GeoCityLookup, param);
1515
return value == null ? null : GeoPoiLocationResp.fromMap(value);
1616
}
@@ -22,7 +22,7 @@ mixin _Geo on _ServiceApi {
2222
"range": range.isEmpty ? 'world' : range,
2323
"number": Platform.isAndroid ? number : number.toString()
2424
};
25-
Map? value = await methodChannel.invokeMapMethod(
25+
Map? value = await _methodChannel.invokeMapMethod(
2626
MethodConstants.GetGeoTopCity, param);
2727
return value == null ? null : GeoPoiLocationResp.fromMap(value);
2828
}
@@ -47,7 +47,7 @@ mixin _Geo on _ServiceApi {
4747
// param["type"] = "TSTA";
4848
// break;
4949
// }
50-
Map? value = await methodChannel.invokeMapMethod(
50+
Map? value = await _methodChannel.invokeMapMethod(
5151
MethodConstants.GeoPoiLookup, param);
5252
return value == null ? null : GeoPoiLocationResp.fromMap(value);
5353
}
@@ -72,7 +72,7 @@ mixin _Geo on _ServiceApi {
7272
// param["type"] = "TSTA";
7373
// break;
7474
// }
75-
Map? value = await methodChannel.invokeMapMethod(
75+
Map? value = await _methodChannel.invokeMapMethod(
7676
MethodConstants.GeoPoiRangeLookup, param);
7777
return value == null ? null : GeoPoiLocationResp.fromMap(value);
7878
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ mixin _Indices on _ServiceApi {
1313
"location": location,
1414
"indicesTypes": indicesTypes.map((e) => e.code).toList()
1515
};
16-
Map? value = await methodChannel.invokeMapMethod(
16+
Map? value = await _methodChannel.invokeMapMethod(
1717
MethodConstants.GetIndices1Day, param);
1818
return value == null ? null : DailyIndicesResp.fromMap(value);
1919
}
@@ -29,7 +29,7 @@ mixin _Indices on _ServiceApi {
2929
"location": location,
3030
"indicesTypes": indicesTypes.map((e) => e.code).toList()
3131
};
32-
Map? value = await methodChannel.invokeMapMethod(
32+
Map? value = await _methodChannel.invokeMapMethod(
3333
MethodConstants.GetIndices3Day, param);
3434
return value == null ? null : DailyIndicesResp.fromMap(value);
3535
}

0 commit comments

Comments
 (0)