Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
published in the ios app store 0.1.0 37
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Bakker authored and Hans Bakker committed May 3, 2022
1 parent f172f3a commit fe8163a
Show file tree
Hide file tree
Showing 15 changed files with 90 additions and 124 deletions.
94 changes: 48 additions & 46 deletions docs/fastlane/ios/README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
To upload a new version to the appstore:

start emulators from command line:
https://medium.com/@abrisad_it/how-to-launch-ios-simulator-and-android-emulator-on-mac-cd198295532e

to create a missing emulator ipad: (adjust ios version and ipad version)
xcrun simctl create "iPad Pro (12.9-inch) (3rd generation)" "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-" "com.apple.CoreSimulator.SimRuntime.iOS-14-5"

1. Start all emulators you need screen shots from
iPhone 12 pro max, iPhone 8 Plus, iPad Pro 12.9 (2nd gen), iPad Pro 12.9 (3rd gen)
2. switch Ipad to horizontal layout

dirs should exist: ios/fastlane/unframed/en-US
from app root: flutter pub run utils:screenshots

to only run the frameit-chrome program:(project home)
flutter pub global run frameit_chrome \
--base-dir=ios/fastlane/unframed \
--frames-dir=ios/fastlane/frames \
--chrome-binary=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--pixel-ratio=2
--skip_docs

When generated then move from framed/en-US to metadata/screenshots/en-US

Build and upload Manual:
https://flutter.dev/docs/deployment/ios
certicate access (rediculus!!)
https://stackoverflow.com/questions/10204320/mac-os-x-wants-to-use-system-keychain-when-compiling-the-project

Fastlane:
---------
1. increase numbers in ios/Runner/Info.plist:
CFBundleShortVersionString: major version seen by the user ie: 0.0.13
CFBundleVersion: seqeuntial nuber within version
2. build flutter: (project home)
flutter build ios --release --no-codesign
3. compile and sign (in ios dir)
fastlane gym skip_docs
4. upload: (in ios dir)
binary only: fastlane upload
all including meta: fastlane deliver --overwrite_screenshots skip_docs
just screenshots: fastlane deliver --overwrite_screenshots skip_docs --skip_binary_upload

login to the appstore console:
create new major version, give reason of update and submit for review
fastlane documentation
----

# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```sh
xcode-select --install
```

For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)

# Available Actions

## iOS

### ios build

```sh
[bundle exec] fastlane ios build
```



### ios codesign

```sh
[bundle exec] fastlane ios codesign
```



### ios upload

```sh
[bundle exec] fastlane ios upload
```



----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.

More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).

The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
8 changes: 4 additions & 4 deletions packages/admin/ios/Flutter/Generated.xcconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/home/dell/snap/flutter/common/flutter
FLUTTER_APPLICATION_PATH=/home/dell/growerp/packages/admin
FLUTTER_ROOT=/Users/hans/flutter
FLUTTER_APPLICATION_PATH=/Users/hans/growerp/packages/admin
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_DIR=build
Expand All @@ -9,5 +9,5 @@ FLUTTER_BUILD_NUMBER=37
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=false
TREE_SHAKE_ICONS=false
PACKAGE_CONFIG=.packages
TREE_SHAKE_ICONS=true
PACKAGE_CONFIG=/Users/hans/growerp/packages/admin/.dart_tool/package_config.json
8 changes: 4 additions & 4 deletions packages/admin/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/home/dell/snap/flutter/common/flutter"
export "FLUTTER_APPLICATION_PATH=/home/dell/growerp/packages/admin"
export "FLUTTER_ROOT=/Users/hans/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/hans/growerp/packages/admin"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=0.1.0"
export "FLUTTER_BUILD_NUMBER=37"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=false"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=.packages"
export "TREE_SHAKE_ICONS=true"
export "PACKAGE_CONFIG=/Users/hans/growerp/packages/admin/.dart_tool/package_config.json"
17 changes: 2 additions & 15 deletions packages/admin/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,36 +1,25 @@
PODS:
- connectivity (0.0.1):
- Flutter
- Reachability
- Flutter (1.0.0)
- image_picker (0.0.1):
- Flutter
- integration_test (0.0.1):
- Flutter
- printing (1.0.0):
- Flutter
- Reachability (3.2)
- shared_preferences_ios (0.0.1):
- Flutter
- url_launcher_ios (0.0.1):
- Flutter

DEPENDENCIES:
- connectivity (from `.symlinks/plugins/connectivity/ios`)
- Flutter (from `Flutter`)
- image_picker (from `.symlinks/plugins/image_picker/ios`)
- integration_test (from `.symlinks/plugins/integration_test/ios`)
- printing (from `.symlinks/plugins/printing/ios`)
- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)

SPEC REPOS:
trunk:
- Reachability

EXTERNAL SOURCES:
connectivity:
:path: ".symlinks/plugins/connectivity/ios"
Flutter:
:path: Flutter
image_picker:
Expand All @@ -45,14 +34,12 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
image_picker: 541dcbb3b9cf32d87eacbd957845d8651d6c62c3
integration_test: a1e7d09bd98eca2fc37aefd79d4f41ad37bdbbe5
printing: eafa00acb682c0ca029d4d98d0798f55a1e27102
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
shared_preferences_ios: aef470a42dc4675a1cdd50e3158b42e3d1232b32
url_launcher_ios: 02f1989d4e14e998335b02b67a7590fa34f971af
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c

Expand Down
4 changes: 2 additions & 2 deletions packages/admin/ios/fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@



<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000287">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000327">

</testcase>


<testcase classname="fastlane.lanes" name="1: upload_to_testflight" time="361.44997">
<testcase classname="fastlane.lanes" name="1: upload_to_testflight" time="557.969729">

</testcase>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new io.flutter.plugins.connectivity.ConnectivityPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin connectivity, io.flutter.plugins.connectivity.ConnectivityPlugin", e);
}
try {
flutterEngine.getPlugins().add(new io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin());
} catch(Exception e) {
Expand Down
2 changes: 1 addition & 1 deletion packages/hotel/android/local.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sdk.dir=/home/dell/Android/Sdk
flutter.sdk=/home/dell/snap/flutter/common/flutter
flutter.sdk=/Users/hans/flutter
flutter.buildMode=release
flutter.versionName=0.1.0
flutter.versionCode=13
2 changes: 1 addition & 1 deletion packages/hotel/ios/Flutter/Generated.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=lib/main.dart
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=0.1.0
FLUTTER_BUILD_NUMBER=12
FLUTTER_BUILD_NUMBER=13
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=false
Expand Down
2 changes: 1 addition & 1 deletion packages/hotel/ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=0.1.0"
export "FLUTTER_BUILD_NUMBER=12"
export "FLUTTER_BUILD_NUMBER=13"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=false"
export "TREE_SHAKE_ICONS=true"
Expand Down
7 changes: 0 additions & 7 deletions packages/hotel/ios/Runner/GeneratedPluginRegistrant.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@

#import "GeneratedPluginRegistrant.h"

#if __has_include(<connectivity/FLTConnectivityPlugin.h>)
#import <connectivity/FLTConnectivityPlugin.h>
#else
@import connectivity;
#endif

#if __has_include(<image_picker/FLTImagePickerPlugin.h>)
#import <image_picker/FLTImagePickerPlugin.h>
#else
Expand Down Expand Up @@ -45,7 +39,6 @@
@implementation GeneratedPluginRegistrant

+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
[FLTConnectivityPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTConnectivityPlugin"]];
[FLTImagePickerPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTImagePickerPlugin"]];
[IntegrationTestPlugin registerWithRegistrar:[registry registrarForPlugin:@"IntegrationTestPlugin"]];
[PrintingPlugin registerWithRegistrar:[registry registrarForPlugin:@"PrintingPlugin"]];
Expand Down
7 changes: 6 additions & 1 deletion packages/hotel/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>The image you upload will be used on Business documents like invoices or shown on screen with the relevant data.</string>
<key>NSCameraUsageDescription</key>
<string>The app needs the camera to take pictures of persons and paper documents to show later as reference in the app.</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand All @@ -43,5 +47,6 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
<key>ITSAppUsesNonExemptEncryption</key>
<false/></dict>
</plist>
4 changes: 2 additions & 2 deletions packages/hotel/ios/fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@



<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000441">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000324">

</testcase>


<testcase classname="fastlane.lanes" name="1: upload_to_testflight" time="523.081125">
<testcase classname="fastlane.lanes" name="1: upload_to_testflight" time="142.178842">

</testcase>

Expand Down
2 changes: 0 additions & 2 deletions packages/hotel/lib/generated_plugin_registrant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// ignore_for_file: directives_ordering
// ignore_for_file: lines_longer_than_80_chars

import 'package:connectivity_for_web/connectivity_for_web.dart';
import 'package:image_picker_for_web/image_picker_for_web.dart';
import 'package:printing/printing_web.dart';
import 'package:shared_preferences_web/shared_preferences_web.dart';
Expand All @@ -15,7 +14,6 @@ import 'package:flutter_web_plugins/flutter_web_plugins.dart';

// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
ConnectivityPlugin.registerWith(registrar);
ImagePickerPlugin.registerWith(registrar);
PrintingPlugin.registerWith(registrar);
SharedPreferencesPlugin.registerWith(registrar);
Expand Down
50 changes: 18 additions & 32 deletions packages/hotel/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -162,34 +162,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
connectivity:
dependency: transitive
description:
name: connectivity
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.6"
connectivity_for_web:
dependency: transitive
description:
name: connectivity_for_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.0+1"
connectivity_macos:
dependency: transitive
description:
name: connectivity_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.1+2"
connectivity_platform_interface:
dependency: transitive
description:
name: connectivity_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
convert:
dependency: transitive
description:
Expand All @@ -211,6 +183,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
credit_card_type_detector:
dependency: transitive
description:
name: credit_card_type_detector
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
credit_card_validator:
dependency: transitive
description:
name: credit_card_validator
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
cross_file:
dependency: transitive
description:
Expand Down Expand Up @@ -245,7 +231,7 @@ packages:
name: decimal
url: "https://pub.dartlang.org"
source: hosted
version: "1.5.0"
version: "2.2.0"
diff_match_patch:
dependency: transitive
description:
Expand All @@ -266,7 +252,7 @@ packages:
name: dropdown_search
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.3"
version: "2.0.1"
equatable:
dependency: "direct main"
description:
Expand Down Expand Up @@ -686,7 +672,7 @@ packages:
name: rational
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
version: "2.2.0"
responsive_framework:
dependency: "direct main"
description:
Expand All @@ -700,7 +686,7 @@ packages:
name: rxdart
url: "https://pub.dartlang.org"
source: hosted
version: "0.26.0"
version: "0.27.3"
shared_preferences:
dependency: "direct main"
description:
Expand Down
Loading

0 comments on commit fe8163a

Please sign in to comment.