Просмотр исходного кода

Add NFC tag reading capability to TestFlight app from Fastfile (#26)

* Fastfile: add NFC tag reading capability

- and fix bundle ID for iAPS in validate_secrets lane:
find_bundle_id("ru.artpancreas.#{TEAMID}.FreeAPS")

* build_iAPS: Build on macos-12 using latest stable Xcode by default, 

uncomment to set Xcode version manually for build, add_identifiers and create_certs workflows

* Remove instructions to manually add NFC Tag Reading capability
bjornoleh 3 лет назад
Родитель
Сommit
574242bebf

+ 3 - 3
.github/workflows/add_identifiers.yml

@@ -12,9 +12,9 @@ jobs:
     needs: secrets
     needs: secrets
     runs-on: macos-12
     runs-on: macos-12
     steps:
     steps:
-      # Uncomment to manually select latest Xcode if needed
-      #- name: Select Latest Xcode
-      #  run: "sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer"
+      # Uncomment to manually select Xcode version if needed
+      #- name: Select Xcode version
+      #  run: "sudo xcode-select --switch /Applications/Xcode_14.1.app/Contents/Developer"
       
       
       # Checks-out the repo
       # Checks-out the repo
       - name: Checkout Repo
       - name: Checkout Repo

+ 3 - 3
.github/workflows/build_iAPS.yml

@@ -20,9 +20,9 @@ jobs:
     needs: secrets
     needs: secrets
     runs-on: macos-12
     runs-on: macos-12
     steps:
     steps:
-      # Uncomment to manually select latest Xcode if needed
-      - name: Select Latest Xcode
-        run: "sudo xcode-select --switch /Applications/Xcode_14.1.app/Contents/Developer"
+      # Uncomment to manually select Xcode version if needed
+      #- name: Select Xcode version
+      #  run: "sudo xcode-select --switch /Applications/Xcode_14.1.app/Contents/Developer"
 
 
       # Checks-out the repo
       # Checks-out the repo
       - name: Checkout Repo
       - name: Checkout Repo

+ 3 - 3
.github/workflows/create_certs.yml

@@ -12,9 +12,9 @@ jobs:
     needs: secrets
     needs: secrets
     runs-on: macos-12
     runs-on: macos-12
     steps:
     steps:
-      # Uncomment to manually select latest Xcode if needed
-      #- name: Select Latest Xcode
-      #  run: "sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer"
+      # Uncomment to manually select Xcode version if needed
+      #- name: Select Xcode version
+      #  run: "sudo xcode-select --switch /Applications/Xcode_14.1.app/Contents/Developer"
       
       
       # Checks-out the repo
       # Checks-out the repo
       - name: Checkout Repo
       - name: Checkout Repo

+ 3 - 2
fastlane/Fastfile

@@ -149,7 +149,8 @@ platform :ios do
 
 
     configure_bundle_id("FreeAPS", "ru.artpancreas.#{TEAMID}.FreeAPS", [
     configure_bundle_id("FreeAPS", "ru.artpancreas.#{TEAMID}.FreeAPS", [
       Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS,
       Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS,
-      Spaceship::ConnectAPI::BundleIdCapability::Type::HEALTHKIT
+      Spaceship::ConnectAPI::BundleIdCapability::Type::HEALTHKIT,
+      Spaceship::ConnectAPI::BundleIdCapability::Type::NFC_TAG_READING
     ])
     ])
 
 
     configure_bundle_id("FreeAPSWatch WatchKit Extension", "ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp.watchkitextension", [
     configure_bundle_id("FreeAPSWatch WatchKit Extension", "ru.artpancreas.#{TEAMID}.FreeAPS.watchkitapp.watchkitextension", [
@@ -201,7 +202,7 @@ platform :ios do
       bundle_id = Spaceship::ConnectAPI::BundleId.find(identifier)
       bundle_id = Spaceship::ConnectAPI::BundleId.find(identifier)
     end
     end
 
 
-    find_bundle_id("com.#{TEAMID}.loopkit.Loop")
+    find_bundle_id("ru.artpancreas.#{TEAMID}.FreeAPS")
   end
   end
 
 
   desc "Nuke Certs"
   desc "Nuke Certs"

+ 0 - 8
fastlane/testflight.md

@@ -93,14 +93,6 @@ _Please note that in default builds of iAPS, the app group is actually identical
 1. Click "Confirm".
 1. Click "Confirm".
 1. Remember to do this for each of the identifiers above.
 1. Remember to do this for each of the identifiers above.
 
 
-## Add NFC Tag Reading to FreeeAPS App ID
-1. Go to [Certificates, Identifiers & Profiles](https://developer.apple.com/account/resources/identifiers/list) on the apple developer site.
-1. Click on the "FreeeAPS" identifier
-1. Scroll down to "NFC Tag Reading"
-1. Tap the check box to enable NFC Tag Reading.
-1. Click "Save".
-1. Click "Confirm".
-
 ## Create iAPS App in App Store Connect
 ## Create iAPS App in App Store Connect
 
 
 If you have created a iAPS app in App Store Connect before, you can skip this section as well.
 If you have created a iAPS app in App Store Connect before, you can skip this section as well.