Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] 地図部分のリファクタリング #900

Merged
merged 84 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
bbcf9df
refactor: Enhance Kyoshin Monitor scale and map components
YumNumm Feb 7, 2025
118a407
chore: Update GitHub Actions workflow branch trigger pattern
YumNumm Feb 7, 2025
2ad510b
chore: Update Google Play deployment workflow
YumNumm Feb 7, 2025
f4628c2
chore: Increase GitHub Actions deployment timeout
YumNumm Feb 7, 2025
f1e5ad1
chore: Finalize Google Play deployment configuration
YumNumm Feb 7, 2025
00d1ccc
chore: Configure Google Play deployment to allow updates for existing…
YumNumm Feb 7, 2025
a627ac4
chore: Implement dynamic build number tracking for Android deployment
YumNumm Feb 7, 2025
7754daf
refactor: Improve Kyoshin Monitor settings and map layer components
YumNumm Feb 7, 2025
2b479e2
refactor: HomeViewからHomePageにリネーム
YumNumm Feb 7, 2025
65d8c8d
feat: Add location marker configuration and permission handling
YumNumm Feb 7, 2025
f2c77e3
recommended change from Xcode
YumNumm Feb 8, 2025
fe6f389
recommended change from Xcode
YumNumm Feb 8, 2025
1f85436
rename: IMapLayer -> MapLayer
YumNumm Feb 8, 2025
54b7877
chore: 不要なlint警告を無効化
YumNumm Feb 8, 2025
d276f14
format
YumNumm Feb 8, 2025
25843cc
add: earthquake_replay as a dependency
YumNumm Feb 8, 2025
5153a50
fix: ci
YumNumm Feb 8, 2025
17d6419
chore(ci): upload-artifact時にファイルが存在しなかったらエラー
YumNumm Feb 8, 2025
9735b37
add: deeplink.eqmonitor.app をURLTypesに追加
YumNumm Feb 8, 2025
c1dcddb
resolve podfile.lock
YumNumm Feb 8, 2025
42e4873
add: sheet
YumNumm Feb 9, 2025
6ecc6cc
add: 直近の地震履歴
YumNumm Feb 9, 2025
642aea4
add: 揺れ検知を表示
YumNumm Feb 9, 2025
2d676f0
remove unused images
YumNumm Feb 9, 2025
180a90a
add: hypocenter image as assets
YumNumm Feb 9, 2025
5fa7409
refactor: 不要なintensity_icon_render関連ファイルを削除
YumNumm Feb 9, 2025
6c4a49c
feat: EEW震源地表示機能を追加
YumNumm Feb 9, 2025
0350467
refactor: 地図表示機能のリファクタリング
YumNumm Feb 9, 2025
dbf5cae
refactor: EEW関連コードのリファクタリング
YumNumm Feb 9, 2025
57016c0
refactor: その他の機能改善とコード整理
YumNumm Feb 9, 2025
3622ae8
Auto format
YumNumm Feb 9, 2025
44edd65
Merge pull request #901 from YumNumm/auto-format/refactor/map
YumNumm Feb 9, 2025
403261f
refactor: Mapコンポーネントのディレクトリ構成を整理
YumNumm Feb 9, 2025
364e8bc
refactor: Mapレイヤー関連のコードを整理
YumNumm Feb 9, 2025
aaa5743
chore: 自動生成ファイルを更新
YumNumm Feb 9, 2025
ec5851a
feat: EEWのP波・S波表示機能の実装
YumNumm Feb 9, 2025
2941936
refactor: 地図レイヤー関連のコード整理
YumNumm Feb 9, 2025
727958d
refactor: 走時計算関連のコード整理
YumNumm Feb 9, 2025
2f2cd40
refactor: その他のコード整理と依存関係の更新
YumNumm Feb 9, 2025
cb35e98
Auto format
YumNumm Feb 9, 2025
5626208
refactor: デバッグ関連の要素を常に表示するよう修正
YumNumm Feb 9, 2025
313c640
Merge branch 'refactor/map' into auto-format/refactor/map
YumNumm Feb 9, 2025
5bb4fbf
Merge pull request #902 from YumNumm/auto-format/refactor/map
YumNumm Feb 9, 2025
65e3437
Merge branch 'develop' into refactor/map
YumNumm Feb 9, 2025
164a893
check-pull-request.yaml を更新
YumNumm Feb 9, 2025
dfaff44
Auto format
YumNumm Feb 9, 2025
32ce46f
Merge pull request #903 from YumNumm/auto-format/refactor/map
YumNumm Feb 10, 2025
83f493a
ci: Improve App Store Connect build number retrieval process
YumNumm Feb 10, 2025
9ee02ae
chore: Update App Store Connect API key ID
YumNumm Feb 10, 2025
5c1f4a8
fix: App Store Connect API関連の修正 - APIフィルターパラメータを修正 - JWTの有効期限を1分に短縮 -…
YumNumm Feb 10, 2025
c5d3cd6
ci: Refine App Store Connect JWT generation and build retrieval
YumNumm Feb 10, 2025
5071c4e
feat(ios): Add photo library usage description and update Xcode proje…
YumNumm Feb 10, 2025
c25d601
refactor: Improve deploy workflow syntax and formatting
YumNumm Feb 10, 2025
609c663
[ci] App Store Connect APIを使用したビルド番号の自動インクリメント機能を復活
YumNumm Feb 10, 2025
b68d8ec
fix: restore build number auto increment in iOS build workflow
YumNumm Feb 10, 2025
a4fd82b
action.yaml を更新
YumNumm Feb 10, 2025
9aabbdb
feat: デバッグモード切り替えスイッチを追加
YumNumm Feb 10, 2025
0b1eeb2
refactor: デバッグモード関連の条件分岐を整理
YumNumm Feb 10, 2025
bedb392
refactor: 設定画面とデバッグモーダルへの遷移をシートに統一
YumNumm Feb 10, 2025
0423d6f
Auto format
YumNumm Feb 10, 2025
c005122
Merge pull request #904 from YumNumm/auto-format/refactor/map
YumNumm Feb 10, 2025
57c4537
chore: Update Flutter SDK to version 3.27.4
YumNumm Feb 11, 2025
3177fdb
refactor: Remove debugger-related files and update references
YumNumm Feb 11, 2025
a9221f9
Auto format
YumNumm Feb 11, 2025
bfd065a
Merge pull request #905 from YumNumm/auto-format/refactor/map
YumNumm Feb 11, 2025
a67b686
chore: Update Xcode project object version to 54
YumNumm Feb 11, 2025
e3f6c6b
chore: Update Xcode version to 16.1
YumNumm Feb 12, 2025
97c74c1
feat: Add null safety for map layer source handling and enhance JmaFo…
YumNumm Feb 12, 2025
277db6e
feat: Improve earthquake history data refresh mechanism
YumNumm Feb 12, 2025
8beec67
feat: Enhance EEW map layer rendering and estimated intensity visuali…
YumNumm Feb 12, 2025
fdc986a
Merge branch 'develop' into refactor/map
YumNumm Feb 13, 2025
3148808
Auto format
YumNumm Feb 13, 2025
8375d6c
Merge pull request #907 from YumNumm/auto-format/refactor/map
YumNumm Feb 13, 2025
3eadd2d
Merge branch 'develop' into refactor/map
YumNumm Feb 13, 2025
08c5040
Auto format
YumNumm Feb 13, 2025
742b05f
Merge pull request #909 from YumNumm/auto-format/refactor/map
YumNumm Feb 13, 2025
5a5eaa8
Merge branch 'develop' into refactor/map
YumNumm Feb 13, 2025
b583b41
Auto format
YumNumm Feb 13, 2025
7a918a1
Merge pull request #910 from YumNumm/auto-format/refactor/map
YumNumm Feb 13, 2025
a43fd64
Update dependencies and SDK versions
YumNumm Feb 13, 2025
12a0311
Refactor code formatting and trailing commas
YumNumm Feb 13, 2025
c46202d
Add script for automated Dart code fixes
YumNumm Feb 13, 2025
0faa28c
Auto format
YumNumm Feb 13, 2025
96c3198
Merge pull request #911 from YumNumm/auto-format/refactor/map
YumNumm Feb 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"flutter": "3.29.0"
}
}
7 changes: 7 additions & 0 deletions .github/actions/generate-app-store-connect-jwt/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ runs:
shell: bash
run: |
jwt=$(bun run scripts/app-store-connect-api-key.ts)
// 最初の10文字だけ stdoutに出力
echo $jwt | head -c 10
echo "jwt=$jwt" >> $GITHUB_OUTPUT

