Compare commits

...
This repository has been archived on 2023-06-16. You can view files and clone it, but cannot push or open issues or pull requests.

14 Commits

Author SHA1 Message Date
Sarah Jamie Lewis 9c24a8a342 Ensure Block Unknown Connections Settings is Respected on Protocol Engine Restart 2023-02-08 13:48:37 -08:00
Sarah Jamie Lewis 2debfa2743 go env
continuous-integration/drone/pr Build is running Details
2023-02-01 11:21:13 -08:00
Sarah Jamie Lewis 6b8a31082a 1.10.3 test
continuous-integration/drone/pr Build was killed Details
2023-02-01 11:10:24 -08:00
Sarah Jamie Lewis fa53ddc4f8 remove tor
continuous-integration/drone/pr Build was killed Details
2023-01-31 22:18:31 -08:00
Sarah Jamie Lewis 24ba1d22c0 git
continuous-integration/drone/pr Build was killed Details
2023-01-31 22:14:28 -08:00
Sarah Jamie Lewis 26dad1e947 trimpath
continuous-integration/drone/pr Build was killed Details
2023-01-31 22:07:44 -08:00
Sarah Jamie Lewis e1bfa8999c reinstall gomobile
continuous-integration/drone/pr Build was killed Details
2023-01-31 21:58:24 -08:00
Sarah Jamie Lewis e8313dd9c8 java
continuous-integration/drone/pr Build was killed Details
2023-01-31 21:40:27 -08:00
Sarah Jamie Lewis 6517171f70 is it cache?
continuous-integration/drone/pr Build was killed Details
2023-01-31 21:32:49 -08:00
Sarah Jamie Lewis ddf99ae8ee binary
continuous-integration/drone/pr Build was killed Details
2023-01-31 21:23:51 -08:00
Sarah Jamie Lewis 7846574b1b libc
continuous-integration/drone/pr Build was killed Details
2023-01-31 21:19:11 -08:00
Sarah Jamie Lewis 13f354f4a6 rep build experiment
continuous-integration/drone/pr Build is running Details
2023-01-31 21:14:21 -08:00
Sarah Jamie Lewis 2023069fbc Update libc
continuous-integration/drone/pr Build is running Details
2023-01-31 21:11:10 -08:00
Sarah Jamie Lewis a0e731de6a Check
continuous-integration/drone/pr Build is running Details
2023-01-31 20:53:50 -08:00
2 changed files with 24 additions and 13 deletions

View File

@ -11,9 +11,6 @@ steps:
path: /go
commands:
- go install honnef.co/go/tools/cmd/staticcheck@latest
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
- chmod a+x tor
- git fetch --tags
#- export GO111MODULE=on
#- go mod vendor
@ -33,6 +30,21 @@ steps:
- staticcheck ./...
#Todo: fix all the lint errors and add `-set_exit_status` above to enforce linting
- name: build-android
image: openpriv/android-go-mobile:2023.02
volumes:
- name: deps
path: /go
commands:
- git checkout tags/v1.10.4 -b v1.10.4
- git status
- go mod download
- gomobile init
- ./switch-gomobile.sh
- go env
- gomobile bind -target android/arm,android/arm64,android/amd64 -trimpath -ldflags="-buildid=$(git describe --tags) -X cwtch.buildVer=$(git describe --tags) -X cwtch.buildDate=$(git log -1 --format=%cd --date=format:%G-%m-%d-%H-%M)"
- sha512sum cwtch.aar
- name: build-linux
image: golang:1.19.1
volumes:
@ -41,16 +53,6 @@ steps:
commands:
- make linux
- name: build-android
image: openpriv/android-go-mobile:2023.02
volumes:
- name: deps
path: /go
commands:
- go mod download
- gomobile init
- make android
- name: build-windows
image: openpriv/mingw-go:2023.01
environment:

View File

@ -611,6 +611,14 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
case event.ProtocolEngineCreated:
// TODO this code should be moved into Cwtch during the API officialization...
settings := ReadGlobalSettings()
// ensure that protocol engine respects blocking settings...
if settings.BlockUnknownConnections {
profile.BlockUnknownConnections()
} else {
profile.AllowUnknownConnections()
}
// Now that the Peer Engine is Activated, Share Files
key, exists := profile.GetScopedZonedAttribute(attr.PublicScope, attr.ProfileZone, constants.CustomProfileImageKey)
if exists {
@ -625,6 +633,7 @@ func (eh *EventHandler) handleProfileEvent(ev *EventProfileEnvelope) string {
if err == nil {
fsf.ReShareFiles(profile)
}
}
}