forked from openfoodfacts/smooth-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix_2/openfoodfacts#1538
- Loading branch information
Showing
176 changed files
with
3,368 additions
and
607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- "develop" | ||
|
||
env: | ||
FLUTTER_VERSION: '3.0.x' | ||
FLUTTER_VERSION: '3.3.x' | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
- develop | ||
|
||
env: | ||
FLUTTER_VERSION: '3.0.x' | ||
FLUTTER_VERSION: '3.3.x' | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/smooth_app/android/app/src/main/kotlin/org/openfoodfacts/app/AppMainTile.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.openfoodfacts.app | ||
|
||
import android.content.Intent | ||
import android.os.Build | ||
import android.service.quicksettings.Tile | ||
import android.service.quicksettings.TileService | ||
import androidx.annotation.RequiresApi | ||
import org.openfoodfacts.scanner.MainActivity | ||
|
||
@RequiresApi(Build.VERSION_CODES.N) | ||
class AppMainTile : TileService() { | ||
|
||
override fun onStartListening() { | ||
super.onStartListening() | ||
|
||
qsTile.state = Tile.STATE_INACTIVE | ||
qsTile.updateTile() | ||
} | ||
|
||
override fun onClick() { | ||
super.onClick() | ||
|
||
val intent = Intent(this, MainActivity::class.java).apply { | ||
flags += Intent.FLAG_ACTIVITY_NEW_TASK | ||
} | ||
|
||
startActivityAndCollapse(intent) | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
packages/smooth_app/android/app/src/main/res/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">OpenFoodFacts</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.