- name: Remove App Store Connect API Key
shell: bash
run: |
rm AuthKey.p8
2 changes: 1 addition & 1 deletion .github/workflows/check-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
run: melos run rebuild --no-select

- name: format
run: melos run format --no-select
run: melos format

- name: check difference
run: |
Expand Down
69 changes: 34 additions & 35 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ concurrency:
on:
push:
branches:
- '*'
- '**'
workflow_dispatch:
inputs:
ios:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
needs: define-matrix
if: ${{ needs.define-matrix.outputs.deploy-ios }}
runs-on: macos-latest
timeout-minutes: 15
timeout-minutes: 30
steps:
# https://github.com/actions/checkout
- name: Checkout
Expand All @@ -91,31 +91,6 @@ jobs:
- name: Setup macOS Environment
uses: ./.github/actions/setup-macos-environment

- name: Create App Store Connect API Token
uses: ./.github/actions/generate-app-store-connect-jwt
with:
app_store_connect_api_key_id: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
app_store_connect_api_key_base64: ${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}

- name: Fetch latest build number
id: fetch-latest-build-number
run: |
PLATFORM=IOS
APP_ID=6447546703
BUILD_NUMBER=$(
curl -s https://api.appstoreconnect.apple.com/v1/builds \
-G \
-d "filter[platform]=${PLATFORM}" \
-d "filter[id]=${APP_ID}" \
-d "sort=-version" \
-d "fields[builds]=version" \
-d "limit=1" | \
jq -r '.data | if length == 0 then 0 else .[0].attributes.version end'
)
BUILD_NUMBER=$((BUILD_NUMBER + 1))
echo "BUILD_NUMBER=${BUILD_NUMBER}" >> $GITHUB_OUTPUT
echo "Build Number set to ${BUILD_NUMBER}."

