Skip to content

Commit

Permalink
Change app id and name for debug builds (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
Airyzz authored Jul 12, 2024
1 parent dd1dadf commit 4d642df
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 4 deletions.
1 change: 1 addition & 0 deletions commet/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ android {
buildTypes {
debug {
signingConfig signingConfigs.debug
applicationIdSuffix ".debug"
}
release {
signingConfig signingConfigs.release
Expand Down
29 changes: 29 additions & 0 deletions commet/android/app/src/debug/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "714066565492",
"project_id": "commet-16334",
"storage_bucket": "commet-16334.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:714066565492:android:5769795fa988f8abe5b421",
"android_client_info": {
"package_name": "chat.commet.commetapp.debug"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyB9p6VqktUpinkfK8AkBUvWtW7P9yebtCs"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
5 changes: 5 additions & 0 deletions commet/android/app/src/debug/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Commet (dev)</string>

</resources>
6 changes: 3 additions & 3 deletions commet/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
package="chat.commet.commetapp">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<application
android:label="Commet"
android:name="${applicationName}"
tools:replace="android:label"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions commet/android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Commet</string>

</resources>
1 change: 0 additions & 1 deletion commet/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ class App extends StatelessWidget {
return MaterialApp(
title: 'Commet',
theme: theme,
debugShowCheckedModeBanner: false,
navigatorKey: navigator,
localizationsDelegates: T.localizationsDelegates,
builder: (context, child) => Provider<ClientManager>(
Expand Down

0 comments on commit 4d642df

Please sign in to comment.