Browse Source

feat(build,ios) add lane to update dSYMs on Crashlytics

j8
Saúl Ibarra Corretgé 4 years ago
parent
commit
6c4652e3a0
1 changed files with 17 additions and 5 deletions
  1. 17
    5
      ios/fastlane/Fastfile

+ 17
- 5
ios/fastlane/Fastfile View File

9
     # Make sure we are on a clean tree
9
     # Make sure we are on a clean tree
10
     ensure_git_status_clean
10
     ensure_git_status_clean
11
 
11
 
12
-    # Connext to Apple Store Connect
12
+    # Connect to Apple Store Connect
13
     app_store_connect_api_key(
13
     app_store_connect_api_key(
14
       key_id: ENV["ASC_KEY_ID"],
14
       key_id: ENV["ASC_KEY_ID"],
15
       issuer_id: ENV["ASC_ISSUER_ID"],
15
       issuer_id: ENV["ASC_ISSUER_ID"],
103
       uses_non_exempt_encryption: false
103
       uses_non_exempt_encryption: false
104
     )
104
     )
105
 
105
 
106
-    # Upload dSYMs to Crashlytics
107
-    download_dsyms
108
-    upload_symbols_to_crashlytics
109
-
110
     # Cleanup
106
     # Cleanup
111
     clean_build_artifacts
107
     clean_build_artifacts
112
     reset_git_repo(skip_clean: true)
108
     reset_git_repo(skip_clean: true)
113
   end
109
   end
110
+
111
+  lane :refresh_dsyms do
112
+    # Connect to Apple Store Connect
113
+    app_store_connect_api_key(
114
+      key_id: ENV["ASC_KEY_ID"],
115
+      issuer_id: ENV["ASC_ISSUER_ID"],
116
+      key_content: ENV["ASC_KEY_CONTENT"],
117
+      duration: 1200,
118
+      in_house: false
119
+    )
120
+
121
+    # Upload dSYMs to Crashlytics
122
+    download_dsyms(min_version: ENV["DSYMS_MIN_VERSION"])  # Download dSYM files from iTC
123
+    upload_symbols_to_crashlytics                          # Upload them to Crashlytics
124
+    clean_build_artifacts                                  # Delete the local dSYM files
125
+  end
114
 end
126
 end

Loading…
Cancel
Save