Merge branch 'sdk-fix-snace-case-filenames' into 'master'
[Sdk] fix snace case filenames See merge request famedly/famedlysdk!152
This commit is contained in:
		
						commit
						d92262f230
					
				|  | @ -23,21 +23,21 @@ | ||||||
| 
 | 
 | ||||||
| library famedlysdk; | library famedlysdk; | ||||||
| 
 | 
 | ||||||
| export 'package:famedlysdk/src/sync/RoomUpdate.dart'; | export 'package:famedlysdk/src/sync/room_update.dart'; | ||||||
| export 'package:famedlysdk/src/sync/EventUpdate.dart'; | export 'package:famedlysdk/src/sync/event_update.dart'; | ||||||
| export 'package:famedlysdk/src/sync/UserUpdate.dart'; | export 'package:famedlysdk/src/sync/user_update.dart'; | ||||||
| export 'package:famedlysdk/src/utils/MatrixException.dart'; | export 'package:famedlysdk/src/utils/matrix_exception.dart'; | ||||||
| export 'package:famedlysdk/src/utils/MatrixFile.dart'; | export 'package:famedlysdk/src/utils/matrix_file.dart'; | ||||||
| export 'package:famedlysdk/src/utils/MxContent.dart'; | export 'package:famedlysdk/src/utils/mx_content.dart'; | ||||||
| export 'package:famedlysdk/src/utils/Profile.dart'; | export 'package:famedlysdk/src/utils/profile.dart'; | ||||||
| export 'package:famedlysdk/src/utils/PushRules.dart'; | export 'package:famedlysdk/src/utils/push_rules.dart'; | ||||||
| export 'package:famedlysdk/src/utils/StatesMap.dart'; | export 'package:famedlysdk/src/utils/states_map.dart'; | ||||||
| export 'package:famedlysdk/src/AccountData.dart'; | export 'package:famedlysdk/src/account_data.dart'; | ||||||
| export 'package:famedlysdk/src/Client.dart'; | export 'package:famedlysdk/src/client.dart'; | ||||||
| export 'package:famedlysdk/src/Event.dart'; | export 'package:famedlysdk/src/event.dart'; | ||||||
| export 'package:famedlysdk/src/Presence.dart'; | export 'package:famedlysdk/src/presence.dart'; | ||||||
| export 'package:famedlysdk/src/Room.dart'; | export 'package:famedlysdk/src/room.dart'; | ||||||
| export 'package:famedlysdk/src/RoomAccountData.dart'; | export 'package:famedlysdk/src/room_account_data.dart'; | ||||||
| export 'package:famedlysdk/src/StoreAPI.dart'; | export 'package:famedlysdk/src/store_api.dart'; | ||||||
| export 'package:famedlysdk/src/Timeline.dart'; | export 'package:famedlysdk/src/timeline.dart'; | ||||||
| export 'package:famedlysdk/src/User.dart'; | export 'package:famedlysdk/src/user.dart'; | ||||||
|  |  | ||||||
|  | @ -25,24 +25,24 @@ import 'dart:async'; | ||||||
| import 'dart:core'; | import 'dart:core'; | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/famedlysdk.dart'; | import 'package:famedlysdk/famedlysdk.dart'; | ||||||
| import 'package:famedlysdk/src/AccountData.dart'; | import 'package:famedlysdk/src/account_data.dart'; | ||||||
| import 'package:famedlysdk/src/Presence.dart'; | import 'package:famedlysdk/src/presence.dart'; | ||||||
| import 'package:famedlysdk/src/StoreAPI.dart'; | import 'package:famedlysdk/src/store_api.dart'; | ||||||
| import 'package:famedlysdk/src/sync/UserUpdate.dart'; | import 'package:famedlysdk/src/sync/user_update.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MatrixFile.dart'; | import 'package:famedlysdk/src/utils/matrix_file.dart'; | ||||||
| import 'package:pedantic/pedantic.dart'; | import 'package:pedantic/pedantic.dart'; | ||||||
| import 'Room.dart'; | import 'room.dart'; | ||||||
| import 'Event.dart'; | import 'event.dart'; | ||||||
| import 'User.dart'; | import 'user.dart'; | ||||||
| import 'utils/Profile.dart'; | import 'utils/profile.dart'; | ||||||
| import 'dart:convert'; | import 'dart:convert'; | ||||||
| import 'package:famedlysdk/src/Room.dart'; | import 'package:famedlysdk/src/room.dart'; | ||||||
| import 'package:http/http.dart' as http; | import 'package:http/http.dart' as http; | ||||||
| import 'package:mime_type/mime_type.dart'; | import 'package:mime_type/mime_type.dart'; | ||||||
| import 'sync/EventUpdate.dart'; | import 'sync/event_update.dart'; | ||||||
| import 'sync/RoomUpdate.dart'; | import 'sync/room_update.dart'; | ||||||
| import 'sync/UserUpdate.dart'; | import 'sync/user_update.dart'; | ||||||
| import 'utils/MatrixException.dart'; | import 'utils/matrix_exception.dart'; | ||||||
| 
 | 
 | ||||||
