From 2abdcc4ca9cdf3b96c2e068a27eedf6b0c0ad22c Mon Sep 17 00:00:00 2001 From: JonasFranz Date: Wed, 24 Jun 2020 08:37:29 +0000 Subject: [PATCH] Publish iOS Version into Testers group automatically (#47) Update 'lib/constants.dart' Remove test branch from pipeline Add push Add beta dist Co-authored-by: Jonas Franz Co-authored-by: Jonas Franz Reviewed-on: https://kolaente.dev/vikunja/app/pulls/47 Reviewed-by: konrad --- .drone.yml | 8 ++++++++ ios/Runner.xcodeproj/project.pbxproj | 4 ++++ ios/Runner/Runner.entitlements | 8 ++++++++ ios/fastlane/Fastfile | 18 +++++++++++++++++- lib/constants.dart | 2 +- 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 ios/Runner/Runner.entitlements diff --git a/.drone.yml b/.drone.yml index 3a468e3..f33ddec 100644 --- a/.drone.yml +++ b/.drone.yml @@ -169,6 +169,14 @@ steps: from_secret: fastlane_session KEYCHAIN_PASSWORD: from_secret: keychain_password + CONTACT_EMAIL: + from_secret: contact_email + CONTACT_FIRST_NAME: + from_secret: contact_first_name + CONTACT_LAST_NAME: + from_secret: contact_last_name + CONTACT_PHONE: + from_secret: contact_phone commands: - cd ios - fastlane ios signing diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index cea2653..4715037 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -45,6 +45,7 @@ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + BD0C880424A0CB4300291E83 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = ""; }; C102A622A93B95B5704BDD24 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; CA78C9A9831542FDDB6FB31E /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -111,6 +112,7 @@ 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( + BD0C880424A0CB4300291E83 /* Runner.entitlements */, 97C146FA1CF9000F007C117D /* Main.storyboard */, 97C146FD1CF9000F007C117D /* Assets.xcassets */, 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, @@ -417,6 +419,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = Z48VLBM2R7; @@ -448,6 +451,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements new file mode 100644 index 0000000..903def2 --- /dev/null +++ b/ios/Runner/Runner.entitlements @@ -0,0 +1,8 @@ + + + + + aps-environment + development + + diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index f490ff1..959662a 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -20,7 +20,23 @@ platform :ios do lane :beta do match(type: "appstore", readonly: true) gym - upload_to_testflight + upload_to_testflight( + beta_app_feedback_email: "hello@vikunja.io", + beta_app_description: "Automated Vikunja App Build", + demo_account_required: true, + distribute_external: true, + groups: ["PublicBeta"], + changelog: "Automated Vikunja Build", + beta_app_review_info: { + contact_email: ENV["CONTACT_EMAIL"], + contact_first_name: ENV["CONTACT_FIRST_NAME"], + contact_last_name: ENV["CONTACT_LAST_NAME"], + contact_phone: ENV["CONTACT_PHONE"], + demo_account_name: "demo", + demo_account_password: "demo", + notes: "Please use https://try.vikunja.io as URL" + } + ) end lane :signing do match(type: "appstore", readonly: true) diff --git a/lib/constants.dart b/lib/constants.dart index edf467d..fb17b2a 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -1,2 +1,2 @@ const SENTRY_DSN = - 'https://ab786a1feac7418d87187465b6f30ee0@sentry.k8s.jfdev.de/2'; + 'https://b070ed4bd1d043428db6fe7d1ce57908@sentry.kolaente.de/5';