This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from mhacks/removelibs
Removed libs folder
- Loading branch information
Showing
279 changed files
with
6,392 additions
and
4,558 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.mhacks.app.data | ||
|
||
import android.net.wifi.WifiConfiguration | ||
|
||
object Constants { | ||
|
||
const val STAGING_URL = "https://staging.mhacks.org/v1/" | ||
|
@@ -8,4 +10,25 @@ object Constants { | |
|
||
const val INSTANT_APP_PATH = "/schedule" | ||
|
||
const val FIXED_START_DATE = "2018-05-01T00:00:00" // Using ISO Local Date and Time | ||
|
||
private const val WIFI_SSID = "MHacks11" | ||
|
||
private const val WIFI_PASSWORD = "anyonecancode" | ||
|
||
val WIFI_CONFIGUATION: WifiConfiguration | ||
get() { | ||
val wifiConfig = WifiConfiguration() | ||
|
||
wifiConfig.SSID = String.format("\"%s\"", WIFI_SSID); | ||
wifiConfig.preSharedKey = String.format("\"%s\"", WIFI_PASSWORD) | ||
|
||
return wifiConfig | ||
} | ||
|
||
const val GOOGLE_MAPS_URL = "http://maps.google.co.in/maps?q=" | ||
|
||
const val SLACK_INVITE_URL = "https://join.slack.com/t/mhacks11/shared_invite/enQtNDQzMDI0MDY3ODQ1LTM3YTIyMmJmNjU3NGM2NDk1MzQzZjZmMmY3ZDliZmZlNTRjOGNiMTc2OWRiZjIyODBiNzk2ZGQ4YjBmMjlkZjU" | ||
|
||
const val MHACKS_EMAIL = "[email protected]" | ||
} |
25 changes: 16 additions & 9 deletions
25
base/src/main/java/com/mhacks/app/data/SharedPreferencesManager.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
6 changes: 3 additions & 3 deletions
6
base/src/main/java/com/mhacks/app/data/models/AnnouncementResponse.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
6 changes: 3 additions & 3 deletions
6
.../app/data/models/ConfigurationResponse.kt → .../mhacks/app/data/models/ConfigResponse.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
14 changes: 14 additions & 0 deletions
14
base/src/main/java/com/mhacks/app/data/models/CreateAnnouncement.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,14 @@ | ||
package com.mhacks.app.data.models | ||
|
||
import com.squareup.moshi.Json | ||
|
||
/** | ||
* Model used for creating an announcement. | ||
*/ | ||
data class CreateAnnouncement( | ||
@Json(name="title") var title: String, | ||
@Json(name="body") var body: String, | ||
@Json(name="category") var category: String, | ||
@Json(name="isApproved") var isApproved: Boolean, | ||
@Json(name="isSent") var isSent: Boolean, | ||
@Json(name="push") var push: Boolean) |
Oops, something went wrong.