Skip to content

Commit

Permalink
Remove password
Browse files Browse the repository at this point in the history
  • Loading branch information
chege4179 committed Sep 22, 2024
1 parent 799b45b commit 67990d5
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 42 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")

implementation("com.jakewharton.timber:timber:5.0.1")
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.13")
// debugImplementation("com.squareup.leakcanary:leakcanary-android:2.13")

implementation ("com.airbnb.android:lottie-compose:6.3.0")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "0f7ac3e7a64cca8217499c7bc54968e7",
"identityHash": "4708ea216b6d29847b0133dbc574f806",
"entities": [
{
"tableName": "draftPost",
Expand Down Expand Up @@ -180,7 +180,7 @@
},
{
"tableName": "followers",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` TEXT NOT NULL, `email` TEXT NOT NULL, `fullName` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `password` TEXT NOT NULL, `username` TEXT NOT NULL, `createdAt` TEXT NOT NULL, `updatedAt` TEXT NOT NULL, `_count` TEXT NOT NULL, PRIMARY KEY(`userId`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` TEXT NOT NULL, `email` TEXT NOT NULL, `fullName` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `username` TEXT NOT NULL, `createdAt` TEXT NOT NULL, `updatedAt` TEXT NOT NULL, `_count` TEXT NOT NULL, PRIMARY KEY(`userId`))",
"fields": [
{
"fieldPath": "userId",
Expand All @@ -206,12 +206,6 @@
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "password",
"columnName": "password",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "username",
"columnName": "username",
Expand Down Expand Up @@ -280,7 +274,7 @@
},
{
"tableName": "followings",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` TEXT NOT NULL, `email` TEXT NOT NULL, `fullName` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `password` TEXT NOT NULL, `username` TEXT NOT NULL, `createdAt` TEXT NOT NULL, `updatedAt` TEXT NOT NULL, `_count` TEXT NOT NULL, PRIMARY KEY(`userId`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` TEXT NOT NULL, `email` TEXT NOT NULL, `fullName` TEXT NOT NULL, `imageUrl` TEXT NOT NULL, `username` TEXT NOT NULL, `createdAt` TEXT NOT NULL, `updatedAt` TEXT NOT NULL, `_count` TEXT NOT NULL, PRIMARY KEY(`userId`))",
"fields": [
{
"fieldPath": "userId",
Expand All @@ -306,12 +300,6 @@
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "password",
"columnName": "password",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "username",
"columnName": "username",
Expand Down Expand Up @@ -350,7 +338,7 @@
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '0f7ac3e7a64cca8217499c7bc54968e7')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '4708ea216b6d29847b0133dbc574f806')"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ data class FollowerUser(
val email: String,
val fullName: String,
val imageUrl: String,
val password: String,
val username: String,
val createdAt:String,
val updatedAt:String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ data class PostAuthor(
val userId: String,
val email: String,
val username: String,
val password: String,
val fullName: String,
val imageUrl: String,
val createdAt: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ data class User(
val email: String,
val fullName: String,
val imageUrl: String,
val password: String,
val username: String,
val createdAt:String,
val updatedAt:String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ object UserInfoSerializer : Serializer<User?> {
userId = "",
fullName = "",
email = "",
password = "",
username = "",
imageUrl = "",
deviceTokens = emptyList(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ val dummyNotifications = (1..20).map {
imageUrl = "https://ui-avatars.com/api/?background=719974&color=fff&name=Peter+Chege&bold=true&fontsize=0.6",
createdAt = "2023-12-02T18:55:36.935Z",
updatedAt = "2023-12-02T18:55:36.935Z",
password = "2023-12-02T18:55:36.935Z",

),
notificationReceiver = PostAuthor(
userId = "1234567",
Expand All @@ -29,7 +29,6 @@ val dummyNotifications = (1..20).map {
imageUrl = "https://ui-avatars.com/api/?background=719974&color=fff&name=Peter+Chege&bold=true&fontsize=0.6",
createdAt = "2023-12-02T18:55:36.935Z",
updatedAt = "2023-12-02T18:55:36.935Z",
password = "2023-12-02T18:55:36.935Z",
),
notificationPostId = UUID.randomUUID().toString(),
notificationCommentId = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ val dummyPostList = listOf(
imageUrl = "https://ui-avatars.com/api/?background=719974&color=fff&name=Peter+Chege&bold=true&fontsize=0.6",
createdAt = "2023-12-02T18:55:36.935Z",
updatedAt = "2023-12-02T18:55:36.935Z",
password = "2023-12-02T18:55:36.935Z",
),
count = PostCount(likes = 5, comments = 2, views = 3),
isLiked = true
Expand All @@ -47,7 +46,6 @@ val dummyPostList = listOf(
imageUrl = "https://ui-avatars.com/api/?background=719974&color=fff&name=Peter+Chege&bold=true&fontsize=0.6",
createdAt = "2023-12-02T18:55:36.935Z",
updatedAt = "2023-12-02T18:55:36.935Z",
password = "2023-12-02T18:55:36.935Z",
),
count = PostCount(likes = 10, comments = 4, views = 2),
isSaved = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ data class FollowerUserEntity(
val email: String,
val fullName: String,
val imageUrl: String,
val password: String,
val username: String,
val createdAt:String,
val updatedAt:String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ data class FollowingUserEntity(
val email: String,
val fullName: String,
val imageUrl: String,
val password: String,
val username: String,
val createdAt:String,
val updatedAt:String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ fun FollowerUser.toUser(): User {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand All @@ -42,7 +41,6 @@ fun User.toFollower(): FollowerUser {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand All @@ -56,7 +54,6 @@ fun User.toFollowerEntity(): FollowerUserEntity {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand All @@ -70,7 +67,6 @@ fun FollowerUser.toFollowerEntity(): FollowerUserEntity {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand All @@ -83,7 +79,6 @@ fun FollowerUserEntity.toFollower(): FollowerUser {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand All @@ -97,7 +92,6 @@ fun FollowerUserEntity.toUser(): User {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ fun User.toFollowingEntity(): FollowingUserEntity {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand All @@ -40,7 +39,7 @@ fun FollowerUser.toFollowingEntity(): FollowingUserEntity {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,

username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand All @@ -53,7 +52,6 @@ fun FollowingUserEntity.toFollower(): FollowerUser {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand All @@ -67,7 +65,6 @@ fun FollowingUserEntity.toUser(): User {
email = email,
fullName = fullName,
imageUrl = imageUrl,
password = password,
username = username,
createdAt = createdAt,
updatedAt= updatedAt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ fun ArticleCardPreview() {
userId = "",
email = "",
username = "",
password = "",
createdAt = "",
updatedAt = "",
imageUrl = "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ fun NotificationCardPreview() {
userId = "",
email = "",
username = "",
password = "",
createdAt = "2023-12-02T18:55:36.935Z",
updatedAt = "2023-12-02T18:55:36.935Z",
imageUrl = "",
Expand All @@ -167,7 +166,6 @@ fun NotificationCardPreview() {
userId = "",
email = "",
username = "",
password = "",
createdAt = "2023-12-02T18:55:36.935Z",
updatedAt = "2023-12-02T18:55:36.935Z",
imageUrl = "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ fun ProfileScreenPreview1() {
imageUrl = "https://ui-avatars.com/api/?background=719974&color=fff&name=Peter+Chege&bold=true&fontsize=0.6",
createdAt = "2023-12-02T18:55:36.935Z",
updatedAt = "2023-12-02T18:55:36.935Z",
password = "2023-12-02T18:55:36.935Z",
count = UserCount(
followers = 10,
post = dummyPostList.size,
Expand Down Expand Up @@ -453,7 +452,6 @@ fun ProfileScreenPreview2() {
imageUrl = "https://ui-avatars.com/api/?background=719974&color=fff&name=Peter+Chege&bold=true&fontsize=0.6",
createdAt = "2023-12-02T18:55:36.935Z",
updatedAt = "2023-12-02T18:55:36.935Z",
password = "2023-12-02T18:55:36.935Z",
count = UserCount(
followers = 10,
post = dummyPostList.size,
Expand Down

0 comments on commit 67990d5

Please sign in to comment.