Skip to content
This repository was archived by the owner on May 19, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
9434d61
Create development-pipeline.yml
mset1 Sep 11, 2021
d2f79b9
Create main-pipeline.yml
mset1 Sep 11, 2021
0ac5ac8
Create README.md
mset1 Sep 11, 2021
352774c
Update README.md
mset1 Sep 11, 2021
e0f66c9
Merge branch 'developer' into create-pipelines
mset1 Oct 10, 2021
e33b539
Changed dev pipeline to read from main directory
mset1 Oct 10, 2021
55f4100
Merge branch 'developer' into create-pipelines
mset1 Oct 13, 2021
2a83a17
Merge branch 'developer' into create-pipelines
mset1 Oct 14, 2021
44a931d
Merge branch 'developer' into create-pipelines
mset1 Oct 14, 2021
51cf3ba
Merge branch 'developer' into create-pipelines
mset1 Oct 17, 2021
985d05b
Merge branch 'developer' into create-pipelines
mset1 Oct 18, 2021
a124098
Merge branch 'create-pipelines' into pipelinefix
mset1 Oct 19, 2021
f3c8b25
Removed directory change
mset1 Oct 19, 2021
d85afba
Revert "Removed directory change"
mset1 Oct 19, 2021
f31c0e5
Change directory to .
mset1 Oct 19, 2021
3cca5d1
Fixed capitalization error
mset1 Oct 19, 2021
759ee63
Merge branch 'bertQuestionAnswererTaskService-ImportFix' into create-…
mset1 Oct 19, 2021
ac4516d
Merge branch 'developer' into create-pipelines
mset1 Oct 19, 2021
36bc2a9
Merge branch 'developer' into create-pipelines
mset1 Oct 21, 2021
5924cea
Delete README.md
mset1 Oct 21, 2021
37e693d
Merge branch 'developer' into create-pipelines
mset1 Oct 25, 2021
3f2a78e
Added ios build
mset1 Oct 26, 2021
80240a9
Removed invalid tags
mset1 Oct 26, 2021
2bfba22
Renamed ios to io to match action
mset1 Oct 26, 2021
5e9fae2
Testing new build command
mset1 Oct 26, 2021
b065413
Removed old build
mset1 Oct 26, 2021
61eafa0
Removed all irrelevant things for faster build
mset1 Oct 26, 2021
cb68bd7
same
mset1 Oct 26, 2021
2c4cd77
Re-added other jobs
mset1 Oct 26, 2021
154b262
renamed jobs
mset1 Oct 26, 2021
0c1af3b
Added fastlane init
mset1 Oct 26, 2021
b0279f2
Changed brew to gem
mset1 Oct 26, 2021
6978741
Testing flutter build ipa, created test scripts
mset1 Nov 1, 2021
819d030
Fixed alignment issue
mset1 Nov 1, 2021
d34df65
Debugging decrypt_secrets
mset1 Nov 1, 2021
dfdcfdd
Debugging decrypt secrets
mset1 Nov 1, 2021
bb77d48
Testing script
mset1 Nov 1, 2021
5110410
Update development-pipeline.yml
mset1 Nov 1, 2021
145bd9e
Change permissions
mset1 Nov 1, 2021
afc64f1
Update development-pipeline.yml
mset1 Nov 1, 2021
121169d
Updated to sudo
mset1 Nov 1, 2021
b5a6f15
Add chmod
mset1 Nov 1, 2021
e153247
added decrypt secrets
mset1 Nov 1, 2021
c6abadb
Renamed gpg
mset1 Nov 1, 2021
4824e3f
Update development-pipeline.yml
mset1 Nov 1, 2021
acfa3a8
Update development-pipeline.yml
mset1 Nov 1, 2021
4d1d75a
Update decrypt_secrets.sh
mset1 Nov 1, 2021
640d73c
Update decrypt_secrets.sh
mset1 Nov 1, 2021
84759a2
Update development-pipeline.yml
mset1 Nov 1, 2021
ece8c86
Run gpg directoly
mset1 Nov 1, 2021
bba6705
Update development-pipeline.yml
mset1 Nov 1, 2021
535425c
Update development-pipeline.yml
mset1 Nov 1, 2021
9e96def
Added test secret
mset1 Nov 1, 2021
0b977a6
Update decrypt_secrets.sh
mset1 Nov 1, 2021
be2c4a8
Using secretrs
mset1 Nov 1, 2021
9113a2c
Update decrypt_secrets.sh
mset1 Nov 1, 2021
4283b05
Update development-pipeline.yml
mset1 Nov 1, 2021
d18d14b
Update decrypt_secrets.sh
mset1 Nov 1, 2021
8992717
Test
mset1 Nov 1, 2021
f08dabe
Update decrypt_secrets.sh
mset1 Nov 1, 2021
7266a6a
Update development-pipeline.yml
mset1 Nov 6, 2021
80a0439
Merge branch 'developer' into create-pipelines
mset1 Nov 6, 2021
0954665
Update development-pipeline.yml
mset1 Nov 6, 2021
2cda7f5
Update development-pipeline.yml
mset1 Nov 6, 2021
aed01c3
Update development-pipeline.yml
mset1 Nov 6, 2021
cade134
Merge branch 'developer' into create-pipelines
mset1 Nov 6, 2021
ff37344
update pipeline to use gpg headless
Guazi Nov 6, 2021
cbd15e4
Merge branch 'create-pipelines' of https://github.com/umgc/fall2021 i…
Guazi Nov 6, 2021
6f67631
Update development-pipeline.yml
Guazi Nov 6, 2021
19afd2f
Added securities to decrypt-secrets
mset1 Nov 6, 2021
e7ab050
Testing passing in a secret and unzipping
mset1 Nov 6, 2021
541b5be
Testing unzipping mobileprovision
mset1 Nov 6, 2021
ce8eb17
Update development-pipeline.yml
mset1 Nov 6, 2021
9275c40
clear cache before entering password
mset1 Nov 7, 2021
8c089b5
Test B64 encode
mset1 Nov 7, 2021
db06771
Try to find the app file
mset1 Nov 7, 2021
e1d62bf
Attempting to use gpg on mobilprovisions
mset1 Nov 11, 2021
096edd1
Added command option to gpg
mset1 Nov 11, 2021
b630bf5
Hard coding passcode
mset1 Nov 11, 2021
6c1e9a8
Attempting decrypt with secret
mset1 Nov 11, 2021
508a83d
Putting in the rest of decrypt secrets
mset1 Nov 11, 2021
57c6edf
Fixed typo; finding app file
mset1 Nov 11, 2021
c743447
Fixed typo
mset1 Nov 11, 2021
84b80d9
Rearranged security imports
mset1 Nov 11, 2021
df30406
Printing commands as we run them
mset1 Nov 11, 2021
46bfba8
Update decrypt_secrets.sh
mset1 Nov 11, 2021
3322d50
Update decrypt_secrets.sh
mset1 Nov 11, 2021
5d9127b
try using ios keys as security import pw
mset1 Nov 11, 2021
fae3d0e
Attempting to build archive and ipa
mset1 Nov 12, 2021
8e26b43
Seeing list of schemes
mset1 Nov 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/scripts/build_ipa.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh -x