| typedef RoomSorter = int Function(Room a, Room b); | typedef RoomSorter = int Function(Room a, Room b); | ||||||
| 
 | 
 | ||||||
|  | @ -705,9 +705,7 @@ class Client { | ||||||
|       } else { |       } else { | ||||||
|         await handleSync(syncResp); |         await handleSync(syncResp); | ||||||
|       } |       } | ||||||
|       if (this.prevBatch == null) { |       if (this.prevBatch == null) this.onFirstSync.add(true); | ||||||
|         this.onFirstSync.add(true); |  | ||||||
|       } |  | ||||||
|       this.prevBatch = syncResp["next_batch"]; |       this.prevBatch = syncResp["next_batch"]; | ||||||
|       if (hash == _syncRequest.hashCode) unawaited(_sync()); |       if (hash == _syncRequest.hashCode) unawaited(_sync()); | ||||||
|     } on MatrixException catch (exception) { |     } on MatrixException catch (exception) { | ||||||
|  | @ -23,8 +23,8 @@ | ||||||
| 
 | 
 | ||||||
| import 'dart:convert'; | import 'dart:convert'; | ||||||
| import 'package:famedlysdk/famedlysdk.dart'; | import 'package:famedlysdk/famedlysdk.dart'; | ||||||
| import 'package:famedlysdk/src/utils/Receipt.dart'; | import 'package:famedlysdk/src/utils/receipt.dart'; | ||||||
| import './Room.dart'; | import './room.dart'; | ||||||
| 
 | 
 | ||||||
| /// All data exchanged over Matrix is expressed as an "event". Typically each client action (e.g. sending a message) correlates with exactly one event. | /// All data exchanged over Matrix is expressed as an "event". Typically each client action (e.g. sending a message) correlates with exactly one event. | ||||||
| class Event { | class Event { | ||||||
|  | @ -23,19 +23,19 @@ | ||||||
| 
 | 
 | ||||||
| import 'dart:async'; | import 'dart:async'; | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/src/Client.dart'; | import 'package:famedlysdk/src/client.dart'; | ||||||
| import 'package:famedlysdk/src/Event.dart'; | import 'package:famedlysdk/src/event.dart'; | ||||||
| import 'package:famedlysdk/src/RoomAccountData.dart'; | import 'package:famedlysdk/src/room_account_data.dart'; | ||||||
| import 'package:famedlysdk/src/sync/EventUpdate.dart'; | import 'package:famedlysdk/src/sync/event_update.dart'; | ||||||
| import 'package:famedlysdk/src/sync/RoomUpdate.dart'; | import 'package:famedlysdk/src/sync/room_update.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MatrixException.dart'; | import 'package:famedlysdk/src/utils/matrix_exception.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MatrixFile.dart'; | import 'package:famedlysdk/src/utils/matrix_file.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MxContent.dart'; | import 'package:famedlysdk/src/utils/mx_content.dart'; | ||||||
| import 'package:mime_type/mime_type.dart'; | import 'package:mime_type/mime_type.dart'; | ||||||
| 
 | 
 | ||||||
| import './User.dart'; | import './user.dart'; | ||||||
| import 'Timeline.dart'; | import 'timeline.dart'; | ||||||
| import 'utils/StatesMap.dart'; | import 'utils/states_map.dart'; | ||||||
| 
 | 
 | ||||||
| /// Represents a Matrix room. | /// Represents a Matrix room. | ||||||
| class Room { | class Room { | ||||||
|  | @ -22,8 +22,8 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/famedlysdk.dart'; | import 'package:famedlysdk/famedlysdk.dart'; | ||||||
| import 'package:famedlysdk/src/AccountData.dart'; | import 'package:famedlysdk/src/account_data.dart'; | ||||||
| import 'package:famedlysdk/src/Event.dart'; | import 'package:famedlysdk/src/event.dart'; | ||||||
| 
 | 
 | ||||||
| /// Stripped down events for account data and ephemrals of a room. | /// Stripped down events for account data and ephemrals of a room. | ||||||
| class RoomAccountData extends AccountData { | class RoomAccountData extends AccountData { | ||||||
|  | @ -23,15 +23,15 @@ | ||||||
| 
 | 
 | ||||||
| import 'dart:async'; | import 'dart:async'; | ||||||
| import 'dart:core'; | import 'dart:core'; | ||||||
| import 'package:famedlysdk/src/AccountData.dart'; | import 'package:famedlysdk/src/account_data.dart'; | ||||||
| import 'package:famedlysdk/src/Presence.dart'; | import 'package:famedlysdk/src/presence.dart'; | ||||||
| import 'Client.dart'; | import 'client.dart'; | ||||||
| import 'Event.dart'; | import 'event.dart'; | ||||||
| import 'Room.dart'; | import 'room.dart'; | ||||||
| import 'User.dart'; | import 'user.dart'; | ||||||
| import 'sync/EventUpdate.dart'; | import 'sync/event_update.dart'; | ||||||
| import 'sync/RoomUpdate.dart'; | import 'sync/room_update.dart'; | ||||||
| import 'sync/UserUpdate.dart'; | import 'sync/user_update.dart'; | ||||||
| 
 | 
 | ||||||
| /// Responsible to store all data persistent and to query objects from the | /// Responsible to store all data persistent and to query objects from the | ||||||
| /// database. | /// database. | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. |  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import '../User.dart'; | import '../user.dart'; | ||||||
| 
 | 
 | ||||||
| /// Represents a new room or an update for an | /// Represents a new room or an update for an | ||||||
| /// already known room. | /// already known room. | ||||||
|  | @ -23,10 +23,10 @@ | ||||||
| 
 | 
 | ||||||
| import 'dart:async'; | import 'dart:async'; | ||||||
| 
 | 
 | ||||||
| import 'Event.dart'; | import 'event.dart'; | ||||||
| import 'Room.dart'; | import 'room.dart'; | ||||||
| import 'User.dart'; | import 'user.dart'; | ||||||
| import 'sync/EventUpdate.dart'; | import 'sync/event_update.dart'; | ||||||
| 
 | 
 | ||||||
| typedef onTimelineUpdateCallback = void Function(); | typedef onTimelineUpdateCallback = void Function(); | ||||||
| typedef onTimelineInsertCallback = void Function(int insertID); | typedef onTimelineInsertCallback = void Function(int insertID); | ||||||
|  | @ -22,9 +22,9 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/famedlysdk.dart'; | import 'package:famedlysdk/famedlysdk.dart'; | ||||||
| import 'package:famedlysdk/src/Room.dart'; | import 'package:famedlysdk/src/room.dart'; | ||||||
| import 'package:famedlysdk/src/Event.dart'; | import 'package:famedlysdk/src/event.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MxContent.dart'; | import 'package:famedlysdk/src/utils/mx_content.dart'; | ||||||
| 
 | 
 | ||||||
| enum Membership { join, invite, leave, ban } | enum Membership { join, invite, leave, ban } | ||||||
| 
 | 
 | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. |  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/src/Client.dart'; | import 'package:famedlysdk/src/client.dart'; | ||||||
| import 'dart:core'; | import 'dart:core'; | ||||||
| 
 | 
 | ||||||
| /// A file in Matrix presented by a mxc:// uri scheme. | /// A file in Matrix presented by a mxc:// uri scheme. | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| import 'package:famedlysdk/src/utils/MxContent.dart'; | import 'package:famedlysdk/src/utils/mx_content.dart'; | ||||||
| 
 | 
 | ||||||
| /// Represents a user profile returned by a /profile request. | /// Represents a user profile returned by a /profile request. | ||||||
| class Profile { | class Profile { | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| import '../User.dart'; | import '../user.dart'; | ||||||
| 
 | 
 | ||||||
| /// Represents a receipt. | /// Represents a receipt. | ||||||
| /// This [user] has read an event at the given [time]. | /// This [user] has read an event at the given [time]. | ||||||
|  | @ -23,20 +23,20 @@ | ||||||
| 
 | 
 | ||||||
| import 'dart:async'; | import 'dart:async'; | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/src/AccountData.dart'; | import 'package:famedlysdk/src/account_data.dart'; | ||||||
| import 'package:famedlysdk/src/Client.dart'; | import 'package:famedlysdk/src/client.dart'; | ||||||
| import 'package:famedlysdk/src/Presence.dart'; | import 'package:famedlysdk/src/presence.dart'; | ||||||
| import 'package:famedlysdk/src/Room.dart'; | import 'package:famedlysdk/src/room.dart'; | ||||||
| import 'package:famedlysdk/src/User.dart'; | import 'package:famedlysdk/src/user.dart'; | ||||||
| import 'package:famedlysdk/src/sync/EventUpdate.dart'; | import 'package:famedlysdk/src/sync/event_update.dart'; | ||||||
| import 'package:famedlysdk/src/sync/RoomUpdate.dart'; | import 'package:famedlysdk/src/sync/room_update.dart'; | ||||||
| import 'package:famedlysdk/src/sync/UserUpdate.dart'; | import 'package:famedlysdk/src/sync/user_update.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MatrixException.dart'; | import 'package:famedlysdk/src/utils/matrix_exception.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MatrixFile.dart'; | import 'package:famedlysdk/src/utils/matrix_file.dart'; | ||||||
| import 'package:famedlysdk/src/utils/Profile.dart'; | import 'package:famedlysdk/src/utils/profile.dart'; | ||||||
| import 'package:test/test.dart'; | import 'package:test/test.dart'; | ||||||
| 
 | 
 | ||||||
| import 'FakeMatrixApi.dart'; | import 'fake_matrix_api.dart'; | ||||||
| 
 | 
 | ||||||
| void main() { | void main() { | ||||||
|   Client matrix; |   Client matrix; | ||||||
|  | @ -24,10 +24,10 @@ | ||||||
| import 'dart:convert'; | import 'dart:convert'; | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/famedlysdk.dart'; | import 'package:famedlysdk/famedlysdk.dart'; | ||||||
| import 'package:famedlysdk/src/Event.dart'; | import 'package:famedlysdk/src/event.dart'; | ||||||
| import 'package:test/test.dart'; | import 'package:test/test.dart'; | ||||||
| 
 | 
 | ||||||
| import 'FakeMatrixApi.dart'; | import 'fake_matrix_api.dart'; | ||||||
| 
 | 
 | ||||||
| void main() { | void main() { | ||||||
|   /// All Tests related to the Event |   /// All Tests related to the Event | ||||||
|  | @ -22,10 +22,10 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import 'package:test/test.dart'; | import 'package:test/test.dart'; | ||||||
| import 'package:famedlysdk/src/Client.dart'; | import 'package:famedlysdk/src/client.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MxContent.dart'; | import 'package:famedlysdk/src/utils/mx_content.dart'; | ||||||
| 
 | 
 | ||||||
| import 'FakeMatrixApi.dart'; | import 'fake_matrix_api.dart'; | ||||||
| 
 | 
 | ||||||
| void main() { | void main() { | ||||||
|   /// All Tests related to the MxContent |   /// All Tests related to the MxContent | ||||||
|  | @ -21,7 +21,7 @@ | ||||||
|  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. |  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/src/utils/PushRules.dart'; | import 'package:famedlysdk/src/utils/push_rules.dart'; | ||||||
| import 'package:test/test.dart'; | import 'package:test/test.dart'; | ||||||
| 
 | 
 | ||||||
| void main() { | void main() { | ||||||
|  | @ -21,15 +21,15 @@ | ||||||
|  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. |  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/src/Client.dart'; | import 'package:famedlysdk/src/client.dart'; | ||||||
| import 'package:famedlysdk/src/Event.dart'; | import 'package:famedlysdk/src/event.dart'; | ||||||
| import 'package:famedlysdk/src/Room.dart'; | import 'package:famedlysdk/src/room.dart'; | ||||||
| import 'package:famedlysdk/src/Timeline.dart'; | import 'package:famedlysdk/src/timeline.dart'; | ||||||
| import 'package:famedlysdk/src/User.dart'; | import 'package:famedlysdk/src/user.dart'; | ||||||
| import 'package:famedlysdk/src/utils/MatrixFile.dart'; | import 'package:famedlysdk/src/utils/matrix_file.dart'; | ||||||
| import 'package:test/test.dart'; | import 'package:test/test.dart'; | ||||||
| 
 | 
 | ||||||
| import 'FakeMatrixApi.dart'; | import 'fake_matrix_api.dart'; | ||||||
| 
 | 
 | ||||||
| void main() { | void main() { | ||||||
|   Client matrix; |   Client matrix; | ||||||
|  | @ -23,7 +23,7 @@ | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/famedlysdk.dart'; | import 'package:famedlysdk/famedlysdk.dart'; | ||||||
| import 'package:test/test.dart'; | import 'package:test/test.dart'; | ||||||
| import 'package:famedlysdk/src/utils/StatesMap.dart'; | import 'package:famedlysdk/src/utils/states_map.dart'; | ||||||
| 
 | 
 | ||||||
| void main() { | void main() { | ||||||
|   /// All Tests related to the ChatTime |   /// All Tests related to the ChatTime | ||||||
|  | @ -21,13 +21,13 @@ | ||||||
|  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. |  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/src/RoomAccountData.dart'; | import 'package:famedlysdk/src/room_account_data.dart'; | ||||||
| import 'package:test/test.dart'; | import 'package:test/test.dart'; | ||||||
| import 'package:famedlysdk/src/Client.dart'; | import 'package:famedlysdk/src/client.dart'; | ||||||
| import 'package:famedlysdk/src/Room.dart'; | import 'package:famedlysdk/src/room.dart'; | ||||||
| import 'package:famedlysdk/src/Timeline.dart'; | import 'package:famedlysdk/src/timeline.dart'; | ||||||
| import 'package:famedlysdk/src/sync/EventUpdate.dart'; | import 'package:famedlysdk/src/sync/event_update.dart'; | ||||||
| import 'FakeMatrixApi.dart'; | import 'fake_matrix_api.dart'; | ||||||
| 
 | 
 | ||||||
| void main() { | void main() { | ||||||
|   /// All Tests related to the MxContent |   /// All Tests related to the MxContent | ||||||
|  | @ -21,8 +21,8 @@ | ||||||
|  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. |  * along with famedlysdk.  If not, see <http://www.gnu.org/licenses/>. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| import 'package:famedlysdk/src/Event.dart'; | import 'package:famedlysdk/src/event.dart'; | ||||||
| import 'package:famedlysdk/src/User.dart'; | import 'package:famedlysdk/src/user.dart'; | ||||||
| import 'package:test/test.dart'; | import 'package:test/test.dart'; | ||||||
| 
 | 
 | ||||||
| void main() { | void main() { | ||||||
		Loading…
	
		Reference in New Issue