Skip to content

Commit af18372

Browse files
committed
Изменён package name
1 parent c1fc3ff commit af18372

4 files changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/deploy-develop.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ jobs:
6565
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
6666
run: |
6767
dart pub global activate flutterfire_cli 1.3.1
68-
flutterfire configure -t $firebase_token -y -p unn-mobile-1 --platforms=android --android-package-name=ru.unn.unn_mobile
68+
flutterfire configure -t $firebase_token -y -p unn-mobile-1 --platforms=android --android-package-name=ru.bitcodersnn.unnstudenthub
6969
- name: build
70-
run: flutter build apk
70+
run: flutter build appbundle
7171
- name: delete old build artifact
7272
uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b
7373
with:
74-
name: unn-mobile.apk
74+
name: unn-mobile.aab
7575
- name: upload build artifact
7676
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
7777
with:
7878
name: unn-mobile.apk
79-
path: "build/app/outputs/flutter-apk/app-release.apk"
79+
path: "build/app/outputs/bundle/release/app-release.aab"
8080

8181
deploy:
8282
runs-on: ubuntu-latest
@@ -87,7 +87,7 @@ jobs:
8787
- name: retrieve the binary
8888
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
8989
with:
90-
name: unn-mobile.apk
90+
name: unn-mobile.aab
9191
- name: install firebase
9292
run: curl -sL https://firebase.tools | bash
9393
- name: deploy (main)
@@ -96,13 +96,13 @@ jobs:
9696
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
9797
app_id: ${{ secrets.FIREBASE_A_APP_ID }}
9898
run: |
99-
firebase --project unn-mobile-1 --token $firebase_token appdistribution:distribute --groups "testers" --app "$app_id" --release-notes "$(git log -1 --pretty=%B)" "${GITHUB_WORKSPACE}/app-release.apk"
99+
firebase --project unn-mobile-1 --token $firebase_token appdistribution:distribute --groups "testers" --app "$app_id" --release-notes "$(git log -1 --pretty=%B)" "${GITHUB_WORKSPACE}/app-release.aab"
100100
- name: deploy (PR)
101101
if: github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main'
102102
env:
103103
TITLE: ${{ github.head_ref || github.ref_name }}
104104
firebase_token: ${{ secrets.FIREBASE_TOKEN }}
105105
app_id: ${{ secrets.FIREBASE_A_APP_ID }}
106106
run: |
107-
firebase --project unn-mobile-1 --token $firebase_token appdistribution:distribute --groups "testers" --app "$app_id" --release-notes "$TITLE" "${GITHUB_WORKSPACE}/app-release.apk"
107+
firebase --project unn-mobile-1 --token $firebase_token appdistribution:distribute --groups "testers" --app "$app_id" --release-notes "$TITLE" "${GITHUB_WORKSPACE}/app-release.aab"
108108

android/app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (keystorePropertiesFile.exists()) {
2020
}
2121

2222
android {
23-
namespace = "ru.unn.unn_mobile"
23+
namespace = "ru.bitcodersnn.unnstudenthub"
2424
compileSdk = flutter.compileSdkVersion
2525
ndkVersion = flutter.ndkVersion
2626

@@ -35,7 +35,7 @@ android {
3535

3636
defaultConfig {
3737
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
38-
applicationId = "ru.unn.unn_mobile"
38+
applicationId = "ru.bitcodersnn.unnstudenthub"
3939
// You can update the following values to match your application needs.
4040
// For more information, see: https://flutter.dev/to/review-gradle-config.
4141
minSdk = flutter.minSdkVersion

android/app/src/main/kotlin/ru/unn/unn_mobile/MainActivity.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ru.unn.unn_mobile
1+
package ru.bitcodersnn.unnstudenthub
22

33
import android.content.Intent
44
import android.net.Uri
@@ -15,9 +15,9 @@ const val FILE_PICKER_REQUEST = 1
1515

1616
const val UPLOAD_FILE_PICKER_REQUEST = 2
1717

18-
const val FILE_CHANNEL = "ru.unn.unn_mobile/files"
18+
const val FILE_CHANNEL = "ru.bitcodersnn.unnstudenthub/files"
1919

20-
const val FILE_PICKER_EVENTS = "ru.unn.unn_mobile/file_events"
20+
const val FILE_PICKER_EVENTS = "ru.bitcodersnn.unnstudenthub/file_events"
2121

2222
const val ARGUMENT_ERROR = "ARGUMENT_ERROR"
2323

lib/core/misc/file_helpers/file_functions.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import 'package:path/path.dart' as p;
1313
import 'package:path_provider/path_provider.dart';
1414
import 'package:unn_mobile/core/services/interfaces/common/logger_service.dart';
1515

16-
const MethodChannel _fileChannel = MethodChannel('ru.unn.unn_mobile/files');
16+
const MethodChannel _fileChannel =
17+
MethodChannel('ru.bitcodersnn.unnstudenthub/files');
1718

1819
Future<String?> openFilePicker(String fileName, String mimeType) async {
1920
await _fileChannel.invokeMethod(
@@ -23,7 +24,7 @@ Future<String?> openFilePicker(String fileName, String mimeType) async {
2324
'mimeType': mimeType,
2425
},
2526
);
26-
const pickerEvents = EventChannel('ru.unn.unn_mobile/file_events');
27+
const pickerEvents = EventChannel('ru.bitcodersnn.unnstudenthub/file_events');
2728
final pickerStream = pickerEvents.receiveBroadcastStream();
2829
final location = await pickerStream.first as String?;
2930
return location;
@@ -32,7 +33,8 @@ Future<String?> openFilePicker(String fileName, String mimeType) async {
3233
Future<Iterable<String>?> openUploadFilePicker({required bool gallery}) async {
3334
if (Platform.isAndroid) {
3435
await _fileChannel.invokeMethod('pickUploadFiles', {'gallery': gallery});
35-
const pickerEvents = EventChannel('ru.unn.unn_mobile/file_events');
36+
const pickerEvents =
37+
EventChannel('ru.bitcodersnn.unnstudenthub/file_events');
3638
final pickerStream = pickerEvents.receiveBroadcastStream();
3739
final locations = await pickerStream.first as List<Object?>?;
3840
final uriStrings = locations?.cast<String>() ?? [];

0 commit comments

Comments
 (0)