-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 로그인, 회원가입, 스플래시 디자인 변경 2. 앱 아이콘 이미지 변경 3. 그래들에서 충돌하는거 삭제
- Loading branch information
1 parent
3e1a520
commit bca86f1
Showing
81 changed files
with
547 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
...debug/res/mipmap-anydpi-v26/ic_kazait.xml → ...debug/res/mipmap-anydpi-v26/ic_cazait.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_cazait_background"/> | ||
<foreground android:drawable="@mipmap/ic_kazait_foreground"/> | ||
<foreground android:drawable="@mipmap/ic_cazait_foreground"/> | ||
</adaptive-icon> |
2 changes: 1 addition & 1 deletion
2
...res/mipmap-anydpi-v26/ic_kazait_round.xml → ...res/mipmap-anydpi-v26/ic_cazait_round.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_cazait_background"/> | ||
<foreground android:drawable="@mipmap/ic_kazait_foreground"/> | ||
<foreground android:drawable="@mipmap/ic_cazait_foreground"/> | ||
</adaptive-icon> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_cazait_background">#FAF0DD</color> | ||
<color name="ic_cazait_background">#F5F5F5</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
app/src/main/java/org/cazait/cazait_android/SignUpDBHelper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.cazait.cazait_android | ||
|
||
import android.content.ContentValues | ||
import android.content.Context | ||
import android.database.sqlite.SQLiteDatabase | ||
import android.database.sqlite.SQLiteOpenHelper | ||
|
||
class SignUpDBHelper(context: Context?) : | ||
SQLiteOpenHelper(context, "Login.db", null, 1) { | ||
override fun onCreate(MyDB: SQLiteDatabase) { | ||
MyDB.execSQL("create Table users(username TEXT primary key, password TEXT)") | ||
} | ||
|
||
override fun onUpgrade(MyDB: SQLiteDatabase, i: Int, i1: Int) { | ||
MyDB.execSQL("drop Table if exists users") | ||
} | ||
|
||
fun insertData(username: String?, password: String?): Boolean { | ||
val MyDB = this.writableDatabase | ||
val contentValues = ContentValues() | ||
contentValues.put("username", username) | ||
contentValues.put("password", password) | ||
val result = MyDB.insert("users", null, contentValues) | ||
return if (result == -1L) false else true | ||
} | ||
|
||
fun checkUsername(username: String): Boolean { | ||
val MyDB = this.writableDatabase | ||
var res = true | ||
val cursor = MyDB.rawQuery("Select * from users where username = ?", arrayOf(username)) | ||
if (cursor.count <= 0) res = false | ||
return res | ||
} | ||
|
||
fun checkUserpass(username: String, password: String): Boolean { | ||
val MyDB = this.writableDatabase | ||
var res = true | ||
val cursor = MyDB.rawQuery( | ||
"Select * from users where username = ? and password = ?", | ||
arrayOf(username, password) | ||
) | ||
if (cursor.count <= 0) res = false | ||
return res | ||
} | ||
|
||
companion object { | ||
const val DBNAME = "Login.db" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.