Rename project

This commit is contained in:
Nutcake 2023-05-01 19:13:40 +02:00
parent 82cdd56d4b
commit 344284b2cf
18 changed files with 52 additions and 54 deletions

View file

@ -47,7 +47,7 @@ android {
applicationId "de.voidspace.contacts_plus" applicationId "de.voidspace.contacts_plus"
// You can update the following values to match your application needs. // 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. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion minSdkVersion 18
targetSdkVersion flutter.targetSdkVersion targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName

View file

@ -4,7 +4,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart'; import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:contacts_plus/models/authentication_data.dart'; import 'package:contacts_plus_plus/models/authentication_data.dart';
import 'package:uuid/uuid.dart'; import 'package:uuid/uuid.dart';
import 'config.dart'; import 'config.dart';

View file

@ -1,9 +1,9 @@
import 'dart:convert'; import 'dart:convert';
import 'package:contacts_plus/api_client.dart'; import 'package:contacts_plus_plus/api_client.dart';
import 'package:contacts_plus/models/friend.dart'; import 'package:contacts_plus_plus/models/friend.dart';
import 'package:contacts_plus/models/user.dart'; import 'package:contacts_plus_plus/models/user.dart';
class FriendApi { class FriendApi {
static Future<Iterable<Friend>> getFriendsList(ApiClient client) async { static Future<Iterable<Friend>> getFriendsList(ApiClient client) async {

View file

@ -1,7 +1,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:contacts_plus/api_client.dart'; import 'package:contacts_plus_plus/api_client.dart';
import 'package:contacts_plus/models/message.dart'; import 'package:contacts_plus_plus/models/message.dart';
class MessageApi { class MessageApi {
static Future<Iterable<Message>> getUserMessages(ApiClient client, {String userId="", DateTime? fromTime, int maxItems=50, bool unreadOnly=false}) async { static Future<Iterable<Message>> getUserMessages(ApiClient client, {String userId="", DateTime? fromTime, int maxItems=50, bool unreadOnly=false}) async {

View file

@ -1,7 +1,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:contacts_plus/api_client.dart'; import 'package:contacts_plus_plus/api_client.dart';
import 'package:contacts_plus/models/user.dart'; import 'package:contacts_plus_plus/models/user.dart';
class UserApi { class UserApi {
static Future<Iterable<User>> searchUsers(ApiClient client, {required String needle}) async { static Future<Iterable<User>> searchUsers(ApiClient client, {required String needle}) async {

View file

@ -1,4 +1,4 @@
import 'package:contacts_plus/config.dart'; import 'package:contacts_plus_plus/config.dart';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
enum NeosDBEndpoint enum NeosDBEndpoint

View file

@ -1,23 +1,23 @@
import 'package:contacts_plus/models/message.dart'; import 'package:contacts_plus_plus/models/message.dart';
import 'package:contacts_plus/neos_hub.dart'; import 'package:contacts_plus_plus/neos_hub.dart';
import 'package:contacts_plus/widgets/home_screen.dart'; import 'package:contacts_plus_plus/widgets/home_screen.dart';
import 'package:contacts_plus/widgets/login_screen.dart'; import 'package:contacts_plus_plus/widgets/login_screen.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'api_client.dart'; import 'api_client.dart';
import 'models/authentication_data.dart'; import 'models/authentication_data.dart';
void main() { void main() {
runApp(const ContactsPlus()); runApp(const ContactsPlusPlus());
} }
class ContactsPlus extends StatefulWidget { class ContactsPlusPlus extends StatefulWidget {
const ContactsPlus({super.key}); const ContactsPlusPlus({super.key});
@override @override
State<ContactsPlus> createState() => _ContactsPlusState(); State<ContactsPlusPlus> createState() => _ContactsPlusPlusState();
} }
class _ContactsPlusState extends State<ContactsPlus> { class _ContactsPlusPlusState extends State<ContactsPlusPlus> {
final Typography _typography = Typography.material2021(platform: TargetPlatform.android); final Typography _typography = Typography.material2021(platform: TargetPlatform.android);
AuthenticationData _authData = AuthenticationData.unauthenticated(); AuthenticationData _authData = AuthenticationData.unauthenticated();
final Map<String, MessageCache> _messageCache = {}; final Map<String, MessageCache> _messageCache = {};
@ -31,7 +31,7 @@ class _ContactsPlusState extends State<ContactsPlus> {
authenticationData: _authData, authenticationData: _authData,
child: MaterialApp( child: MaterialApp(
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
title: 'Contacts+', title: 'Contacts++',
theme: ThemeData( theme: ThemeData(
useMaterial3: true, useMaterial3: true,
textTheme: _typography.white, textTheme: _typography.white,

View file

@ -1,6 +1,6 @@
import 'dart:developer'; import 'dart:developer';
import 'package:contacts_plus/models/user_profile.dart'; import 'package:contacts_plus_plus/models/user_profile.dart';
class Friend extends Comparable { class Friend extends Comparable {
final String id; final String id;

View file

@ -1,7 +1,7 @@
import 'dart:async'; import 'dart:async';
import 'dart:developer'; import 'dart:developer';
import 'package:contacts_plus/config.dart'; import 'package:contacts_plus_plus/config.dart';
import 'package:uuid/uuid.dart'; import 'package:uuid/uuid.dart';
enum MessageType { enum MessageType {

View file

@ -1,4 +1,4 @@
import 'package:contacts_plus/models/user_profile.dart'; import 'package:contacts_plus_plus/models/user_profile.dart';
class User { class User {
final String id; final String id;

View file

@ -1,13 +1,13 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:developer'; import 'dart:developer';
import 'package:contacts_plus/models/authentication_data.dart'; import 'package:contacts_plus_plus/models/authentication_data.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:contacts_plus/api_client.dart'; import 'package:contacts_plus_plus/api_client.dart';
import 'package:contacts_plus/config.dart'; import 'package:contacts_plus_plus/config.dart';
import 'package:contacts_plus/models/message.dart'; import 'package:contacts_plus_plus/models/message.dart';
import 'package:web_socket_channel/web_socket_channel.dart'; import 'package:web_socket_channel/web_socket_channel.dart';
enum EventType { enum EventType {

View file

@ -1,8 +1,7 @@
import 'package:cached_network_image/cached_network_image.dart'; import 'package:contacts_plus_plus/auxiliary.dart';
import 'package:contacts_plus/aux.dart'; import 'package:contacts_plus_plus/models/friend.dart';
import 'package:contacts_plus/models/friend.dart'; import 'package:contacts_plus_plus/widgets/generic_avatar.dart';
import 'package:contacts_plus/widgets/generic_avatar.dart'; import 'package:contacts_plus_plus/widgets/messages.dart';
import 'package:contacts_plus/widgets/messages.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class FriendListTile extends StatelessWidget { class FriendListTile extends StatelessWidget {

View file

@ -1,13 +1,13 @@
import 'dart:async'; import 'dart:async';
import 'package:contacts_plus/api_client.dart'; import 'package:contacts_plus_plus/api_client.dart';
import 'package:contacts_plus/apis/friend_api.dart'; import 'package:contacts_plus_plus/apis/friend_api.dart';
import 'package:contacts_plus/apis/user_api.dart'; import 'package:contacts_plus_plus/apis/user_api.dart';
import 'package:contacts_plus/models/friend.dart'; import 'package:contacts_plus_plus/models/friend.dart';
import 'package:contacts_plus/models/user.dart'; import 'package:contacts_plus_plus/models/user.dart';
import 'package:contacts_plus/widgets/expanding_input_fab.dart'; import 'package:contacts_plus_plus/widgets/expanding_input_fab.dart';
import 'package:contacts_plus/widgets/friend_list_tile.dart'; import 'package:contacts_plus_plus/widgets/friend_list_tile.dart';
import 'package:contacts_plus/widgets/user_list_tile.dart'; import 'package:contacts_plus_plus/widgets/user_list_tile.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class HomeScreen extends StatefulWidget { class HomeScreen extends StatefulWidget {

View file

@ -1,5 +1,5 @@
import 'package:contacts_plus/api_client.dart'; import 'package:contacts_plus_plus/api_client.dart';
import 'package:contacts_plus/models/authentication_data.dart'; import 'package:contacts_plus_plus/models/authentication_data.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class LoginScreen extends StatefulWidget { class LoginScreen extends StatefulWidget {

View file

@ -1,10 +1,9 @@
import 'package:contacts_plus/api_client.dart'; import 'package:contacts_plus_plus/api_client.dart';
import 'package:contacts_plus/apis/message_api.dart'; import 'package:contacts_plus_plus/apis/message_api.dart';
import 'package:contacts_plus/aux.dart'; import 'package:contacts_plus_plus/models/friend.dart';
import 'package:contacts_plus/models/friend.dart'; import 'package:contacts_plus_plus/models/message.dart';
import 'package:contacts_plus/models/message.dart'; import 'package:contacts_plus_plus/neos_hub.dart';
import 'package:contacts_plus/neos_hub.dart'; import 'package:contacts_plus_plus/widgets/generic_avatar.dart';
import 'package:contacts_plus/widgets/generic_avatar.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';

View file

@ -1,5 +1,5 @@
import 'package:contacts_plus/models/user.dart'; import 'package:contacts_plus_plus/models/user.dart';
import 'package:contacts_plus/widgets/generic_avatar.dart'; import 'package:contacts_plus_plus/widgets/generic_avatar.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';

View file

@ -1,4 +1,4 @@
name: contacts_plus name: contacts_plus_plus
description: Messenger App for Neos VR contacts description: Messenger App for Neos VR contacts
# The following line prevents the package from being accidentally published to # The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages. # pub.dev using `flutter pub publish`. This is preferred for private packages.

View file

@ -8,12 +8,12 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:contacts_plus/main.dart'; import 'package:contacts_plus_plus/main.dart';
void main() { void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async { testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame. // Build our app and trigger a frame.
await tester.pumpWidget(ContactsPlus()); await tester.pumpWidget(ContactsPlusPlus());
// Verify that our counter starts at 0. // Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget); expect(find.text('0'), findsOneWidget);