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

View File

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

View File

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

View File

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