Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchun.this committed Feb 10, 2024
0 parents commit 0a26441
Show file tree
Hide file tree
Showing 78 changed files with 4,409 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Swift

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
# vars
APP_NAME: ${{ vars.APP_NAME }}
INFO_PLIST_PATH: ${{ vars.INFO_PLIST_PATH }}
PROJECT_PATH: ${{ vars.PROJECT_PATH }}
VERSION_FILE_PATH: ${{ vars.VERSION_FILE_PATH }}
XCODE_BUILD_DIR: ${{ vars.XCODE_BUILD_DIR }}
XCODE_BUILD_PATH: ${{ vars.XCODE_BUILD_PATH }}

# secrets
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALI_AK: ${{ secrets.ALI_AK }}
ALI_SK: ${{ secrets.ALI_SK }}
BAIDU_AK: ${{ secrets.BAIDU_AK }}
BAIDU_SK: ${{ secrets.BAIDU_SK }}
BIGHUGETHESAURUS_SK: ${{ secrets.BIGHUGETHESAURUS_SK }}
NIUTRANS_SK: ${{ secrets.NIUTRANS_SK }}
VOLCENGINE_AK: ${{ secrets.VOLCENGINE_AK }}
VOLCENGINE_SK: ${{ secrets.VOLCENGINE_SK }}
SPARKLE_ED_PRIVATE_KEY: ${{ secrets.SPARKLE_ED_PRIVATE_KEY }}

jobs:
build:
runs-on: macos-14-large
if: ${{ !contains(github.event.head_commit.message, 'chore') }}
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.2
- name: Release
run: scripts/release.sh
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.DS_Store

Packages
build
DerivedData
xcuserdata

version.txt

# *.xcodeproj
701 changes: 701 additions & 0 deletions liltr.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions liltr.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"pins" : [
{
"identity" : "alamofire",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Alamofire/Alamofire.git",
"state" : {
"revision" : "3dc6a42c7727c49bf26508e29b0a0b35f9c7e1ad",
"version" : "5.8.1"
}
},
{
"identity" : "keyboardshortcuts",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sindresorhus/KeyboardShortcuts",
"state" : {
"revision" : "ac12762853126cf2e7ad63a6a58e1c9f58c6a0ee",
"version" : "1.17.0"
}
},
{
"identity" : "sparkle",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sparkle-project/Sparkle",
"state" : {
"revision" : "47d3d90aee3c52b6f61d04ceae426e607df62347",
"version" : "2.5.2"
}
}
],
"version" : 2
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added liltr/Assets.xcassets/AppIcon.appiconset/16_1x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions liltr/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"images" : [
{
"filename" : "16_1x.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"filename" : "16_2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"filename" : "32_1x.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"filename" : "32_2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"filename" : "128_1x.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"filename" : "128_2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"filename" : "256_1x.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"filename" : "256_2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"filename" : "512_1x.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "512_2x.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions liltr/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
11 changes: 11 additions & 0 deletions liltr/Assets.xcassets/monochrome.fill.imageset/1x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions liltr/Assets.xcassets/monochrome.fill.imageset/2x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions liltr/Assets.xcassets/monochrome.fill.imageset/3x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions liltr/Assets.xcassets/monochrome.fill.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"images" : [
{
"filename" : "1x.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "2x.svg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "3x.svg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
14 changes: 14 additions & 0 deletions liltr/Assets.xcassets/monochrome.imageset/1x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions liltr/Assets.xcassets/monochrome.imageset/2x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions liltr/Assets.xcassets/monochrome.imageset/3x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions liltr/Assets.xcassets/monochrome.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "1x.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "2x.svg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "3x.svg",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
17 changes: 17 additions & 0 deletions liltr/Components/LanguagePicker.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Foundation
import SwiftUI

struct LanguagePicker: View {
@Binding var languageCode: String

var withLabel: Bool

var body: some View {
Picker(selection: $languageCode) {
ForEach(LANGUAGE_ARRAY, id: \.code) { language in
Text("\(language.flag)\(withLabel ? " \(language.name)" : "")").tag(language.code)
}
} label: {}
.frame(width: withLabel ? 130 : 50)
}
}
15 changes: 15 additions & 0 deletions liltr/Components/ProviderPicker.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Foundation
import SwiftUI

struct ProviderPicker: View {
@Binding var prividerName: String

var body: some View {
Picker(selection: $prividerName) {
ForEach(PROVIDER_ARRAY, id: \.name) { provider in
Text("\(provider.name)").tag(provider.name)
}
} label: {}
.frame(width: 200)
}
}
Loading

0 comments on commit 0a26441

Please sign in to comment.