Skip to content

Commit

Permalink
chore(fastlane): Refactor Fastlane configuration and workflows (#2756)
Browse files Browse the repository at this point in the history
  • Loading branch information
niyajali authored Feb 4, 2025
1 parent 26cf8c7 commit d05b726
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 235 deletions.
1 change: 1 addition & 0 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ plugins {
alias(libs.plugins.mifos.android.application.compose)
alias(libs.plugins.mifos.android.application.flavors)
alias(libs.plugins.mifos.android.hilt)
alias(libs.plugins.gms)
id("com.google.android.gms.oss-licenses-plugin")
}

Expand Down
31 changes: 22 additions & 9 deletions androidApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,7 @@
android:required="false" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
<uses-permission android:name="android.permission.CAMERA" />

<uses-feature android:name="android.hardware.camera.any" />

<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />

<uses-permission
android:name="com.google.android.gms.permission.AD_ID"
Expand Down Expand Up @@ -81,6 +72,28 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/fileproviderpath" />
</provider>

<!-- Prompt Google Play services to install the backported photo picker module -->
<service android:name="com.google.android.gms.metadata.ModuleDependencies" android:enabled="false" android:exported="false">
<intent-filter>
<action android:name="com.google.android.gms.metadata.MODULE_DEPENDENCIES" />
</intent-filter>

<meta-data android:name="photopicker_activity:0:required" android:value="" />
</service>

<!-- Disable Firebase analytics by default. This setting is overwritten for the `prod` flavor -->
<meta-data
android:name="firebase_analytics_collection_deactivated"
android:value="true" />
<!-- Disable collection of AD_ID for all build variants -->
<meta-data
android:name="google_analytics_adid_collection_enabled"
android:value="false" />
<!-- Firebase automatically adds the following property which we don't use so remove it -->
<property
android:name="android.adservices.AD_SERVICES_CONFIG"
tools:node="remove" />
</application>

</manifest>
23 changes: 23 additions & 0 deletions fastlane-config/android_config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module FastlaneConfig
module AndroidConfig
STORE_CONFIG = {
default_store_file: "release_keystore.keystore",
default_store_password: "mifos1234",
default_key_alias: "mifos-mobile",
default_key_password: "mifos1234"
}

FIREBASE_CONFIG = {
firebase_prod_app_id: "1:728434912738:android:d853a78f14af0c381a1dbb",
firebase_demo_app_id: "1:728434912738:android:7845cce9777d9cf11a1dbb",
firebase_service_creds_file: "secrets/firebaseAppDistributionServiceCredentialsFile.json",
firebase_groups: "mifos-mobile-testers"
}

BUILD_PATHS = {
prod_apk_path: "androidApp/build/outputs/apk/prod/release/androidApp-prod-release.apk",
demo_apk_path: "androidApp/build/outputs/apk/demo/release/androidApp-demo-release.apk",
prod_aab_path: "androidApp/build/outputs/bundle/prodRelease/androidApp-prod-release.aab"
}
end
end
15 changes: 15 additions & 0 deletions fastlane-config/ios_config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module FastlaneConfig
module IosConfig
FIREBASE_CONFIG = {
firebase_app_id: "1:728434912738:ios:shjhsa78392shja",
firebase_service_creds_file: "secrets/firebaseAppDistributionServiceCredentialsFile.json",
firebase_groups: "kmp-project-template-testers"
}

BUILD_CONFIG = {
project_path: "cmp-ios/iosApp.xcodeproj",
scheme: "iosApp",
output_directory: "cmp-ios/build"
}
end
end
Loading

0 comments on commit d05b726

Please sign in to comment.