-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #603 from mastodon/release-1.4.7
Release v1.4.7
- Loading branch information
Showing
805 changed files
with
31,299 additions
and
12,798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import_name: 'ArkanaKeys' | ||
namespace: 'Keys' | ||
result_path: 'Dependencies' | ||
flavors: | ||
- AppStore | ||
swift_declaration_strategy: let | ||
should_generate_unit_tests: true | ||
package_manager: spm | ||
environments: | ||
- Debug | ||
- Release | ||
global_secrets: | ||
# nothing | ||
environment_secrets: | ||
# Will lookup for <Key>Debug and <Key>Release env vars (assuming no flavor was declared) | ||
# Mastodon Push Notification Endpoint | ||
- NotificationEndpoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Required | ||
|
||
# https://<your-domain>/relay-to/development | ||
NotificationEndpointDebug="" | ||
|
||
# https://<your-domain>/relay-to/production | ||
NotificationEndpointRelease="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeu | ||
set -o pipefail | ||
|
||
function finish() { | ||
ditto -c -k --sequesterRsrc --keepParent "${RESULT_BUNDLE_PATH}" "${RESULT_BUNDLE_PATH}.zip" | ||
rm -rf "${RESULT_BUNDLE_PATH}" | ||
} | ||
|
||
trap finish EXIT | ||
|
||
SDK="${SDK:-iphoneos}" | ||
WORKSPACE="${WORKSPACE:-Mastodon.xcworkspace}" | ||
SCHEME="${SCHEME:-Mastodon}" | ||
CONFIGURATION=${CONFIGURATION:-Release} | ||
|
||
BUILD_DIR=${BUILD_DIR:-.build} | ||
ARTIFACT_PATH=${RESULT_PATH:-${BUILD_DIR}/Artifacts} | ||
RESULT_BUNDLE_PATH="${ARTIFACT_PATH}/${SCHEME}.xcresult" | ||
ARCHIVE_PATH=${ARCHIVE_PATH:-${BUILD_DIR}/Archives/${SCHEME}.xcarchive} | ||
DERIVED_DATA_PATH=${DERIVED_DATA_PATH:-${BUILD_DIR}/DerivedData} | ||
EXPORT_OPTIONS_FILE=".github/support/ExportOptions.plist" | ||
|
||
WORK_DIR=$(pwd) | ||
API_PRIVATE_KEYS_PATH="${WORK_DIR}/${BUILD_DIR}/private_keys" | ||
API_KEY_FILE="${API_PRIVATE_KEYS_PATH}/api_key.p8" | ||
|
||
rm -rf "${RESULT_BUNDLE_PATH}" | ||
|
||
rm -rf "${API_PRIVATE_KEYS_PATH}" | ||
mkdir -p "${API_PRIVATE_KEYS_PATH}" | ||
echo -n "${ENV_API_PRIVATE_KEY_BASE64}" | base64 --decode > "${API_KEY_FILE}" | ||
|
||
BUILD_NUMBER=$(app-store-connect get-latest-testflight-build-number $ENV_APP_ID --issuer-id $ENV_ISSUER_ID --key-id $ENV_API_KEY_ID --private-key @file:$API_KEY_FILE) | ||
BUILD_NUMBER=$((BUILD_NUMBER+1)) | ||
CURRENT_PROJECT_VERSION=${BUILD_NUMBER:-0} | ||
|
||
echo "GITHUB_TAG_NAME=build-$CURRENT_PROJECT_VERSION" >> $GITHUB_ENV | ||
|
||
agvtool new-version -all $CURRENT_PROJECT_VERSION | ||
|
||
xcrun xcodebuild clean \ | ||
-workspace "${WORKSPACE}" \ | ||
-scheme "${SCHEME}" \ | ||
-configuration "${CONFIGURATION}" | ||
|
||
xcrun xcodebuild archive \ | ||
-workspace "${WORKSPACE}" \ | ||
-scheme "${SCHEME}" \ | ||
-configuration "${CONFIGURATION}" \ | ||
-destination generic/platform=iOS \ | ||
-sdk "${SDK}" \ | ||
-parallelizeTargets \ | ||
-showBuildTimingSummary \ | ||
-derivedDataPath "${DERIVED_DATA_PATH}" \ | ||
-archivePath "${ARCHIVE_PATH}" \ | ||
-resultBundlePath "${RESULT_BUNDLE_PATH}" \ | ||
-allowProvisioningUpdates \ | ||
-authenticationKeyPath "${API_KEY_FILE}" \ | ||
-authenticationKeyID "${ENV_API_KEY_ID}" \ | ||
-authenticationKeyIssuerID "${ENV_ISSUER_ID}" | ||
|
||
xcrun xcodebuild \ | ||
-exportArchive \ | ||
-archivePath "${ARCHIVE_PATH}" \ | ||
-exportOptionsPlist "${EXPORT_OPTIONS_FILE}" \ | ||
-exportPath "${ARTIFACT_PATH}/${SCHEME}.ipa" \ | ||
-allowProvisioningUpdates \ | ||
-authenticationKeyPath "${API_KEY_FILE}" \ | ||
-authenticationKeyID "${ENV_API_KEY_ID}" \ | ||
-authenticationKeyIssuerID "${ENV_ISSUER_ID}" | ||
|
||
# Zip up the Xcode Archive into Artifacts folder. | ||
ditto -c -k --sequesterRsrc --keepParent "${ARCHIVE_PATH}" "${ARTIFACT_PATH}/${SCHEME}.xcarchive.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# workaround https://github.com/CocoaPods/CocoaPods/issues/11355 | ||
sed -i '' $'1s/^/source "https:\\/\\/github.com\\/CocoaPods\\/Specs.git"\\\n\\\n/' Podfile | ||
# sed -i '' $'1s/^/source "https:\\/\\/github.com\\/CocoaPods\\/Specs.git"\\\n\\\n/' Podfile | ||
|
||
# Install Ruby Bundler | ||
gem install bundler:2.3.11 | ||
|
||
# Install Ruby Gems | ||
bundle install | ||
|
||
# stub keys. DO NOT use in production | ||
bundle exec pod keys set notification_endpoint "<endpoint>" | ||
bundle exec pod keys set notification_endpoint_debug "<endpoint>" | ||
# Setup notification endpoint | ||
bundle exec arkana | ||
|
||
bundle exec pod install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?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>method</key> | ||
<string>app-store</string> | ||
<key>manageAppVersionAndBuildNumber</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Build for Develop TestFlight | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- release* | ||
- ci-test | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: macOS-12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup | ||
env: | ||
NotificationEndpointDebug: ${{ secrets.NotificationEndpointDebug }} | ||
NotificationEndpointRelease: ${{ secrets.NotificationEndpointRelease }} | ||
run: exec ./.github/scripts/setup.sh | ||
|
||
- name: Install codemagic-cli-tools | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- run: | | ||
pip3 install codemagic-cli-tools | ||
- run: | | ||
codemagic-cli-tools --version || true | ||
- name: Import Code-Signing Certificates | ||
uses: Apple-Actions/import-codesign-certs@v1 # https://github.com/Apple-Actions/import-codesign-certs | ||
with: | ||
keychain: build-p12 | ||
p12-file-base64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} | ||
p12-password: ${{ secrets.P12_PASSWORD }} | ||
|
||
- name: Download Provisioning Profiles | ||
uses: Apple-Actions/download-provisioning-profiles@v1 # https://github.com/Apple-Actions/download-provisioning-profiles | ||
with: | ||
bundle-id: org.joinmastodon.app | ||
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} | ||
api-key-id: ${{ secrets.APPSTORE_KEY_ID }} | ||
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} | ||
|
||
- name: Build | ||
env: | ||
ENV_APP_ID: ${{ secrets.APP_ID }} | ||
ENV_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }} | ||
ENV_API_KEY_ID: ${{ secrets.APPSTORE_KEY_ID }} | ||
ENV_API_PRIVATE_KEY: ${{ secrets.APPSTORE_PRIVATE_KEY }} | ||
ENV_API_PRIVATE_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_KEY_BASE64 }} | ||
run: exec ./.github/scripts/build-release.sh | ||
|
||
- name: Upload TestFlight Build | ||
uses: Apple-Actions/upload-testflight-build@master | ||
with: | ||
app-path: .build/Artifacts/Mastodon.ipa/Mastodon.ipa | ||
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} | ||
api-key-id: ${{ secrets.APPSTORE_KEY_ID }} | ||
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} | ||
|
||
- name: Tag commit | ||
uses: tvdias/[email protected] | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
tag: "${{ env.GITHUB_TAG_NAME }}" | ||
|
||
- name: Clean up keychain and provisioning profile | ||
if: ${{ always() }} | ||
run: | | ||
security delete-keychain build-p12.keychain-db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# Contributing | ||
|
||
- File the issue for bug report and feature request | ||
- File an issue to report a bug or feature request | ||
- Translate the project in our [Crowdin](https://crowdin.com/project/mastodon-for-ios) project | ||
- Make the Pull Request to contribute | ||
|
||
## Bug Report | ||
File the issue about the bug. Make sure you are installing the latest version app from TestFlight or App Store. | ||
File an issue about the bug or feature request. Make sure you are installing the latest version of the app from TestFlight or App Store. | ||
|
||
## Translation | ||
[![Crowdin](https://badges.crowdin.net/mastodon-for-ios/localized.svg)](https://crowdin.com/project/mastodon-for-ios) | ||
|
||
The translation will update regularly. Please request language if not listed via issue. | ||
The translation will update regularly. Please request the language if it is not listed via an issue. | ||
|
||
## Pull Request | ||
|
||
You can make a pull request directly with small block code changes for bugfix or feature implementations. Before making a pull request with hundred lines of changes to this repository, please first discuss the change you wish to make via issue. | ||
You can create a pull request directly with small block code changes for bugfix or feature implementations. Before making a pull request with hundred lines of changes to this repository, please first discuss the change you wish to make via an issue. | ||
|
||
Also, there are lots of existing feature request issues that could be a good-first-issue discussing place. | ||
|
||
Follow the git-flow pattern to make your pull request. | ||
|
||
1. Ensure you are checkout on the `develop` branch. | ||
2. Write your codes and test them on **iPad and iPhone**. | ||
3. Merge the `develop` into your branch then make a Pull Request. Please merge the branch and resolve any conflicts when the `develop` updates. **Do not force push your codes.** | ||
4. Make sure the permission for your folk is open to the reviewer. Code style fix, conflict resolution, and other changes may be committed by the reviewer directly. | ||
1. Ensure you have started a new branch based on the `develop` branch. | ||
2. Write your changes and test them on **iPad and iPhone**. | ||
3. Merge the `develop` branch into your branch then make a Pull Request. Please merge the branch and resolve any conflicts if `develop` updates. **Do not force push your commits.** | ||
4. Make sure the permission for your fork is open to the reviewer. Code style fix, conflict resolution, and other changes may be committed by the reviewer directly. | ||
5. Request a code review and wait for approval. The PR will be merged when it is approved. | ||
|
||
## Documentation | ||
The documents for this app is list under the [Documentation](../Documentation/) folder. We are also welcome contributions for documentation. | ||
The documentation for this app is listed under the [Documentation](../Documentation/) folder. We are also welcoming contributions for documentation. |
Oops, something went wrong.