iOS版本
This commit is contained in:
parent
e9ee3e9c02
commit
dc6795e00e
@ -524,7 +524,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 160;
|
CURRENT_PROJECT_VERSION = 100;
|
||||||
DEVELOPMENT_TEAM = S9YG87C297;
|
DEVELOPMENT_TEAM = S9YG87C297;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
@ -533,7 +533,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.6.0;
|
MARKETING_VERSION = 1.0.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.org.yumiparty;
|
PRODUCT_BUNDLE_IDENTIFIER = com.org.yumiparty;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@ -715,7 +715,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = Runner/RunnerDebug.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/RunnerDebug.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 160;
|
CURRENT_PROJECT_VERSION = 100;
|
||||||
DEVELOPMENT_TEAM = S9YG87C297;
|
DEVELOPMENT_TEAM = S9YG87C297;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
@ -724,7 +724,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.6.0;
|
MARKETING_VERSION = 1.0.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.org.yumiparty;
|
PRODUCT_BUNDLE_IDENTIFIER = com.org.yumiparty;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@ -744,7 +744,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "Apple Development";
|
CODE_SIGN_IDENTITY = "Apple Development";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 160;
|
CURRENT_PROJECT_VERSION = 100;
|
||||||
DEVELOPMENT_TEAM = S9YG87C297;
|
DEVELOPMENT_TEAM = S9YG87C297;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = Runner/Info.plist;
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
@ -753,7 +753,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.6.0;
|
MARKETING_VERSION = 1.0.0;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.org.yumiparty;
|
PRODUCT_BUNDLE_IDENTIFIER = com.org.yumiparty;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
|||||||
@ -31,8 +31,8 @@
|
|||||||
<string>yumi</string>
|
<string>yumi</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>$(FLUTTER_BUILD_NAME)</string>
|
<string>1.0.0</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
@ -56,8 +56,8 @@
|
|||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
<string>100</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSCameraUsageDescription</key>
|
<key>NSCameraUsageDescription</key>
|
||||||
|
|||||||
@ -1761,6 +1761,42 @@ class _GiftPageState extends State<GiftPage> with TickerProviderStateMixin {
|
|||||||
'hasFullScreenEffect=$hasFullScreenEffect '
|
'hasFullScreenEffect=$hasFullScreenEffect '
|
||||||
'effectsEnabled=${SCGlobalConfig.isGiftSpecialEffects}',
|
'effectsEnabled=${SCGlobalConfig.isGiftSpecialEffects}',
|
||||||
);
|
);
|
||||||
|
if (gift.giftSourceUrl != null && gift.special != null) {
|
||||||
|
if (scGiftHasFullScreenEffect(gift.special)) {
|
||||||
|
if (SCGlobalConfig.allowsHighCostAnimations &&
|
||||||
|
SCGlobalConfig.isGiftSpecialEffects &&
|
||||||
|
(rtcProvider?.shouldShowRoomVisualEffects ?? false)) {
|
||||||
|
_giftFxLog(
|
||||||
|
'local trigger player play '
|
||||||
|
'path=${gift.giftSourceUrl} '
|
||||||
|
'giftId=${gift.id} '
|
||||||
|
'giftName=${gift.giftName} '
|
||||||
|
'animationCount=$animationCount',
|
||||||
|
);
|
||||||
|
SCGiftVapSvgaManager().play(gift.giftSourceUrl!);
|
||||||
|
} else {
|
||||||
|
_giftFxLog(
|
||||||
|
'skip local play because visual effects disabled '
|
||||||
|
'giftId=${gift.id} '
|
||||||
|
'isGiftSpecialEffects=${SCGlobalConfig.isGiftSpecialEffects} '
|
||||||
|
'roomVisible=${rtcProvider?.shouldShowRoomVisualEffects ?? false}',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
_giftFxLog(
|
||||||
|
'skip local play because special does not include '
|
||||||
|
'${SCGiftType.ANIMSCION.name}/$kSCGiftAnimationSpecialAlias/${SCGiftType.GLOBAL_GIFT.name} '
|
||||||
|
'giftId=${gift.id} special=${gift.special}',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
_giftFxLog(
|
||||||
|
'skip local play because giftSourceUrl or special is null '
|
||||||
|
'giftId=${gift.id} '
|
||||||
|
'giftSourceUrl=${gift.giftSourceUrl} '
|
||||||
|
'special=${gift.special}',
|
||||||
|
);
|
||||||
|
}
|
||||||
Provider.of<RtmProvider>(
|
Provider.of<RtmProvider>(
|
||||||
navigatorKey.currentState!.context,
|
navigatorKey.currentState!.context,
|
||||||
listen: false,
|
listen: false,
|
||||||
@ -1826,42 +1862,6 @@ class _GiftPageState extends State<GiftPage> with TickerProviderStateMixin {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (gift.giftSourceUrl != null && gift.special != null) {
|
|
||||||
if (scGiftHasFullScreenEffect(gift.special)) {
|
|
||||||
if (SCGlobalConfig.allowsHighCostAnimations &&
|
|
||||||
SCGlobalConfig.isGiftSpecialEffects &&
|
|
||||||
(rtcProvider?.shouldShowRoomVisualEffects ?? false)) {
|
|
||||||
_giftFxLog(
|
|
||||||
'local trigger player play '
|
|
||||||
'path=${gift.giftSourceUrl} '
|
|
||||||
'giftId=${gift.id} '
|
|
||||||
'giftName=${gift.giftName} '
|
|
||||||
'animationCount=$animationCount',
|
|
||||||
);
|
|
||||||
SCGiftVapSvgaManager().play(gift.giftSourceUrl!);
|
|
||||||
} else {
|
|
||||||
_giftFxLog(
|
|
||||||
'skip local play because visual effects disabled '
|
|
||||||
'giftId=${gift.id} '
|
|
||||||
'isGiftSpecialEffects=${SCGlobalConfig.isGiftSpecialEffects} '
|
|
||||||
'roomVisible=${rtcProvider?.shouldShowRoomVisualEffects ?? false}',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
_giftFxLog(
|
|
||||||
'skip local play because special does not include '
|
|
||||||
'${SCGiftType.ANIMSCION.name}/$kSCGiftAnimationSpecialAlias/${SCGiftType.GLOBAL_GIFT.name} '
|
|
||||||
'giftId=${gift.id} special=${gift.special}',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
_giftFxLog(
|
|
||||||
'skip local play because giftSourceUrl or special is null '
|
|
||||||
'giftId=${gift.id} '
|
|
||||||
'giftSourceUrl=${gift.giftSourceUrl} '
|
|
||||||
'special=${gift.special}',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -727,35 +727,43 @@ class _VoiceRoomPageState extends State<VoiceRoomPage>
|
|||||||
targetGroupKey == null ||
|
targetGroupKey == null ||
|
||||||
_markGiftVisualBatchForPlayback(msg, targetGroupKey);
|
_markGiftVisualBatchForPlayback(msg, targetGroupKey);
|
||||||
if (shouldPlayBatchVisuals) {
|
if (shouldPlayBatchVisuals) {
|
||||||
var giftModel = LGiftModel();
|
SCRoomEffectScheduler().scheduleDeferredEffect(
|
||||||
giftModel.labelId = _buildGiftTickerLabelId(msg, targetGroupKey);
|
debugLabel: 'room_gift_ticker_${msg.type}_${msg.gift?.id ?? ""}',
|
||||||
giftModel.sendUserName = msg.user?.userNickname ?? "";
|
action: () {
|
||||||
giftModel.sendToUserName = _resolveGiftTickerTargetName(
|
if (!mounted) {
|
||||||
msg,
|
return;
|
||||||
targetUserIds,
|
}
|
||||||
|
var giftModel = LGiftModel();
|
||||||
|
giftModel.labelId = _buildGiftTickerLabelId(msg, targetGroupKey);
|
||||||
|
giftModel.sendUserName = msg.user?.userNickname ?? "";
|
||||||
|
giftModel.sendToUserName = _resolveGiftTickerTargetName(
|
||||||
|
msg,
|
||||||
|
targetUserIds,
|
||||||
|
);
|
||||||
|
giftModel.sendUserPic = msg.user?.userAvatar ?? "";
|
||||||
|
giftModel.giftPic = msg.gift?.giftPhoto ?? "";
|
||||||
|
giftModel.giftCount = msg.number ?? 0;
|
||||||
|
giftModel.giftCountStepUnit = _resolveGiftCountStepUnit(msg);
|
||||||
|
unawaited(
|
||||||
|
warmImageResource(
|
||||||
|
giftModel.sendUserPic,
|
||||||
|
logicalWidth: 26.w,
|
||||||
|
logicalHeight: 26.w,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
unawaited(
|
||||||
|
warmImageResource(
|
||||||
|
giftModel.giftPic,
|
||||||
|
logicalWidth: 34.w,
|
||||||
|
logicalHeight: 34.w,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
Provider.of<GiftAnimationManager>(
|
||||||
|
context,
|
||||||
|
listen: false,
|
||||||
|
).enqueueGiftAnimation(giftModel);
|
||||||
|
},
|
||||||
);
|
);
|
||||||
giftModel.sendUserPic = msg.user?.userAvatar ?? "";
|
|
||||||
giftModel.giftPic = msg.gift?.giftPhoto ?? "";
|
|
||||||
giftModel.giftCount = msg.number ?? 0;
|
|
||||||
giftModel.giftCountStepUnit = _resolveGiftCountStepUnit(msg);
|
|
||||||
unawaited(
|
|
||||||
warmImageResource(
|
|
||||||
giftModel.sendUserPic,
|
|
||||||
logicalWidth: 26.w,
|
|
||||||
logicalHeight: 26.w,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
unawaited(
|
|
||||||
warmImageResource(
|
|
||||||
giftModel.giftPic,
|
|
||||||
logicalWidth: 34.w,
|
|
||||||
logicalHeight: 34.w,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
Provider.of<GiftAnimationManager>(
|
|
||||||
context,
|
|
||||||
listen: false,
|
|
||||||
).enqueueGiftAnimation(giftModel);
|
|
||||||
} else {
|
} else {
|
||||||
debugPrint(
|
debugPrint(
|
||||||
'[GiftFx][voice] skip gift ticker by visual batch dedupe '
|
'[GiftFx][voice] skip gift ticker by visual batch dedupe '
|
||||||
|
|||||||
@ -85,13 +85,13 @@ class OverlayManager {
|
|||||||
SCFloatingMessage message, {
|
SCFloatingMessage message, {
|
||||||
required String debugLabel,
|
required String debugLabel,
|
||||||
}) {
|
}) {
|
||||||
unawaited(_warmMessageImages(message));
|
|
||||||
SCRoomEffectScheduler().scheduleDeferredEffect(
|
SCRoomEffectScheduler().scheduleDeferredEffect(
|
||||||
debugLabel: debugLabel,
|
debugLabel: debugLabel,
|
||||||
action: () {
|
action: () {
|
||||||
if (_isDisposed || _isSuppressed) {
|
if (_isDisposed || _isSuppressed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
unawaited(_warmMessageImages(message));
|
||||||
_messageQueue.add(message);
|
_messageQueue.add(message);
|
||||||
_safeScheduleNext();
|
_safeScheduleNext();
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user