- name: Extract Dotenv
run: |
echo "${{ secrets.DOTENV }}" | base64 -d > environment.tar.gz
Expand All @@ -125,13 +100,9 @@ jobs:

- name: Build iOS
working-directory: app
env:
BUILD_NUMBER: ${{ steps.fetch-latest-build-number.outputs.BUILD_NUMBER }}
run: |
echo "BUILD_NUMBER=${BUILD_NUMBER}"
flutter build ipa \
--no-codesign \
--build-number=${BUILD_NUMBER} \
--dart-define-from-file=../environment/.env.prod

- name: Extract App Store Connect API Key
Expand Down Expand Up @@ -159,7 +130,8 @@ jobs:
-allowProvisioningUpdates \
-authenticationKeyIssuerID ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} \
-authenticationKeyID ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }} \
-authenticationKeyPath ${{ github.workspace }}/app/ios/AuthKey_${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}.p8 | xcbeautify
-authenticationKeyPath ${{ github.workspace }}/app/ios/AuthKey_${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}.p8 \
| xcbeautify

- name: List files
run: |
Expand All @@ -172,6 +144,7 @@ jobs:
with:
name: EQMonitor-ios.ipa
path: app/eqmonitor.ipa
if-no-files-found: error

deploy-ios:
needs: build-ios
Expand Down Expand Up @@ -217,7 +190,7 @@ jobs:
needs: define-matrix
if: ${{ needs.define-matrix.outputs.deploy-android }}
runs-on: ubuntu-24.04
timeout-minutes: 15
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -243,31 +216,55 @@ jobs:
rm environment.tar.gz
ls -l environment/

- name: Install Codemagic CLI Tools
run: |
pip3 install codemagic-cli-tools

