Skip to content

Commit

Permalink
Merge pull request #85 from sparcs-kaist/chore/change-version-to-1.0.4
Browse files Browse the repository at this point in the history
Chore/change version to 1.0.4
  • Loading branch information
sangohkim authored Feb 16, 2024
2 parents 2f8d2d9 + 402446d commit 6ddf447
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 28 deletions.
22 changes: 14 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# 기여하기

## Release 절차

1. [Releases](https://github.com/sparcs-kaist/new-ara-app/releases)에 갑니다.
2. 이번 버전에서 변경된 사항을 Changes에 작성합니다.드래프트로 올립니다.
3. `pubspec.yaml`의 버전을 하나 올리는 커밋을 원격 저장소에 Pull Request하고 Merge 합니다.
4. fastlane으로 Android와 iOS에 deploy를 합니다.
5. github release 페이지에서 드래프트를 풉니다.

~~버전을 하나 올린 후 `flutter build ios`를 반드시 실행해 주도록 합니다~~
ios FastFile에 `sh "flutter build ios --release --no-codesign --no-tree-shake-icons"` 추가해서 fastlane시 항상 자동으로 빌드하도록 수정했습니다.

## How to deploy

### Fastlane 설정
Expand Down Expand Up @@ -54,16 +65,11 @@ team_id("N5V8W52U3U") # Developer Portal Team ID
- Android: Google Play 스토어 `비공개 테스트 - Alpha` 트랙으로 업로드
- iOS: TestFlight로 업로드

아래 명령어 시 `pubspec.yaml`에 있는 버젼 정보와 현재 시각으로 지정된 빌드 정보 기준으로 업로드 됩니다.

```bash
cd android && bundle exec fastlane alpha && cd ../ios && bundle exec fastlane alpha
```

배포 후 `pubspec.yaml`과 iOS Xcode 프로젝트 관련 파일들의 변경사항을 Discard 합니다.

### Release Note 작성

1. [Releases](https://github.com/sparcs-kaist/otl-app/releases)에 갑니다.
2. 이번 버전에서 변경된 사항을 Changes에 작성합니다.
3. `pubspec.yaml`의 버전을 하나 올리는 커밋을 추가합니다.
배포 후, `pubspec.yaml`과 iOS Xcode 프로젝트 관련 파일들( `ios/Runner.xcodeproj/project.pbxproj`, `ios/Runner/Info.plist` )의 변경사항을 Discard 합니다.

**버전을 하나 올린 후 `flutter build ios`를 반드시 실행해 주도록 합니다.**
9 changes: 7 additions & 2 deletions android/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ GEM
declarative (0.0.20)
digest-crc (0.6.5)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.6.20240107)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.8.1)
emoji_regex (3.2.3)
excon (0.109.0)
Expand Down Expand Up @@ -130,7 +131,7 @@ GEM
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.1)
google-cloud-storage (1.46.0)
google-cloud-storage (1.45.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
Expand Down Expand Up @@ -189,6 +190,9 @@ GEM
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.9.1)
unicode-display_width (2.5.0)
webrick (1.8.1)
word_wrap (1.0.0)
Expand All @@ -206,6 +210,7 @@ GEM

PLATFORMS
arm64-darwin-22
arm64-darwin-23

DEPENDENCIES
fastlane
Expand Down
30 changes: 13 additions & 17 deletions ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ GEM
specs:
CFPropertyList (3.0.6)
rexml
activesupport (7.1.2)
base64
bigdecimal
activesupport (6.1.7.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
algoliasearch (1.27.5)
Expand All @@ -37,13 +33,11 @@ GEM
aws-sigv4 (1.8.0)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
base64 (0.2.0)
bigdecimal (3.1.5)
claide (1.1.0)
cocoapods (1.14.3)
cocoapods (1.15.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.14.3)
cocoapods-core (= 1.15.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
Expand All @@ -58,7 +52,7 @@ GEM
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.14.3)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
Expand All @@ -82,14 +76,12 @@ GEM
commander (4.6.0)
highline (~> 2.0.0)
concurrent-ruby (1.2.2)
connection_pool (2.4.1)
declarative (0.0.20)
digest-crc (0.6.5)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.6.20240107)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.8.1)
drb (2.2.0)
ruby2_keywords
emoji_regex (3.2.3)
escape (0.0.4)
ethon (0.16.0)
Expand Down Expand Up @@ -192,7 +184,7 @@ GEM
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.1)
google-cloud-storage (1.46.0)
google-cloud-storage (1.45.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-iamcredentials_v1 (~> 0.1)
Expand Down Expand Up @@ -221,7 +213,6 @@ GEM
molinillo (0.8.0)
multi_json (1.15.0)
multipart-post (2.3.0)
mutex_m (0.2.0)
nanaimo (0.3.0)
nap (1.1.0)
naturally (2.2.1)
Expand Down Expand Up @@ -263,6 +254,9 @@ GEM
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.9.1)
unicode-display_width (2.5.0)
webrick (1.8.1)
word_wrap (1.0.0)
Expand All @@ -277,9 +271,11 @@ GEM
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)
zeitwerk (2.6.13)

PLATFORMS
arm64-darwin-22
arm64-darwin-23

DEPENDENCIES
cocoapods
Expand Down
3 changes: 3 additions & 0 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ platform :ios do
teamid: CredentialsManager::AppfileConfig.try_fetch_value(:team_id)
)

#버젼 변경할 때마다 빌드해야하는 번거로움을 줄이기 위해서 코드 추가
sh "flutter build ios --release --no-codesign --no-tree-shake-icons"

build_app(
workspace: "Runner.xcworkspace",
scheme: "Runner",
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.1.3+1
version: 0.1.4+1

environment:
sdk: '>=2.18.0 <3.0.0'
Expand Down

0 comments on commit 6ddf447

Please sign in to comment.