Skip to content

Commit

Permalink
fix: update android permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sivan22 committed Nov 11, 2024
1 parent 38a9e5c commit 52d7c7f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 28 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: 'Build for all platforms'
name: "Build for all platforms"

on:
workflow_dispatch

on: workflow_dispatch

jobs:
build_windows:
Expand Down Expand Up @@ -43,7 +41,6 @@ jobs:
with:
name: otzaria-linux.zip
path: otzaria-linux.zip


build_android:
runs-on: ubuntu-latest
Expand All @@ -55,15 +52,15 @@ jobs:
with:
channel: stable
cache: true
- run: sudo apt install openjdk-18-jdk
- run: sudo apt install openjdk-18-jdk
- run: wget https://dl.google.com/dl/android/studio/ide-zips/2024.1.2.12/android-studio-2024.1.2.12-linux.tar.gz
- run: tar -zxvf android-studio-2024.1.2.12-linux.tar.gz
- run: sudo mv android-studio /opt/
- run: sudo ln -sf /opt/android-studio/bin/studio.sh /bin/android-studio
- run: flutter doctor -v
- run: flutter pub get
- run: flutter build apk
- name: Upload apk
- name: Upload apk
uses: actions/upload-artifact@v4
with:
name: otzaria-android.apk
Expand All @@ -80,14 +77,14 @@ jobs:
channel: stable
cache: true
- run: flutter build macos
- name: Zip the app bundle
run: cd build/macos/Build/Products/Release && zip -r otzaria-macos.zip otzaria.app/
- name: Upload macos build
uses: actions/upload-artifact@v4
with:
name: otzaria-macos.app
path: build/macos/Build/Products/Release/otzaria.app
name: otzaria-macos.zip
path: build/macos/Build/Products/Release/otzaria-macos.zip



build_ios:
runs-on: macos-latest
steps:
Expand All @@ -105,14 +102,3 @@ jobs:
with:
name: otzaria-iphone.app
path: build/ios/iphoneos/Runner.app











1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:label="otzaria"
android:name="${applicationName}"
Expand Down
9 changes: 3 additions & 6 deletions android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
</manifest>
<uses-permission android:name="android.permission.INTERNET" />

</manifest>

0 comments on commit 52d7c7f

Please sign in to comment.