Remove unused rules for notification
Added Firebase Add scripts for deploy Android application Fix increment application bundle version Increase version for upload in build phase Try fix deploy android Android deploy first Remove unwanted artefact deletion
This commit is contained in:
@@ -38,7 +38,7 @@ ManualBuild:
|
||||
- chmod +x ./toolchain/build_platforms.sh
|
||||
- ./toolchain/build_platforms.sh device
|
||||
|
||||
DeployIOS:
|
||||
Deploy:
|
||||
when: on_success
|
||||
allow_failure: false
|
||||
tags:
|
||||
@@ -60,9 +60,11 @@ DeployIOS:
|
||||
- tags
|
||||
script:
|
||||
- chmod +x ./toolchain/deploy_iOS.sh
|
||||
- chmod +x ./toolchain/deploy_Android.sh
|
||||
- ./toolchain/deploy_iOS.sh ${IPA_DEPLOY_TARGET} ${IPA_PATH} ${IPA_FILE} iOS
|
||||
- ./toolchain/deploy_Android.sh
|
||||
|
||||
DeployIOS_Feature:
|
||||
Deploy_Feature:
|
||||
when: manual
|
||||
allow_failure: false
|
||||
tags:
|
||||
@@ -83,19 +85,19 @@ DeployIOS_Feature:
|
||||
- /^feature/
|
||||
script:
|
||||
- chmod +x ./toolchain/deploy_iOS.sh
|
||||
- chmod +x ./toolchain/deploy_Android.sh
|
||||
- ./toolchain/deploy_Android.sh
|
||||
- ./toolchain/deploy_iOS.sh ${IPA_DEPLOY_TARGET} ${IPA_PATH} ${IPA_FILE} iOS
|
||||
|
||||
notifyMessengerFail:
|
||||
when: on_failure
|
||||
needs:
|
||||
- job: DeployIOS
|
||||
- job: Deploy
|
||||
artifacts: false
|
||||
only:
|
||||
refs:
|
||||
- develop
|
||||
- tags
|
||||
changes:
|
||||
- ios/**/*
|
||||
stage: notify
|
||||
tags:
|
||||
- macos
|
||||
@@ -107,14 +109,12 @@ notifyMessengerFail:
|
||||
notifyMessengerSuccess:
|
||||
when: on_success
|
||||
needs:
|
||||
- job: DeployIOS
|
||||
- job: Deploy
|
||||
artifacts: false
|
||||
only:
|
||||
refs:
|
||||
- develop
|
||||
- tags
|
||||
changes:
|
||||
- ios/**/*
|
||||
stage: notify
|
||||
tags:
|
||||
- macos
|
||||
|
||||
@@ -2,6 +2,7 @@ plugins {
|
||||
id "com.android.application"
|
||||
id "kotlin-android"
|
||||
id "dev.flutter.flutter-gradle-plugin"
|
||||
id 'com.google.gms.google-services'
|
||||
}
|
||||
|
||||
def localProperties = new Properties()
|
||||
@@ -23,7 +24,7 @@ if (flutterVersionName == null) {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace "tech.nut.nut_player_example"
|
||||
namespace "tech.nut.nutplayer.flutter"
|
||||
compileSdkVersion flutter.compileSdkVersion
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
||||
@@ -42,7 +43,7 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "tech.nut.nut_player_example"
|
||||
applicationId "tech.nut.nutplayer.flutter"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||
minSdkVersion flutter.minSdkVersion
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "803206890572",
|
||||
"project_id": "nutplayer-flutter",
|
||||
"storage_bucket": "nutplayer-flutter.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:803206890572:android:ad09971112d775d202e0e9",
|
||||
"android_client_info": {
|
||||
"package_name": "tech.nut.nutplayer.flutter"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "803206890572-omc4vdhgoe2rg6939c798s53v8564l6n.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyB7HEhQGvbebWG-B75L9DcSlq_n0EG_zTc"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "803206890572-omc4vdhgoe2rg6939c798s53v8564l6n.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tech.nut.nut_player_example
|
||||
package tech.nut.nutplayer.flutter
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
||||
@@ -8,6 +8,7 @@ buildscript {
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.3.0'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath 'com.google.gms:google-services:+'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ pluginManagement {
|
||||
|
||||
plugins {
|
||||
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
|
||||
id 'com.google.gms.google-services' version '4.3.15' apply false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -67,6 +67,10 @@ fi
|
||||
|
||||
# iOS
|
||||
|
||||
#Sync versions and change build number for upload to TestFlight
|
||||
BUNDLE_SHORT_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "./ios/Runner/Info.plist")
|
||||
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $CI_PIPELINE_IID" ./ios/Runner/Info.plist
|
||||
|
||||
flutter build ipa \
|
||||
--release \
|
||||
--export-options-plist=../toolchain/NutPlayer-iOS-ExportOptions.plist
|
||||
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
RELEASE_NOTES="notes.txt"
|
||||
|
||||
git log --pretty=format:'%h %s' -n 5 > $RELEASE_NOTES
|
||||
|
||||
firebase appdistribution:distribute ./Result/app-release.apk \
|
||||
--app $K8S_FIREBASE_ANDROID_APPLICATION \
|
||||
--release-notes-file $RELEASE_NOTES \
|
||||
--groups QA
|
||||
Regular → Executable
+8
-3
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
unlock_login_keychain() {
|
||||
if [ -z "$1" ]; then
|
||||
echo "Password parameter must be exists"
|
||||
@@ -32,7 +34,12 @@ if [ "$IPA_DEPLOY_TARGET" == "TESTFLIGHT" ]; then
|
||||
unlock_login_keychain "$K8S_SECRET_SPOCK"
|
||||
|
||||
#upload
|
||||
xcrun altool --upload-app --username "juraldinio@me.com" --password "$K8S_SECRET_NOTARIZATION" -t $PLATFORM --file $IPA_PATH/$IPA_FILE
|
||||
xcrun altool \
|
||||
--upload-app \
|
||||
--username "juraldinio@me.com" \
|
||||
--password "$K8S_SECRET_NOTARIZATION" \
|
||||
-t $PLATFORM \
|
||||
--file $IPA_PATH/$IPA_FILE
|
||||
|
||||
if [ "$?" != "0" ]; then
|
||||
echo >&2 "⛔️ Error: upload build failed";
|
||||
@@ -55,5 +62,3 @@ else
|
||||
echo "Nothing to do"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf $IPA_PATH
|
||||
|
||||
Reference in New Issue
Block a user