Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 36c41177
authored
2026-02-05 16:32:39 +0800
by
Administrator
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
推送测试
1 parent
ec942b2b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
3 deletions
README.md
ios/Runner.xcodeproj/project.pbxproj
ios/Runner/AppDelegate.swift
ios/Runner/RunnerProfile.entitlements
lib/config/constant.dart
README.md
View file @
36c4117
...
@@ -9,8 +9,12 @@ flutter run -d macos
...
@@ -9,8 +9,12 @@ flutter run -d macos
flutter run -d 00008030-001C75810E42402E --release
flutter run -d 00008030-001C75810E42402E --release
flutter run -d 00008030-001C75810E42402E --dart-define=env=dev --dart-define=version=1.0.0205
flutter run -d 00008140-001068C93AB8801C --release --dart-define=env=pro
flutter run -d 00008140-001068C93AB8801C --release --dart-define=env=pro
flutter run -d 00008140-001068C93AB8801C --dart-define=env=dev --dart-define=version=1.0.0205
flutter run -d c165c6eb6ae36f56bf23091342bfd4641dc2a9f0 --release --dart-define=env=dev --dart-define=version=1.0.21
flutter run -d c165c6eb6ae36f56bf23091342bfd4641dc2a9f0 --release --dart-define=env=dev --dart-define=version=1.0.21
ipad air
ipad air
...
...
ios/Runner.xcodeproj/project.pbxproj
View file @
36c4117
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
9A5019F25CF19E1678164379 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
9A5019F25CF19E1678164379 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
B2450CB3B5E968BD7CC513E6 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
B2450CB3B5E968BD7CC513E6 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D900F592122DCCA6D37CEE01 /* Runner.entitlements */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
D900F592122DCCA6D37CEE01 /* Runner.entitlements */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
DC07F8F62F347DCF00949AFA /* RunnerProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RunnerProfile.entitlements; sourceTree = "<group>"; };
DC39D7842EFB981B00D795A8 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Main.strings"; sourceTree = "<group>"; };
DC39D7842EFB981B00D795A8 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Main.strings"; sourceTree = "<group>"; };
DC39D7852EFB981B00D795A8 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
DC39D7852EFB981B00D795A8 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
DC39D7862EFB985300D795A8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Base; path = Base.lproj/Info.plist; sourceTree = "<group>"; };
DC39D7862EFB985300D795A8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Base; path = Base.lproj/Info.plist; sourceTree = "<group>"; };
...
@@ -135,6 +136,7 @@
...
@@ -135,6 +136,7 @@
97C146F01CF9000F007C117D /* Runner */ = {
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
isa = PBXGroup;
children = (
children = (
DC07F8F62F347DCF00949AFA /* RunnerProfile.entitlements */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
...
@@ -509,7 +511,7 @@
...
@@ -509,7 +511,7 @@
buildSettings = {
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_ENTITLEMENTS = Runner/Runner
Profile
.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
...
...
ios/Runner/AppDelegate.swift
View file @
36c4117
import
UIKit
import
UIKit
import
Flutter
import
Flutter
// Add these two import lines
import
TIMPush
import
tencent_cloud_chat_push
@main
@main
@objc
class
AppDelegate
:
FlutterAppDelegate
{
@objc
class
AppDelegate
:
FlutterAppDelegate
,
TIMPushDelegate
{
private
var
edgePanRecognizer
:
UIScreenEdgePanGestureRecognizer
?
private
var
edgePanRecognizer
:
UIScreenEdgePanGestureRecognizer
?
private
var
methodChannel
:
FlutterMethodChannel
?
private
var
methodChannel
:
FlutterMethodChannel
?
...
@@ -57,6 +61,30 @@ import Flutter
...
@@ -57,6 +61,30 @@ import Flutter
print
(
"👈 左边缘滑动检测到!已通知 Flutter"
)
print
(
"👈 左边缘滑动检测到!已通知 Flutter"
)
}
}
}
}
// To be deprecated,please use the new field businessID below.
@objc
func
offlinePushCertificateID
()
->
Int32
{
return
TencentCloudChatPushFlutterModal
.
shared
.
offlinePushCertificateID
();
}
// Add this function
@objc
func
businessID
()
->
Int32
{
return
TencentCloudChatPushFlutterModal
.
shared
.
businessID
();
}
// Add this function
@objc
func
applicationGroupID
()
->
String
{
return
TencentCloudChatPushFlutterModal
.
shared
.
applicationGroupID
()
}
// Add this function
@objc
func
onRemoteNotificationReceived
(
_
notice
:
String
?)
->
Bool
{
TencentCloudChatPushPlugin
.
shared
.
tryNotifyDartOnNotificationClickEvent
(
notice
)
return
true
}
}
}
// 可选:防止冲突的手势识别设置
// 可选:防止冲突的手势识别设置
...
...
ios/Runner/RunnerProfile.entitlements
0 → 100644
View file @
36c4117
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist
version=
"1.0"
>
<dict>
<key>
aps-environment
</key>
<string>
development
</string>
<key>
com.apple.developer.applesignin
</key>
<array>
<string>
Default
</string>
</array>
<key>
com.apple.developer.associated-domains
</key>
<array>
<string>
applinks:dev.banxiaoer.net
</string>
</array>
</dict>
</plist>
lib/config/constant.dart
View file @
36c4117
...
@@ -102,6 +102,6 @@ class Constant {
...
@@ -102,6 +102,6 @@ class Constant {
static
const
String
classIdSetKey
=
'auth_class_ids'
;
static
const
String
classIdSetKey
=
'auth_class_ids'
;
/// 测试阶段使用
/// 测试阶段使用
static
const
bool
needIM
=
fals
e
;
static
const
bool
needIM
=
tru
e
;
static
const
bool
needUpgrade
=
true
;
static
const
bool
needUpgrade
=
true
;
}
}
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment