This commit is contained in:
建喵 2022-08-26 17:00:42 +08:00
parent d9c19f096c
commit 32f7395db5
5 changed files with 8 additions and 12 deletions

View File

@ -823,7 +823,7 @@
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x/external/ios/libs";
MARKETING_VERSION = 2.0;
MARKETING_VERSION = 2.1;
OTHER_LDFLAGS = (
"-ObjC",
"$(inherited)",
@ -873,7 +873,7 @@
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "$(SRCROOT)/../../cocos2d-x/external/ios/libs";
MARKETING_VERSION = 2.0;
MARKETING_VERSION = 2.1;
OTHER_LDFLAGS = (
"-ObjC",
"$(inherited)",

View File

@ -35,7 +35,7 @@
+ (void) JSBridge:(NSString *)value1 value2:(NSString *)value2;
+ (NSString*) getIntent;
+ (void) FirebaseGetToken;
+ (NSString*) GetFCMToken;
+ (void) TTS_Play:(NSString *) msg;
@property(nonatomic, readonly) RootViewController* viewController;

View File

@ -233,14 +233,10 @@ std::string IsStart = "0";
#pragma mark- FireBase
+ (void) FirebaseGetToken {
+ (NSString*) GetFCMToken {
NSString *fcmToken = [Firebase_OC FcmToken];
// 呼叫JS的window.JSBridge
std::string value = std::string([fcmToken UTF8String]);
std::string jsCallStr = cocos2d::StringUtils::format("Firebase_log(\"%s\");", value.c_str());
se::Value *ret = new se::Value();
se::ScriptEngine::getInstance()->evalString(jsCallStr.c_str() , -1 , ret);
return [NSString stringWithUTF8String:value.c_str()];
}
#pragma mark- TTS

View File

@ -3,9 +3,9 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<string>zh_TW</string>
<key>CFBundleDisplayName</key>
<string>建喵記帳</string>
<string>卡羅記帳</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>