Skip to content

Commit

Permalink
Android 12 再対応(Flutter 3.3 で地図表示が修正されたので)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatsu47 committed Nov 3, 2022
1 parent 904d55a commit dbfe7bb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
**In Addition to:**(追加した機能)

- Modify the detail information about pin.(ピンの詳細情報変更)
- Take photographs (related to pin).(ピンに関連する写真撮影/Android で地図に戻れないので調査中
- Take photographs (related to pin).(ピンに関連する写真撮影)
- List all pins.(ピン一覧)
- Search pins (with keywords).(ピンのキーワード検索)
- Reverse Geocoding.(逆ジオコーディング:画面の中心位置の地名表示・ピンの都道府県名+市区町村名表示)
Expand All @@ -24,7 +24,7 @@
- Remove backup data on AWS.(不要バックアップデータ削除)
- Improve configuration handling.(外部 API などの設定管理の改善)
- Switch map styles.(地図スタイル切り替え)
- Share information of pictures and pins.(画像・ピン情報の共有機能/Android で地図に戻れないので調査中
- Share information of pictures and pins.(画像・ピン情報の共有機能)

**In development:**(開発中の機能など)

Expand Down Expand Up @@ -104,7 +104,7 @@ dev_dependencies:
- **Edit '`android/app/build.gradle`'** ( for Android / in `android` )

```json:build.gradle
compileSdkVersion 31
compileSdkVersion 33
```

- **Edit '`android/app/build.gradle`'** ( for Android / in `android` -> `defaultConfig` )
Expand Down Expand Up @@ -135,6 +135,9 @@ dev_dependencies:
android:label="maptool"
android:icon="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true">
<activity
android:name=".MainActivity"
android:exported="true"
```

```xml:AndroidManifest.xml
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 31
compileSdkVersion 33

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
android:requestLegacyExternalStorage="true">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
Expand Down
6 changes: 2 additions & 4 deletions lib/display_picture_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ class DisplayPicturePageState extends State<DisplayPicturePage> {
icon: const Icon(Icons.share),
color: Colors.black87,
onPressed: () {
// 共有(一旦 Android では非作動)
if (Platform.isIOS) {
_sharePicture();
}
// 共有
_sharePicture();
},
),
const Gap(4),
Expand Down
6 changes: 2 additions & 4 deletions lib/display_symbol_info_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,8 @@ class DisplaySymbolInfoPageState extends State<DisplaySymbolInfoPage> {
icon: const Icon(Icons.share),
color: Colors.black87,
onPressed: () {
// 共有(一旦 Android では非作動)
if (Platform.isIOS) {
_shareSymbolInfo();
}
// 共有
_shareSymbolInfo();
},
),
const Gap(4),
Expand Down

0 comments on commit dbfe7bb

Please sign in to comment.