EhPanda 项目使用教程

EhPanda 项目使用教程

EhPandaAn unofficial E-Hentai App for iOS built with SwiftUI & TCA.项目地址:https://gitcode.com/gh_mirrors/eh/EhPanda

1. 项目的目录结构及介绍

EhPanda 项目的目录结构如下:

EhPanda/
├── EhPanda/
│   ├── App/
│   ├── Core/
│   ├── Features/
│   ├── Resources/
│   ├── Utils/
│   └── AppDelegate.swift
├── ehpanda-website/
│   ├── public/
│   ├── src/
│   └── package.json
├── EhTagTranslation_Database_EN/
│   └── data/
├── EhTagTranslation_Database_JPN/
│   └── data/
└── README.md

目录介绍

  • EhPanda/: 主应用程序目录,包含应用程序的主要代码和资源。

    • App/: 包含应用程序的主要逻辑和界面。
    • Core/: 包含核心功能和模块。
    • Features/: 包含应用程序的各个功能模块。
    • Resources/: 包含应用程序的资源文件,如图片、本地化文件等。
    • Utils/: 包含实用工具和辅助函数。
    • AppDelegate.swift: 应用程序的启动文件。
  • ehpanda-website/: 项目网站的源代码目录。

    • public/: 包含网站的静态资源。
    • src/: 包含网站的源代码。
    • package.json: 网站项目的配置文件。
  • EhTagTranslation_Database_EN/EhTagTranslation_Database_JPN/: 包含标签翻译的数据库文件。

    • data/: 包含翻译数据文件。

2. 项目的启动文件介绍

EhPanda 项目的启动文件是 AppDelegate.swift,位于 EhPanda/AppDelegate.swift。该文件负责应用程序的初始化和生命周期管理。

import SwiftUI

@main
struct EhPandaApp: App {
    @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

class AppDelegate: UIResponder, UIApplicationDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // 初始化代码
        return true
    }
}

启动文件功能

  • @main: 标记应用程序的入口点。
  • AppDelegate: 负责应用程序的生命周期事件,如启动、进入后台、恢复等。

3. 项目的配置文件介绍

EhPanda 项目的配置文件主要包括 package.jsonInfo.plist

package.json

package.json 文件位于 ehpanda-website/package.json,用于配置网站项目的依赖和脚本。

{
  "name": "ehpanda-website",
  "version": "1.0.0",
  "description": "The source code for https://ehpanda.app",
  "main": "src/index.js",
  "scripts": {
    "start": "node src/index.js"
  },
  "dependencies": {
    "express": "^4.17.1"
  }
}

Info.plist

Info.plist 文件通常位于 EhPanda/Info.plist,用于配置应用程序的元数据和行为。

<?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>CFBundleDisplayName</key>
  <string>EhPanda</string>
  <key>CFBundleIdentifier</key>
  <string>com.ehpanda.app</string>
  <key>CFBundleVersion</key>
  <string>1.0.0</string>
  <key>UIRequiredDeviceCapabilities</key>
  <array>
    <string>armv7</string>
  </array>
  <key>UISupportedInterfaceOrientations</key>
  <array>
    <string>UIInterfaceOrientationPortrait

EhPandaAn unofficial E-Hentai App for iOS built with SwiftUI & TCA.项目地址:https://gitcode.com/gh_mirrors/eh/EhPanda

  • 12
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

贺妤娅

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值