mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
Compare commits
36 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d7446ca80 | ||
|
|
866aa6bd90 | ||
|
|
5ab07664d3 | ||
|
|
38f3de8942 | ||
|
|
32433ed572 | ||
|
|
e28aa08cd7 | ||
|
|
57d1ac26cb | ||
|
|
656c1cdf55 | ||
|
|
a95157e7da | ||
|
|
aeaa69df28 | ||
|
|
6bd8827961 | ||
|
|
959492944b | ||
|
|
27a2c48bf2 | ||
|
|
37a53acf0e | ||
|
|
0a2c6d4531 | ||
|
|
bcda3a46e1 | ||
|
|
0c1ca9b3d8 | ||
|
|
e2c37d9417 | ||
|
|
e6af1fa26f | ||
|
|
7ddca0724b | ||
|
|
7c419fcccf | ||
|
|
29adf98043 | ||
|
|
c8015a381d | ||
|
|
07f5247e5b | ||
|
|
2c5fac8da4 | ||
|
|
153e51bf66 | ||
|
|
d0e1425f42 | ||
|
|
b4414f4845 | ||
|
|
0ea4f2743e | ||
|
|
54860148b4 | ||
|
|
65bc5ba39a | ||
|
|
6a19c36e83 | ||
|
|
c9f1bb633a | ||
|
|
032ec025ac | ||
|
|
0bb8fdad23 | ||
|
|
b79afcfd3e |
6 changed files with 113 additions and 9 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -5,6 +5,9 @@ on:
|
|||
pull_request:
|
||||
branches: ["main"]
|
||||
permissions: {}
|
||||
defaults:
|
||||
run:
|
||||
shell: bash -euo pipefail {0}
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
|
|
@ -12,13 +15,13 @@ jobs:
|
|||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- run: swift format lint -rsp .
|
||||
yamllint:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- run: yamllint --version
|
||||
- run: yamllint --strict --config-file .yamllint.yml .
|
||||
|
|
|
|||
89
.github/workflows/codeql.yml
vendored
Normal file
89
.github/workflows/codeql.yml
vendored
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
#
|
||||
# ******** NOTE ********
|
||||
# We have attempted to detect the languages in your repository. Please check
|
||||
# the `language` matrix defined below to confirm you have the correct set of
|
||||
# supported CodeQL languages.
|
||||
#
|
||||
name: "CodeQL Advanced"
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
schedule:
|
||||
- cron: '40 19 * * 3'
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze (${{ matrix.language }})
|
||||
# Runner size impacts CodeQL analysis time. To learn more, please see:
|
||||
# - https://gh.io/recommended-hardware-resources-for-running-codeql
|
||||
# - https://gh.io/supported-runners-and-hardware-resources
|
||||
# - https://gh.io/using-larger-runners (GitHub.com only)
|
||||
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
|
||||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
||||
permissions:
|
||||
# required for all workflows
|
||||
security-events: write
|
||||
# required to fetch internal or private CodeQL packs
|
||||
packages: read
|
||||
# only required for workflows in private repositories
|
||||
actions: read
|
||||
contents: read
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- language: actions
|
||||
build-mode: none
|
||||
- language: swift
|
||||
build-mode: manual
|
||||
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
|
||||
# Use `c-cpp` to analyze code written in C, C++ or both
|
||||
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
|
||||
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
|
||||
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
|
||||
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
|
||||
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
|
||||
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
# Add any setup steps before running the `github/codeql-action/init` action.
|
||||
# This includes steps like installing compilers or runtimes (`actions/setup-node`
|
||||
# or others). This is typically only required for manual builds.
|
||||
# - name: Setup runtime (example)
|
||||
# uses: actions/setup-example@v1
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
build-mode: ${{ matrix.build-mode }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# If the analyze step fails for one of the languages you are analyzing with
|
||||
# "We were unable to automatically build your code", modify the matrix above
|
||||
# to set the build mode to "manual" for that language. Then modify this step
|
||||
# to build your code.
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||||
- name: Run manual build steps
|
||||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
||||
# queries: security-extended,security-and-quality
|
||||
|
||||
if: matrix.build-mode == 'manual'
|
||||
shell: bash
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_26.1.1.app
|
||||
run: xcodebuild build -project DNSecure.xcodeproj -scheme DNSecure -destination "platform=iOS Simulator,name=iPad Pro 13-inch (M5),OS=26.1" -quiet -showBuildTimingSummary
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
|
|
@ -442,7 +442,7 @@
|
|||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.6.1;
|
||||
MARKETING_VERSION = 1.6.2;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = xyz.kebo.DNSecure;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
STRING_CATALOG_GENERATE_SYMBOLS = YES;
|
||||
|
|
@ -480,7 +480,7 @@
|
|||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.6.1;
|
||||
MARKETING_VERSION = 1.6.2;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = xyz.kebo.DNSecure;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
STRING_CATALOG_GENERATE_SYMBOLS = YES;
|
||||
|
|
|
|||
|
|
@ -180,6 +180,9 @@ extension ContentView: View {
|
|||
private var modernBody: some View {
|
||||
NavigationSplitView {
|
||||
List(selection: self.$selection) {
|
||||
if !self.isActivated && self.hSizeClass == .compact {
|
||||
NavigationLink("Instructions", value: -1)
|
||||
}
|
||||
Section("Servers") {
|
||||
ForEach(0..<self.servers.count, id: \.self) { i in
|
||||
NavigationLink(value: i) {
|
||||
|
|
@ -221,7 +224,7 @@ extension ContentView: View {
|
|||
// Workaround for https://github.com/kkebo/DNSecure/issues/139
|
||||
.environment(\.editMode, self.$detailEditMode)
|
||||
#endif
|
||||
} else if !self.isActivated {
|
||||
} else if !self.isActivated || self.selection == -1 {
|
||||
HowToActivateView()
|
||||
.navigationBarTitleDisplayMode(self.navigationBarTitleDisplayMode)
|
||||
} else {
|
||||
|
|
@ -244,6 +247,15 @@ extension ContentView: View {
|
|||
private var legacyBody: some View {
|
||||
NavigationView {
|
||||
List {
|
||||
if !self.isActivated && self.hSizeClass == .compact {
|
||||
NavigationLink(
|
||||
"Instructions",
|
||||
tag: -1,
|
||||
selection: self.$selection
|
||||
) {
|
||||
HowToActivateView()
|
||||
}
|
||||
}
|
||||
Section("Servers") {
|
||||
ForEach(0..<self.servers.count, id: \.self) { i in
|
||||
if self.hSizeClass == .compact {
|
||||
|
|
@ -277,7 +289,7 @@ extension ContentView: View {
|
|||
|
||||
if let i = self.selection, i >= 0 {
|
||||
self.detailView(at: i)
|
||||
} else if !self.isActivated {
|
||||
} else if !self.isActivated || self.selection == -1 {
|
||||
HowToActivateView()
|
||||
} else {
|
||||
Text("Select a server on the sidebar")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2020-2025 Kenta Kubo
|
||||
Copyright (c) 2020-2026 Kenta Kubo
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ let package = Package(
|
|||
targets: ["DNSecure"],
|
||||
bundleIdentifier: "xyz.kebo.DNSecure",
|
||||
teamIdentifier: "X4678G5DL2",
|
||||
displayVersion: "1.6.1",
|
||||
displayVersion: "1.6.2",
|
||||
bundleVersion: "1",
|
||||
appIcon: .asset("AppIcon-legacy"),
|
||||
accentColor: .asset("AccentColor"),
|
||||
|
|
@ -43,7 +43,7 @@ let package = Package(
|
|||
.testTarget(
|
||||
name: "DNSecureTests",
|
||||
dependencies: [
|
||||
"DNSecure"
|
||||
.target(name: "DNSecure")
|
||||
],
|
||||
path: "DNSecureTests"
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue