File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 45
45
# Don't run on private repo unless it is a PR.
46
46
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
47
47
runs-on : macos-11
48
+ env :
49
+ FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT : 1
48
50
steps :
49
51
- uses : actions/checkout@v2
50
52
- uses : mikehardy/buildcache-action@50738c6c77de7f34e66b870e4f8ede333b69d077
Original file line number Diff line number Diff line change 16
16
// limitations under the License.
17
17
18
18
import PackageDescription
19
+ import class Foundation. ProcessInfo
19
20
20
21
let firebaseVersion = " 8.12.0 "
21
22
@@ -1195,3 +1196,14 @@ let package = Package(
1195
1196
cLanguageStandard: . c99,
1196
1197
cxxLanguageStandard: CXXLanguageStandard . gnucxx14
1197
1198
)
1199
+
1200
+ if ProcessInfo . processInfo. environment [ " FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT " ] != nil {
1201
+ if let GoogleAppMeasurementIndex = package . dependencies
1202
+ . firstIndex ( where: { $0. name == " GoogleAppMeasurement " } ) {
1203
+ package . dependencies [ GoogleAppMeasurementIndex] = . package (
1204
+ name: " GoogleAppMeasurement " ,
1205
+ url: " https://github.com/google/GoogleAppMeasurement.git " ,
1206
+ . branch( " main " )
1207
+ )
1208
+ }
1209
+ }
You can’t perform that action at this time.
0 commit comments