xcodebuild -list

xcodebuild -workspace ./ios/Runner.xcworkspace \
-scheme CLI \
-sdk iphoneos \
-configuration AppStoreDistribution archive \
-archivePath ./build/CLI.xcarchive

xcodebuild -exportArchive \
-archivePath ./build/CLI.xcarchive \
-exportOptionsPlist ./ios/exportOptions.plist \
-exportPath ./build

ls ./build
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions .github/secrets/TestBase64.b64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VGVzdA==
2 changes: 2 additions & 0 deletions .github/secrets/TestGPG.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
��z������Bf���J,+������'�%�}=�%a�HE)� Q�5<��.'/�f�ɍt�qA�t �
���
Expand Down
25 changes: 25 additions & 0 deletions .github/secrets/decrypt_secrets.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/sh -x

#echo "$IOS_KEYS" | gpg --batch --yes --passphrase-fd 0 --output ./.github/secrets/TestGPG_output.txt ./.github/secrets/TestGPG.gpg
#cat ./.github/secrets/TestGPG_output.txt

#base64 -d ./.github/secrets/TestBase64.b64 > ./.github/secrets/TestBase64.txt
#cat ./.github/secrets/TestBase64.txt

#echo RELOADAGENT | gpg-connect-agent
echo "$IOS_KEYS" | gpg --batch --yes --passphrase-fd 0 --output ./.github/secrets/Apple-Store-UMGC_Profile.mobileprovision --decrypt ./.github/secrets/Apple-Store-UMGC_Profile.mobileprovision.gpg
echo "$IOS_KEYS" | gpg --batch --yes --passphrase-fd 0 --output ./.github/secrets/Apple-Store-UMGC-ios_distribution.p12 --decrypt ./.github/secrets/Apple-Store-UMGC-ios_distribution.p12.gpg

mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles

cp ./.github/secrets/Apple-Store-UMGC_Profile.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/Apple-Store-UMGC_Profile.mobileprovision

security create-keychain -p "" build.keychain

security import ./.github/secrets/Apple-Store-UMGC-ios_distribution.p12 -t agg -k ~/Library/Keychains/build.keychain -P "$IOS_KEYS" -A

security list-keychains -s ~/Library/Keychains/build.keychain
security default-keychain -s ~/Library/Keychains/build.keychain
security unlock-keychain -p "" ~/Library/Keychains/build.keychain

security set-key-partition-list -S apple-tool:,apple: -s -k "" ~/Library/Keychains/build.keychain
69 changes: 69 additions & 0 deletions .github/workflows/development-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Dev Linter, Build, Unit Test

env:
FLUTTER_VERSION: "debug"

on:
push:
branches: [ developer ]
pull_request:
branches: [ developer ]

workflow_dispatch:

jobs:
# linter:
# runs-on: ubuntu-latest
# name: Lint flutter code
# steps:
# - name: Checkout code
# uses: actions/checkout@v2

# # Setup Flutter
# - name: Set up Flutter
# uses: subosito/flutter-action@v1

# # Add formating standards
# - run: |
# cd ./
# flutter pub add --dev effective_dart
# flutter pub get
# # Analyze
# - name: Analyze Flutter
# uses: ValentinVignal/action-dart-analyze@v0.11
# with:
# fail-on: "analyze"

build-ios:
name: Build Project IOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- run: chmod +x ./.github/secrets/decrypt_secrets.sh
- name: Setup provisioning profile
run: ./.github/secrets/decrypt_secrets.sh
env:
IOS_KEYS: ${{ secrets.IOS_KEYS }}

- run: chmod +x ./.github/scripts/build_ipa.sh
- name: Create IPA
run: ./.github/scripts/build_ipa.sh


# test:
# name: Run Unit Tests
# runs-on: macos-latest

# steps:
# - uses: actions/checkout@v2

# - name: Set up Flutter
# uses: subosito/flutter-action@v1
# - run: flutter pub get

# - name: Run tests
# run: flutter test

85 changes: 85 additions & 0 deletions .github/workflows/main-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Main Linter, Build, Unit Test

env:
FLUTTER_VERSION: "debug"

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

jobs:
linter:
runs-on: ubuntu-latest
name: Lint flutter code
steps:
- name: Checkout code
uses: actions/checkout@v2

# Setup Flutter
- name: Set up Flutter
uses: subosito/flutter-action@v1

# Add formating standards
- run: |
cd ./
flutter pub add --dev effective_dart
flutter pub get
# Analyze
- name: Analyze Flutter
uses: ValentinVignal/action-dart-analyze@v0.11
with:
fail-on: "analyze"

build-ios:
name: Build Project IOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- uses: subosito/flutter-action@v1
- run: flutter pub get
- run: flutter build ios --no-codesign
- run: gem install fastlane
- run: |
cd ./ios
fastlane init

build-apk:
name: Build Project APK
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up Flutter
uses: subosito/flutter-action@v1
- run: flutter pub get

- name: Build APK
run: flutter build apk

- name: 'Upload APK Artifact'
uses: 'actions/upload-artifact@v2'
with:
name: memory_enhancer_app-apk-${{env.FLUTTER_VERSION}}
path: ./build/app/outputs/flutter-apk/*.apk

test:
name: Run Unit Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Flutter
uses: subosito/flutter-action@v1
- run: flutter pub get

- name: Run tests
run: flutter test
10 changes: 10 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ExpandedNodes": [
"",
"\\.github",
"\\.github\\secrets",
"\\.github\\workflows"
],
"SelectedNode": "\\.github\\secrets\\Apple-Store-UMGC-ios_distribution.p12.gpg",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/fall2021/v16/.suo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
4 changes: 4 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@ end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
end
end
end
10 changes: 10 additions & 0 deletions ios/exportOptions.plist
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>SWEN670CapstoneFall2021</key>
<string>SWEN670---</string>
</dict>
</plist>