- name: Fetch latest build number from Google Play Store
id: fetch-latest-build-number
run: |
echo "${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}" > service-account.json
LATEST_BUILD_NUMBER=$(google-play get-latest-build-number \
--credentials="@file:service-account.json" \
--package-name="net.yumnumm.eqmonitor" || echo "0")
BUILD_NUMBER=$((LATEST_BUILD_NUMBER + 1))
echo "BUILD_NUMBER=${BUILD_NUMBER}" >> $GITHUB_OUTPUT
echo "Build Number set to ${BUILD_NUMBER}."
rm service-account.json

- name: Build Android (AAB)
working-directory: app
env:
BUILD_NUMBER: ${{ steps.fetch-latest-build-number.outputs.BUILD_NUMBER }}
run: |
flutter build appbundle \
--release \
--build-number=${BUILD_NUMBER} \
--dart-define-from-file=../environment/.env.prod

- name: Build Android (APK)
working-directory: app
env:
BUILD_NUMBER: ${{ steps.fetch-latest-build-number.outputs.BUILD_NUMBER }}
run: |
flutter build apk \
--release \
--build-number=${BUILD_NUMBER} \
--dart-define-from-file=../environment/.env.prod

- name: Upload aab as artifact
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: EQMonitor-android.aab
path: app/build/app/outputs/bundle/release/app-release.aab
if-no-files-found: error

- name: Upload apk as artifact
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: EQMonitor-android.apk
path: app/build/app/outputs/flutter-apk/app-release.apk
if-no-files-found: error

deploy-android:
needs: build-android
Expand All @@ -281,10 +278,12 @@ jobs:
path: build

- name: Upload to Google Play
uses: r0adkll/upload-google-play@v1
uses: r0adkll/upload-google-play@935ef9c68bb393a8e6116b1575626a7f5be3a7fb #v1.1.3
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
packageName: net.yumnumm.eqmonitor
releaseFiles: build/app-release.aab
track: internal
status: inProgress
status: completed
# 既存ユーザーへのアップデートを許可
changesNotSentForReview: false
2 changes: 2 additions & 0 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
with:
path: app/build/app/outputs/bundle/release/app-release.aab
name: release-aab
if-no-files-found: error

deploy-android:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -213,6 +214,7 @@ jobs:
with:
path: app/ios/Runner.ipa
name: release-ios
if-no-files-found: error

deploy-ios:
runs-on: macos-latest
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,6 @@ secret/
# DerivedData
**/DerivedData/


/*.sql

*.p8
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dart.flutterSdkPath": ".fvm/versions/3.27.3",
"dart.flutterSdkPath": ".fvm/versions/3.29.0",
"search.exclude": {
"**/.fvm": true,
"*.geojson": true
Expand All @@ -18,4 +18,4 @@
"dart": {
"flutterSdkPath": ".fvm/versions/$latest_version"
}
}
}
Binary file added app/assets/images/map/low_precise_hypocenter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/map/normal_hypocenter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/intensity/0.PNG
Binary file not shown.
Binary file removed app/assets/intensity/1.PNG
Binary file not shown.
Binary file removed app/assets/intensity/2.PNG
Binary file not shown.
Binary file removed app/assets/intensity/3.PNG
Binary file not shown.
Binary file removed app/assets/intensity/4.PNG
Binary file not shown.
Binary file removed app/assets/intensity/5+.PNG
Binary file not shown.
Binary file removed app/assets/intensity/5-.PNG
Binary file not shown.
Binary file removed app/assets/intensity/6+.PNG
Binary file not shown.
Binary file removed app/assets/intensity/6-.PNG
Binary file not shown.
Binary file removed app/assets/intensity/7.PNG
Binary file not shown.
Binary file removed app/assets/intensity/unknown.PNG
Binary file not shown.
50 changes: 50 additions & 0 deletions app/ios/Podfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
);
mainGroup = 97C146E51CF9000F007C117D;
packageReferences = (
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */,
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
85B405182C08E73300EB3835 /* XCRemoteSwiftPackageReference "GzipSwift" */,
);
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
Expand Down Expand Up @@ -946,7 +946,7 @@
/* End XCConfigurationList section */

/* Begin XCLocalSwiftPackageReference section */
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */ = {
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
};
Expand Down
Loading
Loading