Skip to content

Commit e5212f4

Browse files
committed
Update SDK
1 parent 4f3238d commit e5212f4

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

OneSkyOTADemo/OSAppDelegate.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2828
// Test OSLocalizedString calls
2929
NSLog(@"Monday = %@", OSLocalizedString(@"Monday", nil));
3030
NSLog(@"Tuesday = %@", OSLocalizedString(@"Tuesday", nil));
31+
32+
// Enable debug option, default is YES
33+
[OneSkyOTAPlugin setDebug:YES];
3134

3235
return YES;
3336
}

OneSkyOTADemo/OneSkyOTADemo-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.8.2</string>
20+
<string>0.8.4</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>0.8.2</string>
24+
<string>0.8.4</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>UIMainStoryboardFile</key>

OneSkyOTAPlugin.framework/Versions/A/Headers/OneSkyOTAPlugin.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
#define OSLocalizedStringFromTable(key, tbl, comment) \
1515
[OneSkyOTAPlugin localizedStringForKey:(key) value:@"" table:(tbl)]
1616

17-
#ifdef DEBUG
18-
// Comment out to disable debug log
19-
#define OTA_DEBUG
20-
#endif
21-
2217
/*
2318
This notification is sent when new translation data is available and
2419
downloaded, observe this notification and update IB accordingly.
@@ -75,4 +70,11 @@ extern NSString *const OneSkyOTAPluginTranslationsDidUpdateNotification;
7570
*/
7671
+ (void)deleteCache;
7772

73+
74+
/*!
75+
@abstract
76+
Set whether to show debug logs in console, default is YES
77+
*/
78+
+ (void)setDebug:(BOOL)debug;
79+
7880
@end
4.44 KB
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)