Skip to content

Commit 65a8993

Browse files
Merge pull request #62 from Solvro/distribution_preparation
Distribution preparation
2 parents 77ca0a4 + 1b69925 commit 65a8993

File tree

76 files changed

+1692
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1692
-105
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,7 @@ app.*.symbols
153153
*.env.dev
154154
.env.dev
155155
env.g.dart
156-
**/env.g.dart
156+
**/env.g.dart
157+
158+
159+
.vscode

.metadata

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "54e66469a933b60ddf175f858f82eaeb97e48c8d"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
17+
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
18+
- platform: macos
19+
create_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
20+
base_revision: 54e66469a933b60ddf175f858f82eaeb97e48c8d
21+
22+
# User provided section
23+
24+
# List of Local paths (relative to this file) that should be
25+
# ignored by the migrate tool.
26+
#
27+
# Files that are not part of the templates will be ignored by default.
28+
unmanaged_files:
29+
- 'lib/main.dart'
30+
- 'ios/Runner.xcodeproj/project.pbxproj'

android/app/build.gradle

+20-6
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ if (flutterVersionName == null) {
2222
flutterVersionName = '1.0'
2323
}
2424

25+
def keystoreProperties = new Properties()
26+
def keystorePropertiesFile = rootProject.file('key.properties')
27+
if (keystorePropertiesFile.exists()) {
28+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
29+
}
30+
31+
2532
android {
26-
namespace "pl.edu.pwr.solvro.topwr"
33+
namespace "com.solvro.topwr"
2734
compileSdkVersion flutter.compileSdkVersion
2835
ndkVersion flutter.ndkVersion
2936

@@ -41,8 +48,7 @@ android {
4148
}
4249

4350
defaultConfig {
44-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
45-
applicationId "pl.edu.pwr.solvro.topwr"
51+
applicationId "com.solvro.topwr"
4652
// You can update the following values to match your application needs.
4753
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
4854
minSdkVersion 20
@@ -52,11 +58,19 @@ android {
5258
versionName flutterVersionName
5359
}
5460

61+
signingConfigs {
62+
release {
63+
keyAlias keystoreProperties['keyAlias']
64+
keyPassword keystoreProperties['keyPassword']
65+
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
66+
storePassword keystoreProperties['storePassword']
67+
}
68+
}
69+
70+
5571
buildTypes {
5672
release {
57-
// TODO: Add your own signing config for the release build.
58-
// Signing with the debug keys for now, so `flutter run --release` works.
59-
signingConfig signingConfigs.debug
73+
signingConfig signingConfigs.release
6074
}
6175
}
6276
}

android/app/src/main/AndroidManifest.xml

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2-
<uses-permission android:name="android.permission.INTERNET" />
3-
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
42
<application
5-
android:label="topwr"
3+
android:label="ToPwr"
64
android:name="${applicationName}"
7-
android:icon="@mipmap/ic_launcher">
5+
android:icon="@mipmap/launcher_icon">
86
<meta-data android:name="com.google.android.geo.API_KEY"
97
android:value="AIzaSyDKfUDQv4mb4W4I4bx0WE4qYkAl53Vfciw" />
108
<activity
@@ -34,4 +32,15 @@
3432
android:name="flutterEmbedding"
3533
android:value="2" />
3634
</application>
35+
<!-- Required to query activities that can process text, see:
36+
https://developer.android.com/training/package-visibility?hl=en and
37+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
38+
39+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
40+
<queries>
41+
<intent>
42+
<action android:name="android.intent.action.PROCESS_TEXT" />
43+
<data android:mimeType="text/plain" />
44+
</intent>
45+
</queries>
3746
</manifest>

android/app/src/main/kotlin/pl/edu/pwr/solvro/topwr/MainActivity.kt renamed to android/app/src/main/kotlin/com/solvro/topwr/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package pl.edu.pwr.solvro.topwr
1+
package com.solvro.topwr
22

33
import io.flutter.embedding.android.FlutterActivity
44

Loading
Loading
Loading
Loading
Loading

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.7.10'
2+
ext.kotlin_version = '1.9.23'
33
repositories {
44
google()
55
mavenCentral()

assets/app_icon.png

316 KB
Loading

ios/Runner.xcodeproj/project.pbxproj

+14-6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
6565
A843E42994469608CA894FD0 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
6666
DA79E150674C34F8E77E11CC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
67+
DAC79DDC2BDEA7530057C10F /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
6768
DE72D28B9113EA5E62DD0DBF /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
6869
/* End PBXFileReference section */
6970

@@ -152,6 +153,7 @@
152153
97C146F01CF9000F007C117D /* Runner */ = {
153154
isa = PBXGroup;
154155
children = (
156+
DAC79DDC2BDEA7530057C10F /* Runner.entitlements */,
155157
97C146FA1CF9000F007C117D /* Main.storyboard */,
156158
97C146FD1CF9000F007C117D /* Assets.xcassets */,
157159
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
@@ -485,15 +487,17 @@
485487
buildSettings = {
486488
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
487489
CLANG_ENABLE_MODULES = YES;
490+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
488491
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
489-
DEVELOPMENT_TEAM = KWQW4NSRZ4;
492+
DEVELOPMENT_TEAM = N28QUP4TMD;
490493
ENABLE_BITCODE = NO;
491494
INFOPLIST_FILE = Runner/Info.plist;
495+
INFOPLIST_KEY_CFBundleDisplayName = ToPwr;
492496
LD_RUNPATH_SEARCH_PATHS = (
493497
"$(inherited)",
494498
"@executable_path/Frameworks",
495499
);
496-
PRODUCT_BUNDLE_IDENTIFIER = pl.edu.pwr.solvro.topwr;
500+
PRODUCT_BUNDLE_IDENTIFIER = com.solvro.ToPwr;
497501
PRODUCT_NAME = "$(TARGET_NAME)";
498502
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
499503
SWIFT_VERSION = 5.0;
@@ -664,15 +668,17 @@
664668
buildSettings = {
665669
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
666670
CLANG_ENABLE_MODULES = YES;
671+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
667672
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
668-
DEVELOPMENT_TEAM = KWQW4NSRZ4;
673+
DEVELOPMENT_TEAM = N28QUP4TMD;
669674
ENABLE_BITCODE = NO;
670675
INFOPLIST_FILE = Runner/Info.plist;
676+
INFOPLIST_KEY_CFBundleDisplayName = ToPwr;
671677
LD_RUNPATH_SEARCH_PATHS = (
672678
"$(inherited)",
673679
"@executable_path/Frameworks",
674680
);
675-
PRODUCT_BUNDLE_IDENTIFIER = pl.edu.pwr.solvro.topwr;
681+
PRODUCT_BUNDLE_IDENTIFIER = com.solvro.ToPwr;
676682
PRODUCT_NAME = "$(TARGET_NAME)";
677683
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
678684
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -687,15 +693,17 @@
687693
buildSettings = {
688694
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
689695
CLANG_ENABLE_MODULES = YES;
696+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
690697
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
691-
DEVELOPMENT_TEAM = KWQW4NSRZ4;
698+
DEVELOPMENT_TEAM = N28QUP4TMD;
692699
ENABLE_BITCODE = NO;
693700
INFOPLIST_FILE = Runner/Info.plist;
701+
INFOPLIST_KEY_CFBundleDisplayName = ToPwr;
694702
LD_RUNPATH_SEARCH_PATHS = (
695703
"$(inherited)",
696704
"@executable_path/Frameworks",
697705
);
698-
PRODUCT_BUNDLE_IDENTIFIER = pl.edu.pwr.solvro.topwr;
706+
PRODUCT_BUNDLE_IDENTIFIER = com.solvro.ToPwr;
699707
PRODUCT_NAME = "$(TARGET_NAME)";
700708
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
701709
SWIFT_VERSION = 5.0;
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

ios/Runner/Info.plist

+57-57
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>$(DEVELOPMENT_LANGUAGE)</string>
7-
<key>CFBundleDisplayName</key>
8-
<string>Topwr</string>
9-
<key>CFBundleExecutable</key>
10-
<string>$(EXECUTABLE_NAME)</string>
11-
<key>CFBundleIdentifier</key>
12-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13-
<key>CFBundleInfoDictionaryVersion</key>
14-
<string>6.0</string>
15-
<key>CFBundleName</key>
16-
<string>topwr</string>
17-
<key>CFBundlePackageType</key>
18-
<string>APPL</string>
19-
<key>CFBundleShortVersionString</key>
20-
<string>$(FLUTTER_BUILD_NAME)</string>
21-
<key>CFBundleSignature</key>
22-
<string>????</string>
23-
<key>CFBundleVersion</key>
24-
<string>$(FLUTTER_BUILD_NUMBER)</string>
25-
<key>LSRequiresIPhoneOS</key>
26-
<true />
27-
<key>UILaunchStoryboardName</key>
28-
<string>LaunchScreen</string>
29-
<key>UIMainStoryboardFile</key>
30-
<string>Main</string>
31-
<key>UISupportedInterfaceOrientations</key>
32-
<array>
33-
<string>UIInterfaceOrientationPortrait</string>
34-
<string>UIInterfaceOrientationLandscapeLeft</string>
35-
<string>UIInterfaceOrientationLandscapeRight</string>
36-
</array>
37-
<key>UISupportedInterfaceOrientations~ipad</key>
38-
<array>
39-
<string>UIInterfaceOrientationPortrait</string>
40-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
41-
<string>UIInterfaceOrientationLandscapeLeft</string>
42-
<string>UIInterfaceOrientationLandscapeRight</string>
43-
</array>
44-
<key>CADisableMinimumFrameDurationOnPhone</key>
45-
<true />
46-
<key>UIApplicationSupportsIndirectInputEvents</key>
47-
<true />
48-
<key>UIStatusBarHidden</key>
49-
<false />
50-
<key>FLTEnableImpeller</key>
51-
<false />
52-
<key>NSLocationWhenInUseUsageDescription</key>
53-
<string>Your location allows us to show your location on the map and buildings nearby</string>
54-
<key>LSApplicationQueriesSchemes</key>
55-
<array>
56-
<string>googlechromes</string>
57-
<string>comgooglemaps</string>
58-
</array>
59-
</dict>
60-
</plist>
4+
<dict>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
7+
<key>CFBundleDevelopmentRegion</key>
8+
<string>$(DEVELOPMENT_LANGUAGE)</string>
9+
<key>CFBundleDisplayName</key>
10+
<string>Topwr</string>
11+
<key>CFBundleExecutable</key>
12+
<string>$(EXECUTABLE_NAME)</string>
13+
<key>CFBundleIdentifier</key>
14+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15+
<key>CFBundleInfoDictionaryVersion</key>
16+
<string>6.0</string>
17+
<key>CFBundleName</key>
18+
<string>topwr</string>
19+
<key>CFBundlePackageType</key>
20+
<string>APPL</string>
21+
<key>CFBundleShortVersionString</key>
22+
<string>$(FLUTTER_BUILD_NAME)</string>
23+
<key>CFBundleSignature</key>
24+
<string>????</string>
25+
<key>CFBundleVersion</key>
26+
<string>$(FLUTTER_BUILD_NUMBER)</string>
27+
<key>FLTEnableImpeller</key>
28+
<false/>
29+
<key>LSApplicationQueriesSchemes</key>
30+
<array>
31+
<string>googlechromes</string>
32+
<string>comgooglemaps</string>
33+
</array>
34+
<key>LSRequiresIPhoneOS</key>
35+
<true/>
36+
<key>NSLocationWhenInUseUsageDescription</key>
37+
<string>Your location allows us to show your location on the map and buildings nearby</string>
38+
<key>UIApplicationSupportsIndirectInputEvents</key>
39+
<true/>
40+
<key>UILaunchStoryboardName</key>
41+
<string>LaunchScreen</string>
42+
<key>UIMainStoryboardFile</key>
43+
<string>Main</string>
44+
<key>UIStatusBarHidden</key>
45+
<false/>
46+
<key>UISupportedInterfaceOrientations</key>
47+
<array>
48+
<string>UIInterfaceOrientationPortrait</string>
49+
<string>UIInterfaceOrientationLandscapeLeft</string>
50+
<string>UIInterfaceOrientationLandscapeRight</string>
51+
</array>
52+
<key>UISupportedInterfaceOrientations~ipad</key>
53+
<array>
54+
<string>UIInterfaceOrientationPortrait</string>
55+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
56+
<string>UIInterfaceOrientationLandscapeLeft</string>
57+
<string>UIInterfaceOrientationLandscapeRight</string>
58+
</array>
59+
</dict>
60+
</plist>

ios/Runner/Runner.entitlements

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>aps-environment</key>
6+
<string>development</string>
7+
</dict>
8+
</plist>

lib/features/bottom_nav_bar/bottom_nav_bar.dart

+6-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ class RootViewWithBottomNavBar extends ConsumerWidget {
3232
final selectedTab = ref.watch(bottomNavBarControllerProvider);
3333
final navigator = ref.watch(navigatorProvider);
3434
return Scaffold(
35-
body: Navigator(
36-
// here we nest the navigator to navigate with overlaing bottom navigation bar on top of everything
37-
key: navigator.navigatorKey,
38-
onGenerateRoute: navigator.onGenerateRoute,
35+
body: NavigatorPopHandler(
36+
onPop: navigator.handleNestedPop,
37+
child: Navigator(
38+
key: navigator.navigatorKey,
39+
onGenerateRoute: navigator.onGenerateRoute,
40+
),
3941
),
4042
bottomNavigationBar: Theme(
4143
data: Theme.of(context).copyWith(

lib/features/bottom_nav_bar/nested_navigator.dart

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ class NestedNavigator {
1212
final Ref ref;
1313
final navigatorKey = GlobalKey<NavigatorState>();
1414

15+
void handleNestedPop() {
16+
navigatorKey.currentState?.pop();
17+
}
18+
1519
Route<dynamic> onGenerateRoute(RouteSettings settings) {
1620
return MaterialPageRoute(
1721
builder: switch (settings.name) {

lib/features/bottom_nav_bar/root_view_pages.dart

-16
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import 'bottom_nav_bar_controller.dart';
1010
import 'nav_bar_config.dart';
1111

1212
class RootViewPages extends ConsumerWidget {
13-
/// displays proper selected tab view (selected in bottom tab nav bar)
1413
const RootViewPages({super.key});
1514

1615
static const _widgetOptions = UnmodifiableNavBarEnumMap(
@@ -27,18 +26,3 @@ class RootViewPages extends ConsumerWidget {
2726
return _widgetOptions.get(selectedTab);
2827
}
2928
}
30-
31-
class _PlaceholderView extends StatelessWidget {
32-
/// Placeholder view created to test navigation between pages
33-
const _PlaceholderView(this.text);
34-
35-
final String text;
36-
37-
@override
38-
Widget build(BuildContext context) {
39-
return Scaffold(
40-
body: Center(
41-
child: Text(text),
42-
));
43-
}
44-
}

0 commit comments

Comments
 (0)