This commit is contained in:
sagiferi
2026-10-24 13:20:55 +02:00
parent 93e06d148a
commit b33d1543fc
326 changed files with 20843 additions and 3 deletions
+52
View File
@@ -0,0 +1,52 @@
import Flutter
import UIKit
@main
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
if let registrar = engineBridge.pluginRegistry.registrar(forPlugin: "SfzenithFiles") {
let channel = FlutterMethodChannel(name: "sfzenith/files", binaryMessenger: registrar.messenger())
channel.setMethodCallHandler { call, result in
guard call.method == "saveToDownloads" else {
result(FlutterMethodNotImplemented)
return
}
let args = call.arguments as? [String: Any] ?? [:]
let name = (args["name"] as? String) ?? "horizon.bin"
let bytes = (args["bytes"] as? FlutterStandardTypedData)?.data ?? Data()
do {
result(try AppDelegate.saveToDocuments(name: name, data: bytes))
} catch {
result(FlutterError(code: "save_failed", message: error.localizedDescription, details: nil))
}
}
}
}
/// Saves into the app's Documents folder, which the Files app shows under
/// On My iPhone › SkyContour (UIFileSharingEnabled). Never overwrites.
static func saveToDocuments(name: String, data: Data) throws -> String {
let fm = FileManager.default
let dir = try fm.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
let safe = (name as NSString).lastPathComponent
let base = (safe as NSString).deletingPathExtension
let ext = (safe as NSString).pathExtension
var target = dir.appendingPathComponent(safe)
var n = 1
while fm.fileExists(atPath: target.path) {
let candidate = ext.isEmpty ? "\(base) (\(n))" : "\(base) (\(n)).\(ext)"
target = dir.appendingPathComponent(candidate)
n += 1
}
try data.write(to: target, options: .atomic)
return "Files › SkyContour › \(target.lastPathComponent)"
}
}
@@ -0,0 +1 @@
{"images":[{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@3x.png","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@3x.png","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@3x.png","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@1x.png","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@3x.png","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@1x.png","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@1x.png","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@1x.png","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@2x.png","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@1x.png","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@2x.png","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@1x.png","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@2x.png","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"Icon-App-83.5x83.5@2x.png","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"Icon-App-1024x1024@1x.png","scale":"1x"}],"info":{"version":1,"author":"xcode"}}
Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "background.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "LaunchImage.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "LaunchImage@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "LaunchImage@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@@ -0,0 +1,5 @@
# Launch Screen Assets
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" image="LaunchBackground" translatesAutoresizingMaskIntoConstraints="NO" id="tWc-Dq-wcI"/>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4"></imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="3T2-ad-Qdv"/>
<constraint firstItem="tWc-Dq-wcI" firstAttribute="bottom" secondItem="Ze5-6b-2t3" secondAttribute="bottom" id="RPx-PI-7Xg"/>
<constraint firstItem="tWc-Dq-wcI" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="SdS-ul-q2q"/>
<constraint firstAttribute="trailing" secondItem="tWc-Dq-wcI" secondAttribute="trailing" id="Swv-Gf-Rwn"/>
<constraint firstAttribute="trailing" secondItem="YRO-k0-Ey4" secondAttribute="trailing" id="TQA-XW-tRk"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="bottom" secondItem="Ze5-6b-2t3" secondAttribute="bottom" id="duK-uY-Gun"/>
<constraint firstItem="tWc-Dq-wcI" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="kV7-tw-vXt"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="xPn-NY-SIU"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="384" height="384"/>
<image name="LaunchBackground" width="1" height="1"/>
</resources>
</document>
+26
View File
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
+100
View File
@@ -0,0 +1,100 @@
<?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>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>SkyContour</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>es</string>
<string>ar</string>
<string>de</string>
<string>hu</string>
<string>pl</string>
<string>fr</string>
<string>it</string>
<string>sk</string>
</array>
<key>CFBundleName</key>
<string>SkyContour</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsLocalNetworking</key>
<true/>
</dict>
<key>NSCameraUsageDescription</key>
<string>The camera photographs the horizon around you to build your horizon profile and panorama.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location is written into the Stellarium landscape so the sky matches your site.</string>
<key>NSMotionUsageDescription</key>
<string>Compass and tilt tell the app where each photo points.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Lets you save panorama images to your photo library.</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneClassName</key>
<string>UIWindowScene</string>
<key>UISceneConfigurationName</key>
<string>flutter</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiresFullScreen</key>
<true/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
</dict>
</plist>
+1
View File
@@ -0,0 +1 @@
#import "GeneratedPluginRegistrant.h"
+6
View File
@@ -0,0 +1,6 @@
import Flutter
import UIKit
class SceneDelegate: FlutterSceneDelegate {
}
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "تلتقط الكاميرا صورًا للأفق من حولك لإنشاء مقطع الأفق والبانوراما.";
"NSLocationWhenInUseUsageDescription" = "يُكتب موقعك في مشهد Stellarium لتتطابق السماء مع موقعك.";
"NSMotionUsageDescription" = "تحدّد البوصلة والميل اتجاه كل صورة.";
"NSPhotoLibraryAddUsageDescription" = "يتيح لك حفظ صور البانوراما في مكتبة الصور.";
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "Die Kamera fotografiert den Horizont rund um dich, daraus entstehen Horizontprofil und Panorama.";
"NSLocationWhenInUseUsageDescription" = "Dein Standort wird in die Stellarium-Landschaft geschrieben, damit der Himmel zu deinem Ort passt.";
"NSMotionUsageDescription" = "Kompass und Neigung zeigen, wohin jedes Foto gerichtet ist.";
"NSPhotoLibraryAddUsageDescription" = "Damit kannst du Panoramabilder in deiner Fotomediathek speichern.";
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "The camera photographs the horizon around you to build your horizon profile and panorama.";
"NSLocationWhenInUseUsageDescription" = "Your location is written into the Stellarium landscape so the sky matches your site.";
"NSMotionUsageDescription" = "Compass and tilt tell the app where each photo points.";
"NSPhotoLibraryAddUsageDescription" = "Lets you save panorama images to your photo library.";
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "La cámara fotografía el horizonte a tu alrededor para crear el perfil del horizonte y el panorama.";
"NSLocationWhenInUseUsageDescription" = "Tu ubicación se guarda en el paisaje de Stellarium para que el cielo coincida con tu lugar.";
"NSMotionUsageDescription" = "La brújula y la inclinación indican hacia dónde apunta cada foto.";
"NSPhotoLibraryAddUsageDescription" = "Te permite guardar imágenes panorámicas en tu fototeca.";
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "La caméra photographie l’horizon autour de vous pour créer le profil d’horizon et le panorama.";
"NSLocationWhenInUseUsageDescription" = "Votre position est inscrite dans le paysage Stellarium pour que le ciel corresponde à votre site.";
"NSMotionUsageDescription" = "La boussole et l’inclinaison indiquent la direction de chaque photo.";
"NSPhotoLibraryAddUsageDescription" = "Permet d’enregistrer des images panoramiques dans votre photothèque.";
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "A kamera lefényképezi a körülötted lévő horizontot, ebből készül a horizontprofil és a panoráma.";
"NSLocationWhenInUseUsageDescription" = "A helyed bekerül a Stellarium tájképbe, hogy az égbolt a helyszínedhez illeszkedjen.";
"NSMotionUsageDescription" = "Az iránytű és a dőlés mutatja meg, merre néz az egyes fotó.";
"NSPhotoLibraryAddUsageDescription" = "Panorámaképeket menthetsz a fotótáradba.";
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "La fotocamera fotografa l’orizzonte intorno a te per creare il profilo dell’orizzonte e il panorama.";
"NSLocationWhenInUseUsageDescription" = "La tua posizione viene scritta nel paesaggio di Stellarium, così il cielo corrisponde al tuo luogo.";
"NSMotionUsageDescription" = "Bussola e inclinazione indicano dove punta ogni foto.";
"NSPhotoLibraryAddUsageDescription" = "Ti permette di salvare immagini panoramiche nella tua libreria foto.";
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "Aparat fotografuje horyzont wokół ciebie, aby utworzyć profil horyzontu i panoramę.";
"NSLocationWhenInUseUsageDescription" = "Twoja lokalizacja jest zapisywana w krajobrazie Stellarium, aby niebo pasowało do twojego miejsca.";
"NSMotionUsageDescription" = "Kompas i pochylenie pokazują, w którą stronę skierowane jest każde zdjęcie.";
"NSPhotoLibraryAddUsageDescription" = "Pozwala zapisywać zdjęcia panoramiczne w bibliotece zdjęć.";
+5
View File
@@ -0,0 +1,5 @@
/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */
"NSCameraUsageDescription" = "Kamera fotí horizont okolo teba, aby vznikol profil horizontu a panoráma.";
"NSLocationWhenInUseUsageDescription" = "Tvoja poloha sa zapíše do krajiny Stellarium, aby obloha zodpovedala tvojmu miestu.";
"NSMotionUsageDescription" = "Kompas a náklon určujú, kam smeruje každá fotka.";
"NSPhotoLibraryAddUsageDescription" = "Umožní ukladať panoramatické obrázky do knižnice fotiek.";