mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 15:45:20 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8887e7318 | ||
|
|
63918bfebc | ||
|
|
b30a30ecce |
@@ -1,20 +0,0 @@
|
|||||||
# Prevent Github Languages stats skewing:
|
|
||||||
|
|
||||||
# Binaries and assets
|
|
||||||
**/*.xcframework/** linguist-vendored
|
|
||||||
**/*.xcassets/** linguist-vendored
|
|
||||||
|
|
||||||
# Generated files
|
|
||||||
**/*.pbxproj linguist-generated
|
|
||||||
**/*.storyboard linguist-generated
|
|
||||||
Package.resolved linguist-generated
|
|
||||||
|
|
||||||
# Downloaded CSVs
|
|
||||||
relays/online_relays_gps.csv linguist-vendored
|
|
||||||
|
|
||||||
# Docs
|
|
||||||
**/*.md linguist-documentation
|
|
||||||
|
|
||||||
# Configs
|
|
||||||
Configs/*.xcconfig linguist-documentation
|
|
||||||
**/*.plist linguist-documentation
|
|
||||||
@@ -7,7 +7,6 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-relay-data:
|
update-relay-data:
|
||||||
@@ -18,54 +17,24 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Fetch GeoRelays
|
- name: Fetch GeoRelays
|
||||||
run: |
|
run: |
|
||||||
wget -q https://raw.githubusercontent.com/permissionlesstech/georelays/refs/heads/main/nostr_relays.csv
|
wget https://raw.githubusercontent.com/permissionlesstech/georelays/refs/heads/main/nostr_relays.csv
|
||||||
mv nostr_relays.csv ./relays/online_relays_gps.csv
|
mv nostr_relays.csv ./relays/online_relays_gps.csv
|
||||||
|
|
||||||
- name: Configure git
|
- name: Check for changes
|
||||||
|
id: git-check
|
||||||
run: |
|
run: |
|
||||||
git config user.email "action@github.com"
|
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT
|
||||||
git config user.name "GitHub Action"
|
|
||||||
|
- name: Commit and push changes
|
||||||
- name: Create update branch if changes
|
if: steps.git-check.outputs.changes == 'true'
|
||||||
id: create_branch
|
|
||||||
run: |
|
run: |
|
||||||
# exit early if no changes
|
git config --local user.email "action@github.com"
|
||||||
if git diff --quiet --relays/online_relays_gps.csv; then
|
git config --local user.name "GitHub Action"
|
||||||
echo "changed=false" >> $GITHUB_OUTPUT
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# branch name with timestamp
|
|
||||||
BRANCH="update-georelays-$(date -u +%Y%m%dT%H%M%SZ)"
|
|
||||||
git checkout -b "$BRANCH"
|
|
||||||
|
|
||||||
git add relays/online_relays_gps.csv
|
git add relays/online_relays_gps.csv
|
||||||
git commit -m "Automated update of relay data - $(date -u --rfc-3339=seconds)"
|
git commit -m "Automated update of relay data - $(date -u)"
|
||||||
echo "changed=true" >> $GITHUB_OUTPUT
|
git push
|
||||||
echo "branch=$BRANCH" >> $GITHUB_OUTPUT
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Push branch
|
|
||||||
if: steps.create_branch.outputs.changed == 'true'
|
|
||||||
run: |
|
|
||||||
git push --set-upstream origin "${{ steps.create_branch.outputs.branch }}"
|
|
||||||
|
|
||||||
- name: Create pull request
|
|
||||||
if: steps.create_branch.outputs.changed == 'true'
|
|
||||||
uses: peter-evans/create-pull-request@v5
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
commit-message: Automated update of relay data
|
|
||||||
branch: ${{ steps.create_branch.outputs.branch }}
|
|
||||||
base: main
|
|
||||||
title: Automated update of relay data
|
|
||||||
body: |
|
|
||||||
This PR was created automatically by the scheduled workflow. It updates relays/online_relays_gps.csv from the GeoRelays source.
|
|
||||||
labels: automated, georelays
|
|
||||||
|
|
||||||
- name: No changes
|
|
||||||
if: steps.create_branch.outputs.changed != 'true'
|
|
||||||
run: echo "No changes to relays/online_relays_gps.csv"
|
|
||||||
@@ -24,4 +24,4 @@ jobs:
|
|||||||
run: swift build
|
run: swift build
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: swift test --parallel
|
run: swift test --parallel --disable-swift-testing # so it only runs xctests: https://github.com/swiftlang/swift-package-manager/issues/8529#issuecomment-2815711345
|
||||||
|
|||||||
+4
-8
@@ -9,6 +9,9 @@ plans/
|
|||||||
CLAUDE.md
|
CLAUDE.md
|
||||||
AGENTS.md
|
AGENTS.md
|
||||||
|
|
||||||
|
## User settings
|
||||||
|
xcuserdata/
|
||||||
|
|
||||||
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
|
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
|
||||||
*.xcscmblueprint
|
*.xcscmblueprint
|
||||||
*.xccheckout
|
*.xccheckout
|
||||||
@@ -54,8 +57,7 @@ iOSInjectionProject/
|
|||||||
|
|
||||||
## Xcode project
|
## Xcode project
|
||||||
*.xcodeproj/project.xcworkspace/
|
*.xcodeproj/project.xcworkspace/
|
||||||
## Xcode User settings
|
*.xcodeproj/xcshareddata/
|
||||||
xcuserdata/
|
|
||||||
|
|
||||||
## Python
|
## Python
|
||||||
__pycache__/
|
__pycache__/
|
||||||
@@ -66,9 +68,6 @@ __pycache__/
|
|||||||
*.tmp
|
*.tmp
|
||||||
*.temp
|
*.temp
|
||||||
|
|
||||||
## Cache
|
|
||||||
.cache/
|
|
||||||
|
|
||||||
# Local build results
|
# Local build results
|
||||||
.Result*/
|
.Result*/
|
||||||
.Result*.xcresult/
|
.Result*.xcresult/
|
||||||
@@ -76,6 +75,3 @@ TestResult.xcresult/
|
|||||||
*.xcresult/
|
*.xcresult/
|
||||||
build.log
|
build.log
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
# Local configs
|
|
||||||
Local.xcconfig
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
#include "Release.xcconfig"
|
|
||||||
|
|
||||||
// Optional include of local configs
|
|
||||||
#include? "Local.xcconfig"
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
// Your Apple Developer Team ID - https://stackoverflow.com/a/18727947
|
|
||||||
DEVELOPMENT_TEAM = ABC123
|
|
||||||
|
|
||||||
// Unique bundle id to be able to register and run locally
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = chat.bitchat.$(DEVELOPMENT_TEAM)
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
MARKETING_VERSION = 1.5.0
|
|
||||||
CURRENT_PROJECT_VERSION = 1
|
|
||||||
|
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 16.0
|
|
||||||
MACOSX_DEPLOYMENT_TARGET = 13.0
|
|
||||||
SWIFT_VERSION = 5.0
|
|
||||||
|
|
||||||
DEVELOPMENT_TEAM = L3N5LHJD5Y
|
|
||||||
CODE_SIGN_STYLE = Automatic
|
|
||||||
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = chat.bitchat
|
|
||||||
+5
-5
@@ -8,7 +8,7 @@
|
|||||||
<key>BinaryPath</key>
|
<key>BinaryPath</key>
|
||||||
<string>tor-nolzma.framework/tor-nolzma</string>
|
<string>tor-nolzma.framework/tor-nolzma</string>
|
||||||
<key>LibraryIdentifier</key>
|
<key>LibraryIdentifier</key>
|
||||||
<string>ios-arm64</string>
|
<string>macos-arm64</string>
|
||||||
<key>LibraryPath</key>
|
<key>LibraryPath</key>
|
||||||
<string>tor-nolzma.framework</string>
|
<string>tor-nolzma.framework</string>
|
||||||
<key>SupportedArchitectures</key>
|
<key>SupportedArchitectures</key>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<string>arm64</string>
|
<string>arm64</string>
|
||||||
</array>
|
</array>
|
||||||
<key>SupportedPlatform</key>
|
<key>SupportedPlatform</key>
|
||||||
<string>ios</string>
|
<string>macos</string>
|
||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>BinaryPath</key>
|
<key>BinaryPath</key>
|
||||||
@@ -36,9 +36,9 @@
|
|||||||
</dict>
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>BinaryPath</key>
|
<key>BinaryPath</key>
|
||||||
<string>tor-nolzma.framework/Versions/A/tor-nolzma</string>
|
<string>tor-nolzma.framework/tor-nolzma</string>
|
||||||
<key>LibraryIdentifier</key>
|
<key>LibraryIdentifier</key>
|
||||||
<string>macos-arm64</string>
|
<string>ios-arm64</string>
|
||||||
<key>LibraryPath</key>
|
<key>LibraryPath</key>
|
||||||
<string>tor-nolzma.framework</string>
|
<string>tor-nolzma.framework</string>
|
||||||
<key>SupportedArchitectures</key>
|
<key>SupportedArchitectures</key>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
<string>arm64</string>
|
<string>arm64</string>
|
||||||
</array>
|
</array>
|
||||||
<key>SupportedPlatform</key>
|
<key>SupportedPlatform</key>
|
||||||
<string>macos</string>
|
<string>ios</string>
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
-4
@@ -203,10 +203,6 @@ struct or_options_t {
|
|||||||
/** Above this value, consider ourselves low on RAM. */
|
/** Above this value, consider ourselves low on RAM. */
|
||||||
uint64_t MaxMemInQueues_low_threshold;
|
uint64_t MaxMemInQueues_low_threshold;
|
||||||
|
|
||||||
uint64_t MaxHSDirCacheBytes;/**< If we have more memory than this allocated
|
|
||||||
* for the hidden service directory cache,
|
|
||||||
* run the HS cache OOM handler */
|
|
||||||
|
|
||||||
/** @name port booleans
|
/** @name port booleans
|
||||||
*
|
*
|
||||||
* Derived booleans: For server ports and ControlPort, true iff there is a
|
* Derived booleans: For server ports and ControlPort, true iff there is a
|
||||||
+1
-3
@@ -1,7 +1,7 @@
|
|||||||
/* Copyright (c) 2001 Matej Pfajfar.
|
/* Copyright (c) 2001 Matej Pfajfar.
|
||||||
* Copyright (c) 2001-2004, Roger Dingledine.
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
||||||
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
||||||
* Copyright (c) 2007-2025, The Tor Project, Inc. */
|
* Copyright (c) 2007-2021, The Tor Project, Inc. */
|
||||||
/* See LICENSE for licensing information */
|
/* See LICENSE for licensing information */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -39,6 +39,4 @@ int channelpadding_get_circuits_available_timeout(void);
|
|||||||
unsigned int channelpadding_get_channel_idle_timeout(const channel_t *, int);
|
unsigned int channelpadding_get_channel_idle_timeout(const channel_t *, int);
|
||||||
void channelpadding_new_consensus_params(const networkstatus_t *ns);
|
void channelpadding_new_consensus_params(const networkstatus_t *ns);
|
||||||
|
|
||||||
void channelpadding_log_heartbeat(void);
|
|
||||||
|
|
||||||
#endif /* !defined(TOR_CHANNELPADDING_H) */
|
#endif /* !defined(TOR_CHANNELPADDING_H) */
|
||||||
-12
@@ -88,18 +88,6 @@ struct edge_connection_t {
|
|||||||
* for this edge, used to compute advisory rates */
|
* for this edge, used to compute advisory rates */
|
||||||
uint64_t drain_start_usec;
|
uint64_t drain_start_usec;
|
||||||
|
|
||||||
/**
|
|
||||||
* Monotime timestamp of when we started the XOFF grace period for this edge.
|
|
||||||
*
|
|
||||||
* See the comments on `XOFF_GRACE_PERIOD_USEC` for an explanation on how
|
|
||||||
* this is used.
|
|
||||||
*
|
|
||||||
* A value of 0 is considered "unset". This isn't great, but we set this
|
|
||||||
* field as the output from `monotime_absolute_usec()` which should only ever
|
|
||||||
* be 0 within the first 1 microsecond of initializing the monotonic timer
|
|
||||||
* subsystem. */
|
|
||||||
uint64_t xoff_grace_period_start_usec;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Number of bytes written since we either emptied our buffers,
|
* Number of bytes written since we either emptied our buffers,
|
||||||
* or sent an advisory drate rate. Can wrap, buf if so,
|
* or sent an advisory drate rate. Can wrap, buf if so,
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user