Skip to content

fixed IAF session timeout for iOS (#47) #122

fixed IAF session timeout for iOS (#47)

fixed IAF session timeout for iOS (#47) #122

Workflow file for this run

name: build-android
on:
pull_request:
push:
branches:
- master
- 'feat/**'
- 'rel/**'
jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
flutter-version: 3.38.7
cache: true
- name: Install dependencies
run: |
flutter pub get
cd example && flutter pub get
- name: Create dummy Firebase config for CI
run: |
cat > example/android/app/google-services.json << 'EOF'
{
"project_info": {
"project_number": "123456789000",
"project_id": "klaviyo-flutter-sdk-example-ci",
"storage_bucket": "klaviyo-flutter-sdk-example-ci.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:123456789000:android:abc123def456ci",
"android_client_info": {
"package_name": "com.klaviyo.flutterexample"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyDummyKeyForCIBuildOnly1234567890123"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
EOF
- name: Build Android APK
run: |
cd example
flutter build apk --debug
- name: Verify build artifacts
run: |
if [ ! -f example/build/app/outputs/flutter-apk/app-debug.apk ]; then
echo "APK build failed"
exit 1
fi
echo "Android build successful"