com.taptap.sdk.compliance 4.9.4 → 4.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Mobile/Editor/NativeDependencies.xml +2 -2
- package/Standalone/Resources/Prefabs/Standalone/TapTapChinaIDInputPanel.prefab +48 -6
- package/Standalone/Resources/Prefabs/Standalone/TapTapChinaQuickVerifyTipPanel.prefab +48 -6
- package/Standalone/Resources/Prefabs/Standalone/TapTapHealthPaymentPanel.prefab +46 -4
- package/Standalone/Resources/Prefabs/Standalone/TapTapHealthReminderPanel.prefab +47 -5
- package/Standalone/Runtime/Internal/UI/Controller/TapTapComplianceQuickVerifyTipController.cs +0 -24
- package/Standalone/Runtime/Internal/UI/Controller/TaptapComplianceHealthPaymentController.cs +0 -37
- package/Standalone/Runtime/Internal/UI/Controller/TaptapComplianceHealthReminderController.cs +0 -25
- package/Standalone/Runtime/Internal/UI/Controller/TaptapComplianceIDInputController.cs +0 -24
- package/package.json +4 -4
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<repositories>
|
|
5
5
|
<repository>https://repo.maven.apache.org/maven2</repository>
|
|
6
6
|
</repositories>
|
|
7
|
-
<androidPackage spec="com.taptap.sdk:tap-compliance:4.9.
|
|
7
|
+
<androidPackage spec="com.taptap.sdk:tap-compliance:4.9.5" />
|
|
8
8
|
</androidPackages>
|
|
9
9
|
<iosPods>
|
|
10
10
|
<sources>
|
|
11
11
|
<source>https://github.com/CocoaPods/Specs.git</source>
|
|
12
12
|
</sources>
|
|
13
|
-
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Compliance" version="4.9.
|
|
13
|
+
<iosPod addToAllTargets="false" bitcodeEnabled="false" name="TapTapSDK/Compliance" version="4.9.5" />
|
|
14
14
|
</iosPods>
|
|
15
15
|
</dependencies>
|
|
@@ -32,9 +32,9 @@ RectTransform:
|
|
|
32
32
|
m_Father: {fileID: 6246950521860096709}
|
|
33
33
|
m_RootOrder: 0
|
|
34
34
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
35
|
-
m_AnchorMin: {x: 0
|
|
36
|
-
m_AnchorMax: {x: 0
|
|
37
|
-
m_AnchoredPosition: {x:
|
|
35
|
+
m_AnchorMin: {x: 0, y: 0}
|
|
36
|
+
m_AnchorMax: {x: 0, y: 0}
|
|
37
|
+
m_AnchoredPosition: {x: 0, y: 0}
|
|
38
38
|
m_SizeDelta: {x: 520, y: 144}
|
|
39
39
|
m_Pivot: {x: 0, y: 1}
|
|
40
40
|
--- !u!222 &3954973391796633949
|
|
@@ -850,10 +850,10 @@ Canvas:
|
|
|
850
850
|
m_RenderMode: 2
|
|
851
851
|
m_Camera: {fileID: 0}
|
|
852
852
|
m_PlaneDistance: 100
|
|
853
|
-
m_PixelPerfect:
|
|
853
|
+
m_PixelPerfect: 1
|
|
854
854
|
m_ReceivesEvents: 1
|
|
855
855
|
m_OverrideSorting: 0
|
|
856
|
-
m_OverridePixelPerfect:
|
|
856
|
+
m_OverridePixelPerfect: 1
|
|
857
857
|
m_SortingBucketNormalizedSize: 0
|
|
858
858
|
m_AdditionalShaderChannelsFlag: 0
|
|
859
859
|
m_SortingLayerID: 0
|
|
@@ -1516,6 +1516,8 @@ GameObject:
|
|
|
1516
1516
|
serializedVersion: 6
|
|
1517
1517
|
m_Component:
|
|
1518
1518
|
- component: {fileID: 6246950521860096709}
|
|
1519
|
+
- component: {fileID: 5655668608917557192}
|
|
1520
|
+
- component: {fileID: 1558665275775688038}
|
|
1519
1521
|
m_Layer: 5
|
|
1520
1522
|
m_Name: Content
|
|
1521
1523
|
m_TagString: Untagged
|
|
@@ -1541,8 +1543,48 @@ RectTransform:
|
|
|
1541
1543
|
m_AnchorMin: {x: 0, y: 1}
|
|
1542
1544
|
m_AnchorMax: {x: 1, y: 1}
|
|
1543
1545
|
m_AnchoredPosition: {x: 0, y: 0}
|
|
1544
|
-
m_SizeDelta: {x: 0, y:
|
|
1546
|
+
m_SizeDelta: {x: 0, y: 0}
|
|
1545
1547
|
m_Pivot: {x: 0, y: 1}
|
|
1548
|
+
--- !u!114 &5655668608917557192
|
|
1549
|
+
MonoBehaviour:
|
|
1550
|
+
m_ObjectHideFlags: 0
|
|
1551
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
1552
|
+
m_PrefabInstance: {fileID: 0}
|
|
1553
|
+
m_PrefabAsset: {fileID: 0}
|
|
1554
|
+
m_GameObject: {fileID: 8534607850543630585}
|
|
1555
|
+
m_Enabled: 1
|
|
1556
|
+
m_EditorHideFlags: 0
|
|
1557
|
+
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
|
|
1558
|
+
m_Name:
|
|
1559
|
+
m_EditorClassIdentifier:
|
|
1560
|
+
m_Padding:
|
|
1561
|
+
m_Left: 10
|
|
1562
|
+
m_Right: 0
|
|
1563
|
+
m_Top: 10
|
|
1564
|
+
m_Bottom: 0
|
|
1565
|
+
m_ChildAlignment: 0
|
|
1566
|
+
m_Spacing: 0
|
|
1567
|
+
m_ChildForceExpandWidth: 1
|
|
1568
|
+
m_ChildForceExpandHeight: 1
|
|
1569
|
+
m_ChildControlWidth: 0
|
|
1570
|
+
m_ChildControlHeight: 0
|
|
1571
|
+
m_ChildScaleWidth: 0
|
|
1572
|
+
m_ChildScaleHeight: 0
|
|
1573
|
+
m_ReverseArrangement: 0
|
|
1574
|
+
--- !u!114 &1558665275775688038
|
|
1575
|
+
MonoBehaviour:
|
|
1576
|
+
m_ObjectHideFlags: 0
|
|
1577
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
1578
|
+
m_PrefabInstance: {fileID: 0}
|
|
1579
|
+
m_PrefabAsset: {fileID: 0}
|
|
1580
|
+
m_GameObject: {fileID: 8534607850543630585}
|
|
1581
|
+
m_Enabled: 1
|
|
1582
|
+
m_EditorHideFlags: 0
|
|
1583
|
+
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
|
1584
|
+
m_Name:
|
|
1585
|
+
m_EditorClassIdentifier:
|
|
1586
|
+
m_HorizontalFit: 0
|
|
1587
|
+
m_VerticalFit: 2
|
|
1546
1588
|
--- !u!1 &9122427629114257444
|
|
1547
1589
|
GameObject:
|
|
1548
1590
|
m_ObjectHideFlags: 0
|
|
@@ -379,10 +379,10 @@ RectTransform:
|
|
|
379
379
|
m_Father: {fileID: 2909549687173251875}
|
|
380
380
|
m_RootOrder: 0
|
|
381
381
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
382
|
-
m_AnchorMin: {x: 0
|
|
383
|
-
m_AnchorMax: {x: 0
|
|
384
|
-
m_AnchoredPosition: {x:
|
|
385
|
-
m_SizeDelta: {x:
|
|
382
|
+
m_AnchorMin: {x: 0, y: 0}
|
|
383
|
+
m_AnchorMax: {x: 0, y: 0}
|
|
384
|
+
m_AnchoredPosition: {x: 0, y: 0}
|
|
385
|
+
m_SizeDelta: {x: 510, y: 168.0859}
|
|
386
386
|
m_Pivot: {x: 0.5, y: 1}
|
|
387
387
|
--- !u!222 &3517167505041490502
|
|
388
388
|
CanvasRenderer:
|
|
@@ -525,6 +525,8 @@ GameObject:
|
|
|
525
525
|
serializedVersion: 6
|
|
526
526
|
m_Component:
|
|
527
527
|
- component: {fileID: 2909549687173251875}
|
|
528
|
+
- component: {fileID: 4948455782418100318}
|
|
529
|
+
- component: {fileID: 8338149693185132011}
|
|
528
530
|
m_Layer: 5
|
|
529
531
|
m_Name: Content
|
|
530
532
|
m_TagString: Untagged
|
|
@@ -550,8 +552,48 @@ RectTransform:
|
|
|
550
552
|
m_AnchorMin: {x: 0, y: 1}
|
|
551
553
|
m_AnchorMax: {x: 1, y: 1}
|
|
552
554
|
m_AnchoredPosition: {x: 0, y: 0}
|
|
553
|
-
m_SizeDelta: {x: 0, y:
|
|
555
|
+
m_SizeDelta: {x: 0, y: 0}
|
|
554
556
|
m_Pivot: {x: 0, y: 1}
|
|
557
|
+
--- !u!114 &4948455782418100318
|
|
558
|
+
MonoBehaviour:
|
|
559
|
+
m_ObjectHideFlags: 0
|
|
560
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
561
|
+
m_PrefabInstance: {fileID: 0}
|
|
562
|
+
m_PrefabAsset: {fileID: 0}
|
|
563
|
+
m_GameObject: {fileID: 3398107688352091037}
|
|
564
|
+
m_Enabled: 1
|
|
565
|
+
m_EditorHideFlags: 0
|
|
566
|
+
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
|
567
|
+
m_Name:
|
|
568
|
+
m_EditorClassIdentifier:
|
|
569
|
+
m_HorizontalFit: 0
|
|
570
|
+
m_VerticalFit: 2
|
|
571
|
+
--- !u!114 &8338149693185132011
|
|
572
|
+
MonoBehaviour:
|
|
573
|
+
m_ObjectHideFlags: 0
|
|
574
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
575
|
+
m_PrefabInstance: {fileID: 0}
|
|
576
|
+
m_PrefabAsset: {fileID: 0}
|
|
577
|
+
m_GameObject: {fileID: 3398107688352091037}
|
|
578
|
+
m_Enabled: 1
|
|
579
|
+
m_EditorHideFlags: 0
|
|
580
|
+
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
|
|
581
|
+
m_Name:
|
|
582
|
+
m_EditorClassIdentifier:
|
|
583
|
+
m_Padding:
|
|
584
|
+
m_Left: 10
|
|
585
|
+
m_Right: 0
|
|
586
|
+
m_Top: 10
|
|
587
|
+
m_Bottom: 0
|
|
588
|
+
m_ChildAlignment: 0
|
|
589
|
+
m_Spacing: 0
|
|
590
|
+
m_ChildForceExpandWidth: 1
|
|
591
|
+
m_ChildForceExpandHeight: 1
|
|
592
|
+
m_ChildControlWidth: 0
|
|
593
|
+
m_ChildControlHeight: 0
|
|
594
|
+
m_ChildScaleWidth: 0
|
|
595
|
+
m_ChildScaleHeight: 0
|
|
596
|
+
m_ReverseArrangement: 0
|
|
555
597
|
--- !u!1 &4569300236109915906
|
|
556
598
|
GameObject:
|
|
557
599
|
m_ObjectHideFlags: 0
|
|
@@ -1357,7 +1399,7 @@ MonoBehaviour:
|
|
|
1357
1399
|
m_PrefabInstance: {fileID: 0}
|
|
1358
1400
|
m_PrefabAsset: {fileID: 0}
|
|
1359
1401
|
m_GameObject: {fileID: 8476130096149045848}
|
|
1360
|
-
m_Enabled:
|
|
1402
|
+
m_Enabled: 1
|
|
1361
1403
|
m_EditorHideFlags: 0
|
|
1362
1404
|
m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3}
|
|
1363
1405
|
m_Name:
|
|
@@ -32,9 +32,9 @@ RectTransform:
|
|
|
32
32
|
m_Father: {fileID: 1376460305007362532}
|
|
33
33
|
m_RootOrder: 0
|
|
34
34
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
35
|
-
m_AnchorMin: {x: 0
|
|
36
|
-
m_AnchorMax: {x: 0
|
|
37
|
-
m_AnchoredPosition: {x: 0, y:
|
|
35
|
+
m_AnchorMin: {x: 0, y: 0}
|
|
36
|
+
m_AnchorMax: {x: 0, y: 0}
|
|
37
|
+
m_AnchoredPosition: {x: 0, y: 0}
|
|
38
38
|
m_SizeDelta: {x: 1040, y: 300}
|
|
39
39
|
m_Pivot: {x: 0.5, y: 0.5}
|
|
40
40
|
--- !u!222 &3954973391796633949
|
|
@@ -876,6 +876,8 @@ GameObject:
|
|
|
876
876
|
serializedVersion: 6
|
|
877
877
|
m_Component:
|
|
878
878
|
- component: {fileID: 1376460305007362532}
|
|
879
|
+
- component: {fileID: 7367184918637625018}
|
|
880
|
+
- component: {fileID: 6684828456690860380}
|
|
879
881
|
m_Layer: 5
|
|
880
882
|
m_Name: Content
|
|
881
883
|
m_TagString: Untagged
|
|
@@ -901,5 +903,45 @@ RectTransform:
|
|
|
901
903
|
m_AnchorMin: {x: 0, y: 1}
|
|
902
904
|
m_AnchorMax: {x: 1, y: 1}
|
|
903
905
|
m_AnchoredPosition: {x: 0, y: 0}
|
|
904
|
-
m_SizeDelta: {x: 0, y:
|
|
906
|
+
m_SizeDelta: {x: 0, y: 0}
|
|
905
907
|
m_Pivot: {x: 0, y: 1}
|
|
908
|
+
--- !u!114 &7367184918637625018
|
|
909
|
+
MonoBehaviour:
|
|
910
|
+
m_ObjectHideFlags: 0
|
|
911
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
912
|
+
m_PrefabInstance: {fileID: 0}
|
|
913
|
+
m_PrefabAsset: {fileID: 0}
|
|
914
|
+
m_GameObject: {fileID: 8510947007867534641}
|
|
915
|
+
m_Enabled: 1
|
|
916
|
+
m_EditorHideFlags: 0
|
|
917
|
+
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
|
918
|
+
m_Name:
|
|
919
|
+
m_EditorClassIdentifier:
|
|
920
|
+
m_HorizontalFit: 0
|
|
921
|
+
m_VerticalFit: 2
|
|
922
|
+
--- !u!114 &6684828456690860380
|
|
923
|
+
MonoBehaviour:
|
|
924
|
+
m_ObjectHideFlags: 0
|
|
925
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
926
|
+
m_PrefabInstance: {fileID: 0}
|
|
927
|
+
m_PrefabAsset: {fileID: 0}
|
|
928
|
+
m_GameObject: {fileID: 8510947007867534641}
|
|
929
|
+
m_Enabled: 1
|
|
930
|
+
m_EditorHideFlags: 0
|
|
931
|
+
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
|
|
932
|
+
m_Name:
|
|
933
|
+
m_EditorClassIdentifier:
|
|
934
|
+
m_Padding:
|
|
935
|
+
m_Left: 0
|
|
936
|
+
m_Right: 0
|
|
937
|
+
m_Top: 0
|
|
938
|
+
m_Bottom: 0
|
|
939
|
+
m_ChildAlignment: 0
|
|
940
|
+
m_Spacing: 0
|
|
941
|
+
m_ChildForceExpandWidth: 1
|
|
942
|
+
m_ChildForceExpandHeight: 1
|
|
943
|
+
m_ChildControlWidth: 0
|
|
944
|
+
m_ChildControlHeight: 0
|
|
945
|
+
m_ChildScaleWidth: 0
|
|
946
|
+
m_ChildScaleHeight: 0
|
|
947
|
+
m_ReverseArrangement: 0
|
|
@@ -175,6 +175,8 @@ GameObject:
|
|
|
175
175
|
serializedVersion: 6
|
|
176
176
|
m_Component:
|
|
177
177
|
- component: {fileID: 4806650311922228640}
|
|
178
|
+
- component: {fileID: 3031322335091851679}
|
|
179
|
+
- component: {fileID: 4081011805596831565}
|
|
178
180
|
m_Layer: 5
|
|
179
181
|
m_Name: Content
|
|
180
182
|
m_TagString: Untagged
|
|
@@ -200,8 +202,48 @@ RectTransform:
|
|
|
200
202
|
m_AnchorMin: {x: 0, y: 1}
|
|
201
203
|
m_AnchorMax: {x: 1, y: 1}
|
|
202
204
|
m_AnchoredPosition: {x: 0, y: 0}
|
|
203
|
-
m_SizeDelta: {x: 0, y:
|
|
205
|
+
m_SizeDelta: {x: 0, y: 0}
|
|
204
206
|
m_Pivot: {x: 0, y: 1}
|
|
207
|
+
--- !u!114 &3031322335091851679
|
|
208
|
+
MonoBehaviour:
|
|
209
|
+
m_ObjectHideFlags: 0
|
|
210
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
211
|
+
m_PrefabInstance: {fileID: 0}
|
|
212
|
+
m_PrefabAsset: {fileID: 0}
|
|
213
|
+
m_GameObject: {fileID: 2525790795551395681}
|
|
214
|
+
m_Enabled: 1
|
|
215
|
+
m_EditorHideFlags: 0
|
|
216
|
+
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
|
|
217
|
+
m_Name:
|
|
218
|
+
m_EditorClassIdentifier:
|
|
219
|
+
m_Padding:
|
|
220
|
+
m_Left: 10
|
|
221
|
+
m_Right: 10
|
|
222
|
+
m_Top: 0
|
|
223
|
+
m_Bottom: 0
|
|
224
|
+
m_ChildAlignment: 0
|
|
225
|
+
m_Spacing: 0
|
|
226
|
+
m_ChildForceExpandWidth: 1
|
|
227
|
+
m_ChildForceExpandHeight: 1
|
|
228
|
+
m_ChildControlWidth: 0
|
|
229
|
+
m_ChildControlHeight: 0
|
|
230
|
+
m_ChildScaleWidth: 0
|
|
231
|
+
m_ChildScaleHeight: 0
|
|
232
|
+
m_ReverseArrangement: 0
|
|
233
|
+
--- !u!114 &4081011805596831565
|
|
234
|
+
MonoBehaviour:
|
|
235
|
+
m_ObjectHideFlags: 0
|
|
236
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
237
|
+
m_PrefabInstance: {fileID: 0}
|
|
238
|
+
m_PrefabAsset: {fileID: 0}
|
|
239
|
+
m_GameObject: {fileID: 2525790795551395681}
|
|
240
|
+
m_Enabled: 1
|
|
241
|
+
m_EditorHideFlags: 0
|
|
242
|
+
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
|
243
|
+
m_Name:
|
|
244
|
+
m_EditorClassIdentifier:
|
|
245
|
+
m_HorizontalFit: 0
|
|
246
|
+
m_VerticalFit: 2
|
|
205
247
|
--- !u!1 &2614750717462274026
|
|
206
248
|
GameObject:
|
|
207
249
|
m_ObjectHideFlags: 0
|
|
@@ -790,10 +832,10 @@ RectTransform:
|
|
|
790
832
|
m_Father: {fileID: 4806650311922228640}
|
|
791
833
|
m_RootOrder: 0
|
|
792
834
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
793
|
-
m_AnchorMin: {x: 0
|
|
794
|
-
m_AnchorMax: {x: 0
|
|
795
|
-
m_AnchoredPosition: {x: 0, y:
|
|
796
|
-
m_SizeDelta: {x:
|
|
835
|
+
m_AnchorMin: {x: 0, y: 0}
|
|
836
|
+
m_AnchorMax: {x: 0, y: 0}
|
|
837
|
+
m_AnchoredPosition: {x: 0, y: 0}
|
|
838
|
+
m_SizeDelta: {x: 1020, y: 400}
|
|
797
839
|
m_Pivot: {x: 0.5, y: 0.5}
|
|
798
840
|
--- !u!222 &4070737897994074319
|
|
799
841
|
CanvasRenderer:
|
package/Standalone/Runtime/Internal/UI/Controller/TapTapComplianceQuickVerifyTipController.cs
CHANGED
|
@@ -86,35 +86,11 @@ namespace TapSDK.Compliance.Internal {
|
|
|
86
86
|
titleText.text = config.Title;
|
|
87
87
|
mainIntroText.text = config.Content.Replace(" ","\u00A0");//.Substring(0, index + + splitter.Length);
|
|
88
88
|
TapLog.Log("set mainIntro text = " + config.Content);
|
|
89
|
-
int lineCount;
|
|
90
|
-
float lineHeight;
|
|
91
|
-
if (IsTextOverflowing(mainIntroText, out lineCount, out lineHeight)) {
|
|
92
|
-
scrollRect.enabled = true;
|
|
93
|
-
mainIntroText.rectTransform.sizeDelta = new Vector2(mainIntroText.rectTransform.sizeDelta.x,
|
|
94
|
-
40 + (lineCount - 4) * lineHeight);
|
|
95
|
-
|
|
96
|
-
var contentRect = scrollRect.transform.Find("Viewport/Content").GetComponent<RectTransform>();
|
|
97
|
-
contentRect.sizeDelta = new Vector2(contentRect.sizeDelta.x,
|
|
98
|
-
40 + (lineCount - 4) * lineHeight);
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
scrollRect.enabled = false;
|
|
102
|
-
}
|
|
103
89
|
confirmBtn1Text.text = config.PositiveButtonText;
|
|
104
90
|
confirmBtn2Text.text = config.PositiveButtonText;
|
|
105
91
|
denyBtnText.text = config.NegativeButtonText;
|
|
106
92
|
}
|
|
107
93
|
}
|
|
108
94
|
|
|
109
|
-
bool IsTextOverflowing(Text text, out int lineCount, out float lineHeight)
|
|
110
|
-
{
|
|
111
|
-
var textGenerator = text.cachedTextGenerator;
|
|
112
|
-
var settings = text.GetGenerationSettings(text.rectTransform.rect.size);
|
|
113
|
-
textGenerator.Populate(text.text, settings);
|
|
114
|
-
lineCount = textGenerator.lineCount;
|
|
115
|
-
lineHeight = 15 + (text.lineSpacing - 1) * 15;
|
|
116
|
-
return textGenerator.lineCount > 6;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
95
|
}
|
|
120
96
|
}
|
package/Standalone/Runtime/Internal/UI/Controller/TaptapComplianceHealthPaymentController.cs
CHANGED
|
@@ -39,18 +39,6 @@ namespace TapSDK.Compliance.Internal
|
|
|
39
39
|
{
|
|
40
40
|
titleText.text = payable.Title;
|
|
41
41
|
contentText.text = ProcessContent(payable.Content);
|
|
42
|
-
if (IsTextOverflowing(contentText, out int lineCount, out float lineHeight)) {
|
|
43
|
-
scrollRect.enabled = true;
|
|
44
|
-
contentText.rectTransform.sizeDelta = new Vector2(contentText.rectTransform.sizeDelta.x,
|
|
45
|
-
80 + lineCount * lineHeight);
|
|
46
|
-
|
|
47
|
-
var contentRect = scrollRect.transform.Find("Viewport/Content").GetComponent<RectTransform>();
|
|
48
|
-
contentRect.sizeDelta = new Vector2(contentRect.sizeDelta.x,
|
|
49
|
-
80 + lineCount * lineHeight);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
scrollRect.enabled = false;
|
|
53
|
-
}
|
|
54
42
|
// var buttonText = Config.GetHealthTip();
|
|
55
43
|
// if (!string.IsNullOrEmpty(buttonText))
|
|
56
44
|
// this.buttonText.text = buttonText;
|
|
@@ -60,18 +48,6 @@ namespace TapSDK.Compliance.Internal
|
|
|
60
48
|
{
|
|
61
49
|
titleText.text = title;
|
|
62
50
|
contentText.text = ProcessContent(content);
|
|
63
|
-
if (IsTextOverflowing(contentText, out int lineCount, out float lineHeight)) {
|
|
64
|
-
scrollRect.enabled = true;
|
|
65
|
-
contentText.rectTransform.sizeDelta = new Vector2(contentText.rectTransform.sizeDelta.x,
|
|
66
|
-
80 + lineCount * lineHeight);
|
|
67
|
-
|
|
68
|
-
var contentRect = scrollRect.transform.Find("Viewport/Content").GetComponent<RectTransform>();
|
|
69
|
-
contentRect.sizeDelta = new Vector2(contentRect.sizeDelta.x,
|
|
70
|
-
80 + lineCount * lineHeight);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
scrollRect.enabled = false;
|
|
74
|
-
}
|
|
75
51
|
if (!string.IsNullOrEmpty(buttonText))
|
|
76
52
|
this.buttonText.text = buttonText;
|
|
77
53
|
_onOk = onOk;
|
|
@@ -87,18 +63,5 @@ namespace TapSDK.Compliance.Internal
|
|
|
87
63
|
Close();
|
|
88
64
|
_onOk?.Invoke();
|
|
89
65
|
}
|
|
90
|
-
|
|
91
|
-
bool IsTextOverflowing(Text text, out int lineCount, out float lineHeight)
|
|
92
|
-
{
|
|
93
|
-
var textGenerator = text.cachedTextGenerator;
|
|
94
|
-
var settings = text.GetGenerationSettings(text.rectTransform.rect.size);
|
|
95
|
-
textGenerator.Populate(text.text, settings);
|
|
96
|
-
lineCount = textGenerator.lineCount;
|
|
97
|
-
if (TapTapComplianceManager.IsUseMobileUI()) {
|
|
98
|
-
lineCount += 3;
|
|
99
|
-
}
|
|
100
|
-
lineHeight = 25 + (text.lineSpacing - 1) * 25;
|
|
101
|
-
return lineCount > 4;
|
|
102
|
-
}
|
|
103
66
|
}
|
|
104
67
|
}
|
package/Standalone/Runtime/Internal/UI/Controller/TaptapComplianceHealthReminderController.cs
CHANGED
|
@@ -78,18 +78,6 @@ namespace TapSDK.Compliance.Internal {
|
|
|
78
78
|
}
|
|
79
79
|
content = content.Replace(" ","\u00A0");
|
|
80
80
|
contentText.text = content.Replace(" ", "\u00A0");
|
|
81
|
-
if (IsTextOverflowing(contentText, out int lineCount, out float lineHeight)) {
|
|
82
|
-
scrollRect.enabled = true;
|
|
83
|
-
contentText.rectTransform.sizeDelta = new Vector2(contentText.rectTransform.sizeDelta.x,
|
|
84
|
-
lineCount * lineHeight);
|
|
85
|
-
|
|
86
|
-
var contentRect = scrollRect.transform.Find("Viewport/Content").GetComponent<RectTransform>();
|
|
87
|
-
contentRect.sizeDelta = new Vector2(contentRect.sizeDelta.x,
|
|
88
|
-
lineCount * lineHeight);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
scrollRect.enabled = false;
|
|
92
|
-
}
|
|
93
81
|
switchAccountButton.gameObject.SetActive(onSwitchAccount != null);
|
|
94
82
|
|
|
95
83
|
var buttonText = okButton.transform.Find("Text").GetComponent<Text>();
|
|
@@ -113,18 +101,5 @@ namespace TapSDK.Compliance.Internal {
|
|
|
113
101
|
Close();
|
|
114
102
|
OnSwitchAccount?.Invoke();
|
|
115
103
|
}
|
|
116
|
-
|
|
117
|
-
bool IsTextOverflowing(Text text, out int lineCount, out float lineHeight)
|
|
118
|
-
{
|
|
119
|
-
var textGenerator = text.cachedTextGenerator;
|
|
120
|
-
var settings = text.GetGenerationSettings(text.rectTransform.rect.size);
|
|
121
|
-
textGenerator.Populate(text.text, settings);
|
|
122
|
-
lineCount = textGenerator.lineCount;
|
|
123
|
-
if (TapTapComplianceManager.IsUseMobileUI()) {
|
|
124
|
-
lineCount += 3;
|
|
125
|
-
}
|
|
126
|
-
lineHeight = 25 + (text.lineSpacing - 1) * 25;
|
|
127
|
-
return lineCount > 5;
|
|
128
|
-
}
|
|
129
104
|
}
|
|
130
105
|
}
|
|
@@ -82,20 +82,6 @@ namespace TapSDK.Compliance.Internal
|
|
|
82
82
|
{
|
|
83
83
|
titleText.text = config.Title;
|
|
84
84
|
descriptionText.text = config.Content.Replace(" ", "\u00A0");
|
|
85
|
-
if (IsTextOverflowing(descriptionText, out int lineCount, out float lineHeight))
|
|
86
|
-
{
|
|
87
|
-
scrollRect.enabled = true;
|
|
88
|
-
descriptionText.rectTransform.sizeDelta = new Vector2(descriptionText.rectTransform.sizeDelta.x,
|
|
89
|
-
40 + (lineCount - 3) * lineHeight);
|
|
90
|
-
|
|
91
|
-
var contentRect = scrollRect.transform.Find("Viewport/Content").GetComponent<RectTransform>();
|
|
92
|
-
contentRect.sizeDelta = new Vector2(contentRect.sizeDelta.x,
|
|
93
|
-
40 + (lineCount - 3) * lineHeight);
|
|
94
|
-
}
|
|
95
|
-
else
|
|
96
|
-
{
|
|
97
|
-
scrollRect.enabled = false;
|
|
98
|
-
}
|
|
99
85
|
buttonText.text = config.PositiveButtonText;
|
|
100
86
|
}
|
|
101
87
|
|
|
@@ -237,15 +223,5 @@ namespace TapSDK.Compliance.Internal
|
|
|
237
223
|
// return true;
|
|
238
224
|
}
|
|
239
225
|
|
|
240
|
-
bool IsTextOverflowing(Text text, out int lineCount, out float lineHeight)
|
|
241
|
-
{
|
|
242
|
-
var textGenerator = text.cachedTextGenerator;
|
|
243
|
-
var settings = text.GetGenerationSettings(text.rectTransform.rect.size);
|
|
244
|
-
textGenerator.Populate(text.text, settings);
|
|
245
|
-
lineCount = textGenerator.lineCount + 3;
|
|
246
|
-
lineHeight = 15 + (text.lineSpacing - 1) * 15;
|
|
247
|
-
return lineCount > 3;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
226
|
}
|
|
251
227
|
}
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "com.taptap.sdk.compliance",
|
|
3
3
|
"displayName": "TapTapSDK Compliance",
|
|
4
4
|
"description": "TapTapSDK Compliance",
|
|
5
|
-
"version": "4.9.
|
|
6
|
-
"unity": "
|
|
5
|
+
"version": "4.9.5",
|
|
6
|
+
"unity": "2019.4",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.taptap.sdk.core": "4.9.
|
|
10
|
-
"com.taptap.sdk.login": "4.9.
|
|
9
|
+
"com.taptap.sdk.core": "4.9.5",
|
|
10
|
+
"com.taptap.sdk.login": "4.9.5"
|
|
11
11
|
}
|
|
12
12
|
}
|