Merge commit '7621e2f8dec938cf48181c8b10afc9b01f444e68' into beta

This commit is contained in:
Ilya Laktyushin
2025-12-06 02:17:48 +04:00
commit 8344b97e03
28070 changed files with 7995182 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
fastlane/README.md
fastlane/report.xml
fastlane/test_output/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.xcscmblueprint
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
.DS_Store
*.dSYM
*.dSYM.zip
*.ipa
*/xcuserdata/*
LegacyComponents.xcodeproj/*
+54
View File
@@ -0,0 +1,54 @@
filegroup(
name = "LegacyComponentsResources",
srcs = glob([
"Resources/LegacyComponentsResources.bundle/**/*",
], exclude = ["Resources/LegacyComponentsResources.bundle/**/.*"]),
visibility = ["//visibility:public"],
)
filegroup(
name = "LegacyComponentsAssets",
srcs = glob(["LegacyImages.xcassets/**"]),
visibility = ["//visibility:public"],
)
objc_library(
name = "LegacyComponents",
enable_modules = True,
module_name = "LegacyComponents",
srcs = glob([
"Sources/*.m",
"Sources/*.mm",
"Sources/*.c",
"Sources/*.cpp",
"Sources/*.h",
]),
hdrs = glob([
"PublicHeaders/**/*.h",
]),
copts = [
"-Werror",
],
includes = [
"PublicHeaders",
],
deps = [
"//submodules/SSignalKit/SSignalKit:SSignalKit",
"//submodules/AppBundle:AppBundle",
],
sdk_frameworks = [
"Foundation",
"UIKIt",
"QuickLook",
"CoreMotion",
],
weak_sdk_frameworks = [
"Vision",
"PhotosUI",
],
visibility = [
"//visibility:public",
],
)
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_cam_close.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,9 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"provides-namespace" : true
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_cam_flashon (1).pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_cam_flip.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_addsticker.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_addtext.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_tools.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "more.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,79 @@
%PDF-1.7
1 0 obj
<< >>
endobj
2 0 obj
<< /Length 3 0 R >>
stream
/DeviceRGB CS
/DeviceRGB cs
q
1.000000 0.000000 -0.000000 1.000000 1.500000 1.335754 cm
0.000000 0.000000 0.000000 scn
5.252930 4.662109 m
5.252930 4.527832 5.199219 4.409668 5.097168 4.307617 c
0.843262 0.145020 l
0.746582 0.048340 0.628418 0.000000 0.488770 0.000000 c
0.214844 0.000000 0.000000 0.209473 0.000000 0.488770 c
0.000000 0.628418 0.053711 0.746582 0.139648 0.837891 c
4.049805 4.662109 l
0.139648 8.486328 l
0.053711 8.577637 0.000000 8.701172 0.000000 8.835449 c
0.000000 9.114746 0.214844 9.324219 0.488770 9.324219 c
0.628418 9.324219 0.746582 9.275879 0.843262 9.184570 c
5.097168 5.016602 l
5.199219 4.919922 5.252930 4.796387 5.252930 4.662109 c
h
f
n
Q
endstream
endobj
3 0 obj
675
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 8.000000 12.000000 ]
/Resources 1 0 R
/Contents 2 0 R
/Parent 5 0 R
>>
endobj
5 0 obj
<< /Kids [ 4 0 R ]
/Count 1
/Type /Pages
>>
endobj
6 0 obj
<< /Pages 5 0 R
/Type /Catalog
>>
endobj
xref
0 7
0000000000 65535 f
0000000010 00000 n
0000000034 00000 n
0000000765 00000 n
0000000787 00000 n
0000000959 00000 n
0000001033 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
1092
%%EOF
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_frame.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_blur.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_blurlinear.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_blurnope.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_blurportrait.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_blurradian.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_brushtype.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_brush1.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_camera.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_close (2).pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_check (2).pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,9 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"provides-namespace" : true
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_crop.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_curves.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_eracer.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_eyedropper.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_flip.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_gif.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_muted.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_play.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "send.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_rotate.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "schedule.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,97 @@
%PDF-1.7
1 0 obj
<< >>
endobj
2 0 obj
<< /Length 3 0 R >>
stream
/DeviceRGB CS
/DeviceRGB cs
q
1.000000 0.000000 -0.000000 1.000000 3.334961 3.334961 cm
0.000000 0.000000 0.000000 scn
8.000000 16.665077 m
8.000000 17.032347 8.297730 17.330078 8.665000 17.330078 c
13.450547 17.330078 17.330002 13.450625 17.330002 8.665078 c
17.330002 3.879531 13.450547 0.000076 8.665000 0.000076 c
3.879452 0.000076 0.000000 3.879531 0.000000 8.665078 c
0.000000 11.755159 1.617408 14.466341 4.050117 16.000078 c
2.165000 16.000078 l
1.797731 16.000078 1.500000 16.297810 1.500000 16.665077 c
1.500000 17.032347 1.797731 17.330078 2.165000 17.330078 c
5.665000 17.330078 l
6.032269 17.330078 6.330000 17.032347 6.330000 16.665077 c
6.330000 13.165078 l
6.330000 12.797809 6.032269 12.500078 5.665000 12.500078 c
5.297730 12.500078 5.000000 12.797809 5.000000 13.165078 c
5.000000 15.020401 l
2.805339 13.751994 1.330000 11.380217 1.330000 8.665078 c
1.330000 4.614069 4.613991 1.330078 8.665000 1.330078 c
12.716009 1.330078 16.000000 4.614069 16.000000 8.665078 c
16.000000 12.716087 12.716009 16.000078 8.665000 16.000078 c
8.297730 16.000078 8.000000 16.297810 8.000000 16.665077 c
h
8.665000 14.330078 m
9.032269 14.330078 9.330000 14.032348 9.330000 13.665078 c
9.330000 8.940530 l
12.135226 6.135303 l
12.394924 5.875606 12.394924 5.454551 12.135226 5.194852 c
11.875527 4.935153 11.454473 4.935153 11.194774 5.194852 c
8.194774 8.194853 l
8.070063 8.319564 8.000000 8.488708 8.000000 8.665078 c
8.000000 13.665078 l
8.000000 14.032348 8.297730 14.330078 8.665000 14.330078 c
h
f*
n
Q
endstream
endobj
3 0 obj
1511
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 24.000000 24.000000 ]
/Resources 1 0 R
/Contents 2 0 R
/Parent 5 0 R
>>
endobj
5 0 obj
<< /Kids [ 4 0 R ]
/Count 1
/Type /Pages
>>
endobj
6 0 obj
<< /Pages 5 0 R
/Type /Catalog
>>
endobj
xref
0 7
0000000000 65535 f
0000000010 00000 n
0000000034 00000 n
0000001601 00000 n
0000001624 00000 n
0000001797 00000 n
0000001871 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
1930
%%EOF
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "sendwithoutsound.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,154 @@
%PDF-1.7
1 0 obj
<< >>
endobj
2 0 obj
<< /Length 3 0 R >>
stream
/DeviceRGB CS
/DeviceRGB cs
q
1.000000 0.000000 -0.000000 1.000000 3.334961 3.205078 cm
0.000000 0.000000 0.000000 scn
1.135226 17.265186 m
0.875527 17.524885 0.454473 17.524885 0.194774 17.265186 c
-0.064925 17.005487 -0.064925 16.584435 0.194774 16.324736 c
16.194775 0.324734 l
16.454473 0.065035 16.875528 0.065035 17.135227 0.324734 c
17.394926 0.584433 17.394926 1.005487 17.135227 1.265186 c
12.830019 5.570395 l
12.830019 13.984108 l
12.830019 14.015735 l
12.830019 14.015746 l
12.830019 14.015758 l
12.830032 14.503190 12.830044 14.912979 12.802612 15.227596 c
12.776955 15.521866 12.718998 15.904351 12.465319 16.192924 c
12.149200 16.552528 11.677307 16.734966 11.201504 16.681524 c
10.819681 16.638639 10.519508 16.394609 10.302576 16.194126 c
10.070642 15.979778 9.794991 15.676547 9.467113 15.315862 c
9.467100 15.315848 l
9.445834 15.292454 l
6.911015 12.504154 l
6.870810 12.460040 l
6.811123 12.459965 l
6.165019 12.459965 l
6.142232 12.459965 l
6.073141 12.459966 6.005919 12.459967 5.940522 12.459891 c
1.135226 17.265186 l
h
7.233788 11.166624 m
11.500019 6.900394 l
11.500019 13.984108 l
11.500019 14.511556 11.499405 14.862436 11.477638 15.112073 c
11.466372 15.241299 11.451292 15.307571 11.443966 15.335192 c
11.425201 15.348718 11.403254 15.357203 11.380270 15.359817 c
11.356270 15.344307 11.300531 15.305413 11.205269 15.217373 c
11.021238 15.047297 10.784756 14.788080 10.429955 14.397799 c
7.895135 11.609499 l
7.876595 11.588985 l
7.810806 11.515999 7.711236 11.405536 7.585287 11.322461 c
7.477557 11.251403 7.358773 11.198743 7.233788 11.166624 c
h
3.310589 11.708942 m
4.251275 10.768256 l
4.114416 10.639768 4.004863 10.482624 3.931640 10.305847 c
3.894677 10.216611 3.864227 10.089064 3.847507 9.844008 c
3.830379 9.592980 3.830019 9.270005 3.830019 8.794965 c
3.830019 8.319924 3.830379 7.996948 3.847507 7.745921 c
3.864227 7.500866 3.894677 7.373319 3.931640 7.284082 c
4.067134 6.956970 4.327024 6.697080 4.654137 6.561585 c
4.743373 6.524623 4.870920 6.494172 5.115975 6.477452 c
5.367003 6.460325 5.689979 6.459965 6.165019 6.459965 c
6.811123 6.459965 l
6.838768 6.460045 l
6.838777 6.460045 l
6.937038 6.460461 7.085750 6.461090 7.231940 6.423779 c
7.357602 6.391706 7.477026 6.338876 7.585287 6.267468 c
7.711238 6.184393 7.810808 6.073929 7.876598 6.000941 c
7.895135 5.980431 l
10.429956 3.192128 l
10.784757 2.801847 11.021239 2.542631 11.205269 2.372556 c
11.300533 2.284515 11.356270 2.245622 11.380270 2.230112 c
11.403254 2.232725 11.425201 2.241211 11.443966 2.254738 c
11.451292 2.282358 11.466372 2.348630 11.477638 2.477856 c
11.498196 2.713622 11.499886 3.039693 11.500010 3.519522 c
12.789057 2.230474 l
12.756243 1.960018 12.682525 1.644088 12.465319 1.397003 c
12.149200 1.037399 11.677307 0.854963 11.201504 0.908403 c
10.819681 0.951288 10.519508 1.195318 10.302577 1.395802 c
10.070659 1.610135 9.795034 1.913337 9.467189 2.273985 c
9.467137 2.274039 l
9.467128 2.274051 l
9.445836 2.297473 l
6.911015 5.085775 l
6.870807 5.129889 l
6.811123 5.129965 l
6.165019 5.129965 l
6.142203 5.129965 l
6.142138 5.129965 l
5.695606 5.129959 5.327103 5.129954 5.025440 5.150537 c
4.712668 5.171878 4.423473 5.217547 4.145168 5.332826 c
3.492168 5.603307 2.973362 6.122113 2.702880 6.775113 c
2.587602 7.053419 2.541932 7.342614 2.520592 7.655386 c
2.500008 7.957066 2.500013 8.325591 2.500019 8.772156 c
2.500019 8.772170 l
2.500019 8.794965 l
2.500019 8.817760 l
2.500019 8.817774 l
2.500013 9.264338 2.500008 9.632866 2.520592 9.934544 c
2.541932 10.247315 2.587602 10.536510 2.702880 10.814816 c
2.843596 11.154535 3.051523 11.457933 3.310589 11.708942 c
h
f*
n
Q
endstream
endobj
3 0 obj
3618
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 24.000000 24.000000 ]
/Resources 1 0 R
/Contents 2 0 R
/Parent 5 0 R
>>
endobj
5 0 obj
<< /Kids [ 4 0 R ]
/Count 1
/Type /Pages
>>
endobj
6 0 obj
<< /Pages 5 0 R
/Type /Catalog
>>
endobj
xref
0 7
0000000000 65535 f
0000000010 00000 n
0000000034 00000 n
0000003708 00000 n
0000003731 00000 n
0000003904 00000 n
0000003978 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
4037
%%EOF
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_menu_font3.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_menu_font2.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_menu_font1.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_font3.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_font2.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_font1.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_lt_timer.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_tint.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_undo.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "ic_editor_unmuted.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "sendthenonline.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
@@ -0,0 +1,123 @@
%PDF-1.7
1 0 obj
<< >>
endobj
2 0 obj
<< /Length 3 0 R >>
stream
/DeviceRGB CS
/DeviceRGB cs
q
1.000000 0.000000 -0.000000 1.000000 15.000000 4.000000 cm
0.000000 0.000000 0.000000 scn
5.000000 2.500000 m
5.000000 1.119288 3.880712 0.000000 2.500000 0.000000 c
1.119288 0.000000 0.000000 1.119288 0.000000 2.500000 c
0.000000 3.880712 1.119288 5.000000 2.500000 5.000000 c
3.880712 5.000000 5.000000 3.880712 5.000000 2.500000 c
h
f
n
Q
q
1.000000 0.000000 -0.000000 1.000000 3.334961 3.334961 cm
0.000000 0.000000 0.000000 scn
1.330000 8.665078 m
1.330000 12.716087 4.613991 16.000078 8.665000 16.000078 c
12.716008 16.000078 16.000000 12.716087 16.000000 8.665078 c
16.000000 7.971566 15.903754 7.300534 15.723890 6.664610 c
16.154043 6.472708 16.542303 6.203824 16.871166 5.875466 c
17.168650 6.750837 17.330002 7.689115 17.330002 8.665078 c
17.330002 13.450625 13.450547 17.330078 8.665000 17.330078 c
3.879453 17.330078 0.000000 13.450625 0.000000 8.665078 c
0.000000 3.879531 3.879453 0.000076 8.665000 0.000076 c
9.641031 0.000076 10.579370 0.161449 11.454794 0.458973 c
11.126430 0.787828 10.857537 1.176086 10.665626 1.606233 c
10.029655 1.426340 9.358569 1.330078 8.665000 1.330078 c
6.949595 1.330078 5.371725 1.918934 4.122502 2.905533 c
4.297272 3.127586 4.536829 3.393646 4.847776 3.660172 c
5.621715 4.323548 6.847626 5.000078 8.665000 5.000078 c
9.428206 5.000078 10.087104 4.880767 10.652022 4.693223 c
10.837114 5.118156 11.097044 5.502989 11.415169 5.831069 c
10.648278 6.131837 9.735907 6.330078 8.665000 6.330078 c
6.482374 6.330078 4.958285 5.506608 3.982224 4.669984 c
3.639743 4.376429 3.365922 4.082502 3.154341 3.823979 c
2.018686 5.115683 1.330000 6.809955 1.330000 8.665078 c
h
12.678360 5.175269 m
12.317028 4.907584 12.030398 4.544794 11.855478 4.123891 c
12.090899 3.974664 12.299200 3.817050 12.482224 3.660172 c
12.793171 3.393646 13.032728 3.127586 13.207498 2.905533 c
12.806664 2.588965 12.371993 2.313348 11.909800 2.084994 c
12.111738 1.664135 12.428010 1.308554 12.818370 1.058498 c
14.273650 1.854803 15.475398 3.056577 16.271671 4.511877 c
16.021608 4.902231 15.666019 5.218495 15.245155 5.420424 c
14.958824 4.840852 14.598176 4.304554 14.175659 3.823979 c
13.964078 4.082502 13.690256 4.376430 13.347776 4.669984 c
13.147928 4.841282 12.925106 5.012029 12.678360 5.175269 c
h
6.830039 10.665039 m
6.830039 11.678482 7.651597 12.500039 8.665039 12.500039 c
9.678482 12.500039 10.500039 11.678482 10.500039 10.665039 c
10.500039 9.651596 9.678482 8.830039 8.665039 8.830039 c
7.651597 8.830039 6.830039 9.651596 6.830039 10.665039 c
h
8.665039 13.830039 m
6.917058 13.830039 5.500039 12.413020 5.500039 10.665039 c
5.500039 8.917058 6.917058 7.500039 8.665039 7.500039 c
10.413020 7.500039 11.830039 8.917058 11.830039 10.665039 c
11.830039 12.413020 10.413020 13.830039 8.665039 13.830039 c
h
f*
n
Q
endstream
endobj
3 0 obj
2777
endobj
4 0 obj
<< /Annots []
/Type /Page
/MediaBox [ 0.000000 0.000000 24.000000 24.000000 ]
/Resources 1 0 R
/Contents 2 0 R
/Parent 5 0 R
>>
endobj
5 0 obj
<< /Kids [ 4 0 R ]
/Count 1
/Type /Pages
>>
endobj
6 0 obj
<< /Pages 5 0 R
/Type /Catalog
>>
endobj
xref
0 7
0000000000 65535 f
0000000010 00000 n
0000000034 00000 n
0000002867 00000 n
0000002890 00000 n
0000003063 00000 n
0000003137 00000 n
trailer
<< /ID [ (some) (id) ]
/Root 6 0 R
/Size 7
>>
startxref
3196
%%EOF
@@ -0,0 +1,36 @@
#import <Foundation/Foundation.h>
#import <LegacyComponents/ASHandle.h>
@interface ASActor : NSObject
+ (void)registerActorClass:(Class)requestBuilderClass;
+ (ASActor *)requestBuilderForGenericPath:(NSString *)genericPath path:(NSString *)path;
+ (NSString *)genericPath;
@property (nonatomic, strong) NSString *path;
@property (nonatomic, strong) NSString *requestQueueName;
@property (nonatomic, strong) NSDictionary *storedOptions;
@property (nonatomic) bool requiresAuthorization;
@property (nonatomic) NSTimeInterval cancelTimeout;
@property (nonatomic, strong) id cancelToken;
@property (nonatomic, strong) NSMutableArray *multipleCancelTokens;
@property (nonatomic) bool cancelled;
- (id)initWithPath:(NSString *)path;
- (void)prepare:(NSDictionary *)options;
- (void)execute:(NSDictionary *)options;
- (void)cancel;
- (void)addCancelToken:(id)token;
- (void)watcherJoined:(ASHandle *)watcherHandle options:(NSDictionary *)options waitingInActorQueue:(bool)waitingInActorQueue;
- (void)handleRequestProblem;
@end
@@ -0,0 +1,21 @@
#import <Foundation/Foundation.h>
@protocol ASWatcher;
@interface ASHandle : NSObject
@property (nonatomic, weak) id<ASWatcher> delegate;
@property (nonatomic) bool releaseOnMainThread;
- (id)initWithDelegate:(id<ASWatcher>)delegate;
- (id)initWithDelegate:(id<ASWatcher>)delegate releaseOnMainThread:(bool)releaseOnMainThread;
- (void)reset;
- (bool)hasDelegate;
- (void)requestAction:(NSString *)action options:(id)options;
- (void)receiveActorMessage:(NSString *)path messageType:(NSString *)messageType message:(id)message;
- (void)notifyResourceDispatched:(NSString *)path resource:(id)resource;
- (void)notifyResourceDispatched:(NSString *)path resource:(id)resource arguments:(id)arguments;
@end
@@ -0,0 +1,15 @@
#import <Foundation/Foundation.h>
@interface ASQueue : NSObject
- (instancetype)initWithName:(const char *)name;
+ (ASQueue *)mainQueue;
- (dispatch_queue_t)nativeQueue;
- (bool)isCurrentQueue;
- (void)dispatchOnQueue:(dispatch_block_t)block;
- (void)dispatchOnQueue:(dispatch_block_t)block synchronous:(bool)synchronous;
@end
@@ -0,0 +1,20 @@
#import <Foundation/Foundation.h>
#import <LegacyComponents/ASHandle.h>
#import <LegacyComponents/SGraphNode.h>
@protocol ASWatcher <NSObject>
@required
@property (nonatomic, strong, readonly) ASHandle *actionHandle;
@optional
- (void)actorCompleted:(int)status path:(NSString *)path result:(id)result;
- (void)actorReportedProgress:(NSString *)path progress:(float)progress;
- (void)actionStageResourceDispatched:(NSString *)path resource:(id)resource arguments:(id)arguments;
- (void)actionStageActionRequested:(NSString *)action options:(id)options;
- (void)actorMessageReceived:(NSString *)path messageType:(NSString *)messageType message:(id)message;
@end
@@ -0,0 +1,7 @@
#import <AVFoundation/AVFoundation.h>
#import <LegacyComponents/TGMediaSelectionContext.h>
#import <LegacyComponents/TGMediaEditingContext.h>
@interface AVURLAsset (TGMediaItem) <TGMediaSelectableItem, TGMediaEditableItem>
@end
@@ -0,0 +1,82 @@
#import <Foundation/Foundation.h>
#import <LegacyComponents/ASWatcher.h>
#import <LegacyComponents/ASActor.h>
#import <LegacyComponents/SGraphObjectNode.h>
typedef enum {
ASStatusSuccess = 0,
ASStatusFailed = -1
} ASStatus;
#ifdef DEBUG
#define dispatchOnStageQueue dispatchOnStageQueueDebug:__FILE__ line:__LINE__ block
#endif
@class ActionStage;
#ifdef __cplusplus
extern "C" {
#endif
ActionStage *ActionStageInstance();
#ifdef __cplusplus
}
#endif
typedef enum {
TGActorRequestChangePriority = 1
} TGActorRequestFlags;
@interface ActionStage : NSObject
- (dispatch_queue_t)globalStageDispatchQueue;
#ifdef DEBUG
- (void)dispatchOnStageQueueDebug:(const char *)function line:(int)line block:(dispatch_block_t)block;
#else
- (void)dispatchOnStageQueue:(dispatch_block_t)block;
#endif
- (NSFileManager *)globalFileManager;
- (bool)isCurrentQueueStageQueue;
- (void)cancelActorTimeout:(NSString *)path;
- (NSString *)genericStringForParametrizedPath:(NSString *)path;
- (void)requestActor:(NSString *)path options:(NSDictionary *)options flags:(int)flags watcher:(id<ASWatcher>)watcher;
- (void)requestActor:(NSString *)path options:(NSDictionary *)options watcher:(id<ASWatcher>)watcher;
- (void)changeActorPriority:(NSString *)path;
- (NSArray *)rejoinActionsWithGenericPathNow:(NSString *)genericPath prefix:(NSString *)prefix watcher:(id<ASWatcher>)watcher;
- (bool)isExecutingActorsWithGenericPath:(NSString *)genericPath;
- (bool)isExecutingActorsWithPathPrefix:(NSString *)pathPrefix;
- (NSArray *)executingActorsWithPathPrefix:(NSString *)pathPrefix;
- (ASActor *)executingActorWithPath:(NSString *)path;
- (void)watchForPath:(NSString *)path watcher:(id<ASWatcher>)watcher;
- (void)watchForPaths:(NSArray *)paths watcher:(id<ASWatcher>)watcher;
- (void)watchForGenericPath:(NSString *)path watcher:(id<ASWatcher>)watcher;
- (void)watchForMessagesToWatchersAtGenericPath:(NSString *)genericPath watcher:(id<ASWatcher>)watcher;
- (void)removeWatcherByHandle:(ASHandle *)actionHandle;
- (void)removeWatcher:(id<ASWatcher>)watcher;
- (void)removeWatcherByHandle:(ASHandle *)actionHandle fromPath:(NSString *)path;
- (void)removeWatcher:(id<ASWatcher>)watcher fromPath:(NSString *)path;
- (void)removeAllWatchersFromPath:(NSString *)path;
- (bool)requestActorStateNow:(NSString *)path;
- (void)dispatchResource:(NSString *)path resource:(id)resource arguments:(id)arguments;
- (void)dispatchResource:(NSString *)path resource:(id)resource;
- (void)actionCompleted:(NSString *)action result:(id)result;
- (void)dispatchMessageToWatchers:(NSString *)path messageType:(NSString *)messageType message:(id)message;
- (void)actionFailed:(NSString *)action reason:(int)reason;
- (void)nodeRetrieved:(NSString *)path node:(SGraphNode *)node;
- (void)nodeRetrieveProgress:(NSString *)path progress:(float)progress;
- (void)nodeRetrieveFailed:(NSString *)path;
@end
@@ -0,0 +1,54 @@
#ifndef Freedom_h
#define Freedom_h
#import <Foundation/Foundation.h>
#import <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
const char *string;
uint32_t key;
} FreedomIdentifier;
char *copyFreedomIdentifierValue(FreedomIdentifier identifier);
extern FreedomIdentifier FreedomIdentifierEmpty;
typedef struct {
uint32_t name;
IMP imp;
FreedomIdentifier newIdentifier;
FreedomIdentifier newEncoding;
} FreedomDecoration;
typedef struct {
ptrdiff_t offset;
int bit;
} FreedomBitfield;
void freedomInit();
bool freedomInitialized();
Class freedomClass(uint32_t name);
Class freedomMakeClass(Class superclass, Class subclass);
ptrdiff_t freedomIvarOffset(Class targetClass, uint32_t name);
FreedomBitfield freedomIvarBitOffset(Class targetClass, uint32_t fieldName, uint32_t bitfieldName);
FreedomBitfield freedomIvarBitOffset2(Class targetClass, uint32_t fieldName, uint32_t bitfieldName);
void freedomSetBitfield(void *object, FreedomBitfield bitfield, int value);
int freedomGetBitfield(void *object, FreedomBitfield bitfield);
void freedomDumpBitfields(Class targetClass, void *object, uint32_t fieldName);
IMP freedomNativeImpl(Class targetClass, SEL selector);
void freedomClassAutoDecorate(uint32_t name, FreedomDecoration *classDecorations, int numClassDecorations, FreedomDecoration *instanceDecorations, int numInstanceDecorations);
void freedomClassAutoDecorateExplicit(Class c, uint32_t name, FreedomDecoration *classDecorations, int numClassDecorations, FreedomDecoration *instanceDecorations, int numInstanceDecorations);
IMP freedomImpl(id target, uint32_t name, SEL *selector);
IMP freedomImplInstancesOfClass(Class targetClass, uint32_t name, SEL *selector);
#ifdef __cplusplus
}
#endif
#endif
@@ -0,0 +1,27 @@
#ifndef FreedomUIKit_h
#define FreedomUIKit_h
#import <Foundation/Foundation.h>
#ifdef __cplusplus
extern "C" {
#endif
void freedomUIKitInit();
bool freedomUIKitTest3();
bool freedomUIKitTest3_1();
void freedomUIKitTest4(dispatch_block_t);
void freedomUIKitTest4_1();
@interface FFNotificationCenter : NSNotificationCenter
+ (void)setShouldRotateBlock:(bool (^)())block;
@end
#ifdef __cplusplus
}
#endif
#endif
@@ -0,0 +1,85 @@
/*
Copyright (c) 2013, Jonathan Willing. All rights reserved.
Licensed under the MIT license <http://opensource.org/licenses/MIT>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
*/
#import <QuartzCore/QuartzCore.h>
// Adds the ability to add spring to your animations.
//
// Duration cannot be set directly. Instead, duration is
// a side effect of changing the various properties below.
//
// Although JNWSpringAnimation is a subclass of CAKeyframeAnimation,
// it should be treated as if it were a subclass of CABasicAnimation.
@interface JNWSpringAnimation : CAKeyframeAnimation
// The dedicated initializer for the animation.
//
// Not all layer properties can be animated. The following are compatible:
// - position
// - position.{x, y}
// - cornerRadius
// - shadowRadius
// - bounds
// - bounds.size
// - transform.translation.{x, y, z}
// - transform.rotation.{x, y, z}
// - transform.scale.{x, y, z}
// - transform.translation
// - transform (** experimental, only performs linear interpolation on all components **)
+ (instancetype)animationWithKeyPath:(NSString *)path;
// A damped spring can be modeled with the following equation:
// F = - kx - bv
// where k is the spring constant, x is the distance from equilibrium,
// and b is the coefficient of damping.
//
// Under the hood, a damped harmonic oscillation equation is used to
// provide the same results as the data obtained from Hooke's law.
// The spring constant.
//
// Defaults to 300.
@property (nonatomic, assign) CGFloat stiffness;
@property (nonatomic, assign) CGFloat durationFactor;
// The coefficient of damping.
//
// Defaults to 30.
@property (nonatomic, assign) CGFloat damping;
// The mass of the object.
//
// Defaults to 5.
@property (nonatomic, assign) CGFloat mass;
// Equivalent to CABasicAnimation's counterparts.
//
// Both must be non-nil.
@property (nonatomic, strong) id fromValue;
@property (nonatomic, strong) id toValue;
@property (nonatomic, strong) id initialVelocity;
// The duration, which is derived from the stiffness, damping, mass, and values.
//
// Note that this property will only return a non-zero value if both the `fromValue`
// and the `toValue` properties have both been set.
//
// Defaults to 0 if no from or to values have been set.
@property (nonatomic, assign, readonly) CFTimeInterval duration;
@end
@@ -0,0 +1,297 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <LegacyComponents/ActionStage.h>
#import <LegacyComponents/ASActor.h>
#import <LegacyComponents/ASHandle.h>
#import <LegacyComponents/ASQueue.h>
#import <LegacyComponents/ASWatcher.h>
#import <LegacyComponents/AVURLAsset+TGMediaItem.h>
#import <LegacyComponents/Freedom.h>
#import <LegacyComponents/FreedomUIKit.h>
#import <LegacyComponents/JNWSpringAnimation.h>
#import <LegacyComponents/LegacyComponentsAccessChecker.h>
#import <LegacyComponents/LegacyComponentsContext.h>
#import <LegacyComponents/LegacyComponentsGlobals.h>
#import <LegacyComponents/LegacyHTTPRequestOperation.h>
#import <LegacyComponents/lmdb.h>
#import <LegacyComponents/NSInputStream+TL.h>
#import <LegacyComponents/NSObject+TGLock.h>
#import <LegacyComponents/PGCamera.h>
#import <LegacyComponents/PGCameraCaptureSession.h>
#import <LegacyComponents/PGCameraDeviceAngleSampler.h>
#import <LegacyComponents/PGCameraMovieWriter.h>
#import <LegacyComponents/PGCameraShotMetadata.h>
#import <LegacyComponents/PGCameraVolumeButtonHandler.h>
#import <LegacyComponents/PGPhotoEditorValues.h>
#import <LegacyComponents/POPAnimatableProperty.h>
#import <LegacyComponents/POPAnimation.h>
#import <LegacyComponents/POPAnimationEvent.h>
#import <LegacyComponents/POPAnimationTracer.h>
#import <LegacyComponents/POPBasicAnimation.h>
#import <LegacyComponents/POPCustomAnimation.h>
#import <LegacyComponents/POPDecayAnimation.h>
#import <LegacyComponents/POPGeometry.h>
#import <LegacyComponents/POPPropertyAnimation.h>
#import <LegacyComponents/POPSpringAnimation.h>
#import <LegacyComponents/PSCoding.h>
#import <LegacyComponents/PSData.h>
#import <LegacyComponents/PSKeyValueCoder.h>
#import <LegacyComponents/PSKeyValueDecoder.h>
#import <LegacyComponents/PSKeyValueEncoder.h>
#import <LegacyComponents/PSKeyValueReader.h>
#import <LegacyComponents/PSKeyValueStore.h>
#import <LegacyComponents/PSKeyValueWriter.h>
#import <LegacyComponents/PSLMDBKeyValueCursor.h>
#import <LegacyComponents/PSLMDBKeyValueReaderWriter.h>
#import <LegacyComponents/PSLMDBKeyValueStore.h>
#import <LegacyComponents/PSLMDBTable.h>
#import <LegacyComponents/RMPhoneFormat.h>
#import <LegacyComponents/SGraphListNode.h>
#import <LegacyComponents/SGraphNode.h>
#import <LegacyComponents/SGraphObjectNode.h>
#import <LegacyComponents/TGActionMediaAttachment.h>
#import <LegacyComponents/TGAnimationBlockDelegate.h>
#import <LegacyComponents/TGAttachmentCameraView.h>
#import <LegacyComponents/TGAttachmentCarouselItemView.h>
#import <LegacyComponents/TGAudioMediaAttachment.h>
#import <LegacyComponents/TGAudioWaveform.h>
#import <LegacyComponents/TGAuthorSignatureMediaAttachment.h>
#import <LegacyComponents/TGBackdropView.h>
#import <LegacyComponents/TGBotComandInfo.h>
#import <LegacyComponents/TGBotContextResultAttachment.h>
#import <LegacyComponents/TGBotInfo.h>
#import <LegacyComponents/TGBotReplyMarkup.h>
#import <LegacyComponents/TGBotReplyMarkupButton.h>
#import <LegacyComponents/TGBotReplyMarkupRow.h>
#import <LegacyComponents/TGCache.h>
#import <LegacyComponents/TGCameraCapturedPhoto.h>
#import <LegacyComponents/TGCameraCapturedVideo.h>
#import <LegacyComponents/TGCameraController.h>
#import <LegacyComponents/TGCameraFlashActiveView.h>
#import <LegacyComponents/TGCameraFlashControl.h>
#import <LegacyComponents/TGCameraFlipButton.h>
#import <LegacyComponents/TGCameraInterfaceAssets.h>
#import <LegacyComponents/TGCameraMainPhoneView.h>
#import <LegacyComponents/TGCameraMainTabletView.h>
#import <LegacyComponents/TGCameraMainView.h>
#import <LegacyComponents/TGCameraModeControl.h>
#import <LegacyComponents/TGCameraPreviewView.h>
#import <LegacyComponents/TGCameraShutterButton.h>
#import <LegacyComponents/TGCameraTimeCodeView.h>
#import <LegacyComponents/TGCameraZoomView.h>
#import <LegacyComponents/TGChannelAdminRights.h>
#import <LegacyComponents/TGChannelBannedRights.h>
#import <LegacyComponents/TGCheckButtonView.h>
#import <LegacyComponents/TGContactMediaAttachment.h>
#import <LegacyComponents/TGConversation.h>
#import <LegacyComponents/TGDatabaseMessageDraft.h>
#import <LegacyComponents/TGDataResource.h>
#import <LegacyComponents/TGDateUtils.h>
#import <LegacyComponents/TGDocumentAttributeAnimated.h>
#import <LegacyComponents/TGDocumentAttributeAudio.h>
#import <LegacyComponents/TGDocumentAttributeFilename.h>
#import <LegacyComponents/TGDocumentAttributeImageSize.h>
#import <LegacyComponents/TGDocumentAttributeSticker.h>
#import <LegacyComponents/TGDocumentAttributeVideo.h>
#import <LegacyComponents/TGDocumentMediaAttachment.h>
#import <LegacyComponents/TGDoubleTapGestureRecognizer.h>
#import <LegacyComponents/TGEmbedPIPButton.h>
#import <LegacyComponents/TGEmbedPIPPullArrowView.h>
#import <LegacyComponents/TGFileUtils.h>
#import <LegacyComponents/TGFont.h>
#import <LegacyComponents/TGForwardedMessageMediaAttachment.h>
#import <LegacyComponents/TGFullscreenContainerView.h>
#import <LegacyComponents/TGGameMediaAttachment.h>
#import <LegacyComponents/TGGifConverter.h>
#import <LegacyComponents/TGHacks.h>
#import <LegacyComponents/TGIconSwitchView.h>
#import <LegacyComponents/TGImageBlur.h>
#import <LegacyComponents/TGImageDataSource.h>
#import <LegacyComponents/TGImageInfo.h>
#import <LegacyComponents/TGImageLuminanceMap.h>
#import <LegacyComponents/TGImageManager.h>
#import <LegacyComponents/TGImageManagerTask.h>
#import <LegacyComponents/TGImageMediaAttachment.h>
#import <LegacyComponents/TGImageUtils.h>
#import <LegacyComponents/TGImageView.h>
#import <LegacyComponents/TGInstantPage.h>
#import <LegacyComponents/TGInvoiceMediaAttachment.h>
#import <LegacyComponents/TGKeyCommand.h>
#import <LegacyComponents/TGKeyCommandController.h>
#import <LegacyComponents/TGLabel.h>
#import <LegacyComponents/TGListsTableView.h>
#import <LegacyComponents/TGLiveUploadInterface.h>
#import <LegacyComponents/TGLocalization.h>
#import <LegacyComponents/TGLocalMessageMetaMediaAttachment.h>
#import <LegacyComponents/TGLocationMediaAttachment.h>
#import <LegacyComponents/TGMediaAsset+TGMediaEditableItem.h>
#import <LegacyComponents/TGMediaAsset.h>
#import <LegacyComponents/TGMediaAssetFetchResult.h>
#import <LegacyComponents/TGMediaAssetFetchResultChange.h>
#import <LegacyComponents/TGMediaAssetGroup.h>
#import <LegacyComponents/TGMediaAssetImageSignals.h>
#import <LegacyComponents/TGMediaAssetMoment.h>
#import <LegacyComponents/TGMediaAssetMomentList.h>
#import <LegacyComponents/TGMediaAssetsController.h>
#import <LegacyComponents/TGMediaAssetsLibrary.h>
#import <LegacyComponents/TGMediaAssetsModernLibrary.h>
#import <LegacyComponents/TGMediaAssetsUtils.h>
#import <LegacyComponents/TGMediaAttachment.h>
#import <LegacyComponents/TGMediaAvatarEditorTransition.h>
#import <LegacyComponents/TGMediaAvatarMenuMixin.h>
#import <LegacyComponents/TGMediaEditingContext.h>
#import <LegacyComponents/TGMediaOriginInfo.h>
#import <LegacyComponents/TGMediaPickerCell.h>
#import <LegacyComponents/TGMediaPickerController.h>
#import <LegacyComponents/TGMediaPickerGalleryInterfaceView.h>
#import <LegacyComponents/TGMediaPickerGalleryItem.h>
#import <LegacyComponents/TGMediaPickerGalleryModel.h>
#import <LegacyComponents/TGMediaPickerGalleryPhotoItem.h>
#import <LegacyComponents/TGMediaPickerGallerySelectedItemsModel.h>
#import <LegacyComponents/TGMediaPickerGalleryVideoItem.h>
#import <LegacyComponents/TGMediaPickerGalleryVideoItemView.h>
#import <LegacyComponents/TGMediaPickerLayoutMetrics.h>
#import <LegacyComponents/TGMediaPickerModernGalleryMixin.h>
#import <LegacyComponents/TGMediaPickerSendActionSheetController.h>
#import <LegacyComponents/TGMediaPickerToolbarView.h>
#import <LegacyComponents/TGMediaSelectionContext.h>
#import <LegacyComponents/TGMediaVideoConverter.h>
#import <LegacyComponents/TGMemoryImageCache.h>
#import <LegacyComponents/TGMenuSheetButtonItemView.h>
#import <LegacyComponents/TGMenuSheetCollectionView.h>
#import <LegacyComponents/TGMenuSheetController.h>
#import <LegacyComponents/TGMenuSheetItemView.h>
#import <LegacyComponents/TGMenuSheetTitleItemView.h>
#import <LegacyComponents/TGMenuSheetView.h>
#import <LegacyComponents/TGMenuView.h>
#import <LegacyComponents/TGMessage.h>
#import <LegacyComponents/TGMessageEntitiesAttachment.h>
#import <LegacyComponents/TGMessageEntity.h>
#import <LegacyComponents/TGMessageEntityBold.h>
#import <LegacyComponents/TGMessageEntityBotCommand.h>
#import <LegacyComponents/TGMessageEntityCashtag.h>
#import <LegacyComponents/TGMessageEntityCode.h>
#import <LegacyComponents/TGMessageEntityEmail.h>
#import <LegacyComponents/TGMessageEntityHashtag.h>
#import <LegacyComponents/TGMessageEntityItalic.h>
#import <LegacyComponents/TGMessageEntityMention.h>
#import <LegacyComponents/TGMessageEntityMentionName.h>
#import <LegacyComponents/TGMessageEntityPhone.h>
#import <LegacyComponents/TGMessageEntityPre.h>
#import <LegacyComponents/TGMessageEntityTextUrl.h>
#import <LegacyComponents/TGMessageEntityUrl.h>
#import <LegacyComponents/TGMessageGroup.h>
#import <LegacyComponents/TGMessageHole.h>
#import <LegacyComponents/TGMessageImageViewOverlayView.h>
#import <LegacyComponents/TGMessageViewCountContentProperty.h>
#import <LegacyComponents/TGModernBackToolbarButton.h>
#import <LegacyComponents/TGModernBarButton.h>
#import <LegacyComponents/TGModernButton.h>
#import <LegacyComponents/TGModernCache.h>
#import <LegacyComponents/TGModernConversationInputMicButton.h>
#import <LegacyComponents/TGModernConversationTitleActivityIndicator.h>
#import <LegacyComponents/TGModernGalleryContainerView.h>
#import <LegacyComponents/TGModernGalleryController.h>
#import <LegacyComponents/TGModernGalleryDefaultFooterAccessoryView.h>
#import <LegacyComponents/TGModernGalleryDefaultFooterView.h>
#import <LegacyComponents/TGModernGalleryDefaultHeaderView.h>
#import <LegacyComponents/TGModernGalleryDefaultInterfaceView.h>
#import <LegacyComponents/TGModernGalleryEditableItem.h>
#import <LegacyComponents/TGModernGalleryEditableItemView.h>
#import <LegacyComponents/TGModernGalleryImageItem.h>
#import <LegacyComponents/TGModernGalleryImageItemContainerView.h>
#import <LegacyComponents/TGModernGalleryImageItemImageView.h>
#import <LegacyComponents/TGModernGalleryImageItemView.h>
#import <LegacyComponents/TGModernGalleryInterfaceView.h>
#import <LegacyComponents/TGModernGalleryItem.h>
#import <LegacyComponents/TGModernGalleryItemView.h>
#import <LegacyComponents/TGModernGalleryModel.h>
#import <LegacyComponents/TGModernGalleryScrollView.h>
#import <LegacyComponents/TGModernGallerySelectableItem.h>
#import <LegacyComponents/TGModernGalleryTransitionView.h>
#import <LegacyComponents/TGModernGalleryVideoView.h>
#import <LegacyComponents/TGModernGalleryView.h>
#import <LegacyComponents/TGModernGalleryZoomableItemView.h>
#import <LegacyComponents/TGModernGalleryZoomableItemViewContent.h>
#import <LegacyComponents/TGModernGalleryZoomableScrollView.h>
#import <LegacyComponents/TGModernGalleryZoomableScrollViewSwipeGestureRecognizer.h>
#import <LegacyComponents/TGModernMediaListItem.h>
#import <LegacyComponents/TGModernToolbarButton.h>
#import <LegacyComponents/TGNavigationBar.h>
#import <LegacyComponents/TGNavigationController.h>
#import <LegacyComponents/TGObserverProxy.h>
#import <LegacyComponents/TGOverlayController.h>
#import <LegacyComponents/TGOverlayControllerWindow.h>
#import <LegacyComponents/TGPaintingData.h>
#import <LegacyComponents/TGPaintShader.h>
#import <LegacyComponents/TGPaintUtils.h>
#import <LegacyComponents/TGPassportAttachMenu.h>
#import <LegacyComponents/TGPassportICloud.h>
#import <LegacyComponents/TGPassportMRZ.h>
#import <LegacyComponents/TGPassportOCR.h>
#import <LegacyComponents/TGPassportScanController.h>
#import <LegacyComponents/TGPeerIdAdapter.h>
#import <LegacyComponents/TGPhoneUtils.h>
#import <LegacyComponents/TGPhotoAvatarCropView.h>
#import <LegacyComponents/TGPhotoCaptionInputMixin.h>
#import <LegacyComponents/TGPhotoEditorAnimation.h>
#import <LegacyComponents/TGPhotoEditorButton.h>
#import <LegacyComponents/TGPhotoEditorController.h>
#import <LegacyComponents/TGPhotoEditorInterfaceAssets.h>
#import <LegacyComponents/TGPhotoEditorSliderView.h>
#import <LegacyComponents/TGPhotoEditorSparseView.h>
#import <LegacyComponents/TGPhotoEditorTabController.h>
#import <LegacyComponents/TGPhotoEditorToolView.h>
#import <LegacyComponents/TGPhotoEditorUtils.h>
#import <LegacyComponents/TGPhotoMaskPosition.h>
#import <LegacyComponents/TGPhotoPaintEntity.h>
#import <LegacyComponents/TGPhotoPaintEntityView.h>
#import <LegacyComponents/TGPhotoPaintStickerEntity.h>
#import <LegacyComponents/TGPhotoPaintStickersContext.h>
#import <LegacyComponents/TGPhotoPaintTextEntity.h>
#import <LegacyComponents/TGPhotoToolbarView.h>
#import <LegacyComponents/TGPhotoVideoEditor.h>
#import <LegacyComponents/TGPIPAblePlayerView.h>
#import <LegacyComponents/TGPluralization.h>
#import <LegacyComponents/TGProgressSpinnerView.h>
#import <LegacyComponents/TGProgressWindow.h>
#import <LegacyComponents/TGProxyWindow.h>
#import <LegacyComponents/TGReplyMarkupAttachment.h>
#import <LegacyComponents/TGReplyMessageMediaAttachment.h>
#import <LegacyComponents/TGRTLScreenEdgePanGestureRecognizer.h>
#import <LegacyComponents/TGSecretTimerMenu.h>
#import <LegacyComponents/TGStaticBackdropAreaData.h>
#import <LegacyComponents/TGStaticBackdropImageData.h>
#import <LegacyComponents/TGStickerAssociation.h>
#import <LegacyComponents/TGStickerPack.h>
#import <LegacyComponents/TGStickerPackReference.h>
#import <LegacyComponents/TGStringUtils.h>
#import <LegacyComponents/TGTextCheckingResult.h>
#import <LegacyComponents/TGTextField.h>
#import <LegacyComponents/TGTimerTarget.h>
#import <LegacyComponents/TGToolbarButton.h>
#import <LegacyComponents/TGTooltipView.h>
#import <LegacyComponents/TGUnsupportedMediaAttachment.h>
#import <LegacyComponents/TGViaUserAttachment.h>
#import <LegacyComponents/TGVideoCameraGLRenderer.h>
#import <LegacyComponents/TGVideoCameraGLView.h>
#import <LegacyComponents/TGVideoCameraMovieRecorder.h>
#import <LegacyComponents/TGVideoEditAdjustments.h>
#import <LegacyComponents/TGVideoInfo.h>
#import <LegacyComponents/TGVideoMediaAttachment.h>
#import <LegacyComponents/TGVideoMessageCaptureController.h>
#import <LegacyComponents/TGVideoMessageControls.h>
#import <LegacyComponents/TGVideoMessageRingView.h>
#import <LegacyComponents/TGVideoMessageScrubber.h>
#import <LegacyComponents/TGViewController+TGRecursiveEnumeration.h>
#import <LegacyComponents/TGViewController.h>
#import <LegacyComponents/TGWeakDelegate.h>
#import <LegacyComponents/TGWebDocument.h>
#import <LegacyComponents/TGWebPageMediaAttachment.h>
#import <LegacyComponents/UICollectionView+Utils.h>
#import <LegacyComponents/UIControl+HitTestEdgeInsets.h>
#import <LegacyComponents/UIDevice+PlatformInfo.h>
#import <LegacyComponents/UIImage+TG.h>
#import <LegacyComponents/UIImage+TGMediaEditableItem.h>
#import <LegacyComponents/UIScrollView+TGHacks.h>
@@ -0,0 +1,35 @@
#import <Foundation/Foundation.h>
typedef enum {
TGPhotoAccessIntentRead,
TGPhotoAccessIntentSave,
TGPhotoAccessIntentCustomWallpaper
} TGPhotoAccessIntent;
typedef enum {
TGMicrophoneAccessIntentVoice,
TGMicrophoneAccessIntentVideo,
TGMicrophoneAccessIntentCall,
TGMicrophoneAccessIntentVideoMessage
} TGMicrophoneAccessIntent;
typedef enum {
TGCameraAccessIntentDefault,
TGCameraAccessIntentVideoMessage
} TGCameraAccessIntent;
typedef enum {
TGLocationAccessIntentSend,
TGLocationAccessIntentTracking,
TGLocationAccessIntentLiveLocation
} TGLocationAccessIntent;
@protocol LegacyComponentsAccessChecker <NSObject>
- (bool)checkPhotoAuthorizationStatusForIntent:(TGPhotoAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
- (bool)checkMicrophoneAuthorizationStatusForIntent:(TGMicrophoneAccessIntent)intent alertDismissCompletion:(void (^)(void))alertDismissCompletion;
- (bool)checkCameraAuthorizationStatusForIntent:(TGCameraAccessIntent)intent completion:(void (^)(BOOL))completion alertDismissCompletion:(void (^)(void))alertDismissCompletion;
@end
@@ -0,0 +1,100 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class TGKeyCommandController;
@class SSignal;
@class TGOverlayControllerWindow;
@class TGNavigationBarPallete;
@class TGMenuSheetPallete;
@class TGMediaAssetsPallete;
@class TGImageBorderPallete;
@class TGCheckButtonPallete;
typedef enum {
LegacyComponentsActionSheetActionTypeGeneric,
LegacyComponentsActionSheetActionTypeDestructive,
LegacyComponentsActionSheetActionTypeCancel
} LegacyComponentsActionSheetActionType;
@interface LegacyComponentsActionSheetAction : NSObject
@property (nonatomic, strong, readonly) NSString *title;
@property (nonatomic, strong, readonly) NSString *action;
@property (nonatomic, readonly) LegacyComponentsActionSheetActionType type;
- (instancetype)initWithTitle:(NSString *)title action:(NSString *)action;
- (instancetype)initWithTitle:(NSString *)title action:(NSString *)action type:(LegacyComponentsActionSheetActionType)type;
@end
@protocol LegacyComponentsContext;
@protocol LegacyComponentsOverlayWindowManager <NSObject>
- (id<LegacyComponentsContext>)context;
- (void)bindController:(UIViewController *)controller;
- (bool)managesWindow;
- (void)setHidden:(bool)hidden window:(UIWindow *)window;
@end
@protocol LegacyComponentsContext <NSObject>
- (UIEdgeInsets)safeAreaInset;
- (CGRect)fullscreenBounds;
- (TGKeyCommandController *)keyCommandController;
- (CGRect)statusBarFrame;
- (bool)isStatusBarHidden;
- (void)setStatusBarHidden:(BOOL)hidden withAnimation:(UIStatusBarAnimation)animation;
- (void)forceSetStatusBarHidden:(BOOL)hidden withAnimation:(UIStatusBarAnimation)animation;
- (UIStatusBarStyle)statusBarStyle;
- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle animated:(BOOL)animated;
- (void)forceStatusBarAppearanceUpdate;
- (bool)prefersLightStatusBar;
- (void)lockPortrait;
- (void)unlockPortrait;
- (void)disableInteractiveKeyboardGesture;
- (TGNavigationBarPallete *)navigationBarPallete;
- (TGMenuSheetPallete *)menuSheetPallete;
- (TGMenuSheetPallete *)darkMenuSheetPallete;
- (TGMediaAssetsPallete *)mediaAssetsPallete;
- (TGCheckButtonPallete *)checkButtonPallete;
- (NSArray<NSNumber *> *)cameraZoomLevels;
@required
- (CGFloat)applicationStatusBarAlpha;
- (void)setApplicationStatusBarAlpha:(CGFloat)alpha;
- (void)animateApplicationStatusBarAppearance:(int)statusBarAnimation delay:(NSTimeInterval)delay duration:(NSTimeInterval)duration completion:(void (^)())completion;
- (void)animateApplicationStatusBarAppearance:(int)statusBarAnimation duration:(NSTimeInterval)duration completion:(void (^)())completion;
- (void)animateApplicationStatusBarStyleTransitionWithDuration:(NSTimeInterval)duration;
- (bool)rootCallStatusBarHidden;
- (bool)currentlyInSplitView;
- (UIUserInterfaceSizeClass)currentSizeClass;
- (UIUserInterfaceSizeClass)currentHorizontalSizeClass;
- (UIUserInterfaceSizeClass)currentVerticalSizeClass;
- (SSignal *)sizeClassSignal;
- (bool)canOpenURL:(NSURL *)url;
- (void)openURL:(NSURL *)url;
- (NSDictionary *)serverMediaDataForAssetUrl:(NSString *)url;
- (void)presentActionSheet:(NSArray<LegacyComponentsActionSheetAction *> *)actions view:(UIView *)view completion:(void (^)(LegacyComponentsActionSheetAction *))completion;
- (void)presentActionSheet:(NSArray<LegacyComponentsActionSheetAction *> *)actions view:(UIView *)view sourceRect:(CGRect (^)(void))sourceRect completion:(void (^)(LegacyComponentsActionSheetAction *))completion;
- (void)presentTooltip:(NSString *)text icon:(UIImage *)icon sourceRect:(CGRect)sourceRect;
- (id<LegacyComponentsOverlayWindowManager>)makeOverlayWindowManager;
@end
@@ -0,0 +1,102 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <LegacyComponents/LegacyComponentsAccessChecker.h>
#import <LegacyComponents/LegacyHTTPRequestOperation.h>
@class SSignal;
@class SThreadPool;
@protocol SDisposable;
@class TGLocalization;
@class UIViewController;
@class TGMemoryImageCache;
@class TGImageMediaAttachment;
@class TGNavigationBarPallete;
@class TGMenuSheetPallete;
@class TGMediaAssetsPallete;
@class TGImageBorderPallete;
@class TGCheckButtonPallete;
typedef enum {
TGAudioSessionTypePlayVoice,
TGAudioSessionTypePlayMusic,
TGAudioSessionTypePlayVideo,
TGAudioSessionTypePlayEmbedVideo,
TGAudioSessionTypePlayAndRecord,
TGAudioSessionTypePlayAndRecordHeadphones,
TGAudioSessionTypeCall
} TGAudioSessionType;
@protocol LegacyComponentsGlobalsProvider <NSObject>
- (void)makeViewDisableInteractiveKeyboardGestureRecognizer:(UIView *)view;
- (TGLocalization *)effectiveLocalization;
- (void)log:(NSString *)string;
- (NSArray<UIWindow *> *)applicationWindows;
- (UIWindow *)applicationStatusBarWindow;
- (UIWindow *)applicationKeyboardWindow;
- (UIApplication *)applicationInstance;
- (UIInterfaceOrientation)applicationStatusBarOrientation;
- (CGRect)statusBarFrame;
- (bool)isStatusBarHidden;
- (void)setStatusBarHidden:(BOOL)hidden withAnimation:(UIStatusBarAnimation)animation;
- (UIStatusBarStyle)statusBarStyle;
- (void)setStatusBarStyle:(UIStatusBarStyle)statusBarStyle animated:(BOOL)animated;
- (void)forceStatusBarAppearanceUpdate;
- (bool)canOpenURL:(NSURL *)url;
- (void)openURL:(NSURL *)url;
- (void)openURLNative:(NSURL *)url;
- (void)disableUserInteractionFor:(NSTimeInterval)timeInterval;
- (void)setIdleTimerDisabled:(bool)value;
- (void)pauseMusicPlayback;
- (NSString *)dataStoragePath;
- (NSString *)dataCachePath;
- (id<LegacyComponentsAccessChecker>)accessChecker;
- (id<SDisposable>)requestAudioSession:(TGAudioSessionType)type activated:(void (^)())activated interrupted:(void (^)())interrupted;
- (SThreadPool *)sharedMediaImageProcessingThreadPool;
- (TGMemoryImageCache *)sharedMediaMemoryImageCache;
- (SSignal *)squarePhotoThumbnail:(TGImageMediaAttachment *)imageAttachment ofSize:(CGSize)size threadPool:(SThreadPool *)threadPool memoryCache:(TGMemoryImageCache *)memoryCache pixelProcessingBlock:(void (^)(void *, int, int, int))pixelProcessingBlock downloadLargeImage:(bool)downloadLargeImage placeholder:(SSignal *)placeholder;
- (NSString *)localDocumentDirectoryForLocalDocumentId:(int64_t)localDocumentId version:(int32_t)version;
- (NSString *)localDocumentDirectoryForDocumentId:(int64_t)documentId version:(int32_t)version;
- (void)pausePictureInPicturePlayback;
- (void)resumePictureInPicturePlayback;
- (void)maybeReleaseVolumeOverlay;
- (TGNavigationBarPallete *)navigationBarPallete;
- (TGMenuSheetPallete *)menuSheetPallete;
- (TGMenuSheetPallete *)darkMenuSheetPallete;
- (TGMediaAssetsPallete *)mediaAssetsPallete;
- (TGCheckButtonPallete *)checkButtonPallete;
@optional
- (TGImageBorderPallete *)imageBorderPallete;
@end
@interface LegacyComponentsGlobals : NSObject
+ (void)setProvider:(id<LegacyComponentsGlobalsProvider>)provider;
+ (id<LegacyComponentsGlobalsProvider>)provider;
@end
#ifdef __cplusplus
extern "C" {
#endif
UIImage *TGComponentsImageNamed(NSString *name);
NSString *TGComponentsPathForResource(NSString *name, NSString *type);
#ifdef __cplusplus
}
#endif

Some files were not shown because too many files have changed in this diff Show More