-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/flutter-3.3-update
- Loading branch information
Showing
14 changed files
with
37 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
with: | ||
name: release-ios | ||
- name: Upload IPA | ||
uses: wzieba/[email protected].2 | ||
uses: wzieba/[email protected].4 | ||
with: | ||
appId: ${{secrets.FIREBASE_IOS_APPID}} | ||
token: ${{secrets.FIREBASE_TOKEN}} | ||
|
@@ -147,7 +147,7 @@ jobs: | |
with: | ||
name: android-build | ||
- name: Upload APK | ||
uses: wzieba/[email protected].2 | ||
uses: wzieba/[email protected].4 | ||
with: | ||
appId: ${{secrets.FIREBASE_APP_ID}} | ||
token: ${{secrets.FIREBASE_TOKEN}} | ||
|
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
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
const String jokesTable = "jokesTable"; | ||
|
||
class JokeFields { | ||
static const String id = "_id"; | ||
static const String joke = "joke"; | ||
static const String id = "id"; | ||
static const String value = "value"; | ||
} | ||
|
||
class DTJoke { | ||
final int id; | ||
final String joke; | ||
final String id; | ||
final String value; | ||
|
||
DTJoke(this.id, this.joke); | ||
DTJoke(this.id, this.value); | ||
|
||
DTJoke.fromJson(Map<String, dynamic> map) | ||
: id = map['id'], | ||
joke = map['joke']; | ||
value = map['value']; | ||
|
||
Map<String, Object?> toJson() => {JokeFields.id: id, JokeFields.joke: joke}; | ||
Map<String, Object?> toJson() => {JokeFields.id: id, JokeFields.value: value}; | ||
|
||
static DTJoke dtJokeFromJson(Map<String, Object?> json) => | ||
DTJoke(json[JokeFields.id] as int? ?? 0, json[JokeFields.joke] as String); | ||
DTJoke(json[JokeFields.id] as String, json[JokeFields.value] as String); | ||
|
||
@override | ||
String toString() { | ||
return '$id, $joke'; | ||
return '$id, $value'; | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
class URL { | ||
static const String baseUrl = 'api.icndb.com'; | ||
static const String fiveRandomJokesUrl = '$baseUrl/jokes/random/5'; | ||
static const String fiveRandomJokesPath = '/jokes/random/5'; | ||
static const String baseUrl = 'https://api.chucknorris.io'; | ||
static const String fiveRandomJokesUrl = '$baseUrl/jokes/search?query=animal'; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class Joke{ | ||
final int id; | ||
final String joke; | ||
final String id; | ||
final String value; | ||
|
||
Joke(this.id, this.joke); | ||
Joke(this.id, this.value); | ||
} |
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 |
---|---|---|
|
@@ -1331,4 +1331,4 @@ packages: | |
version: "3.1.0" | ||
sdks: | ||
dart: ">=2.18.0 <3.0.0" | ||
flutter: ">=3.3.0" | ||
flutter: ">=3.3.0" |