-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize database optimize student card rotation add firebase analyitcs, crashlytics and performance metrics a bit of changes in the launcher icons an about screen with a few thanks aboutlibraries privacy policy update
- Loading branch information
1 parent
414c288
commit cee9854
Showing
66 changed files
with
939 additions
and
479 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Progres | ||
|
||
A remake of the DRDN's Progres WebEtu app, by students for students. | ||
|
||
## Some Screenshots | ||
|
||
![App Screenshot](https://via.placeholder.com/468x300?text=App+Screenshot+Here) | ||
|
||
## Additional Features | ||
|
||
- Access your previous years' data | ||
- Material you with dark and light themes | ||
- A more stable experience | ||
- And more coming soon... | ||
|
||
## Installation | ||
|
||
The app is available on the platforms listed below: | ||
|
||
## License | ||
|
||
[MIT](https://choosealicense.com/licenses/mit/) |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "850037090509", | ||
"project_id": "progres-webetu", | ||
"storage_bucket": "progres-webetu.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:850037090509:android:7b74b6a05207dd11b6e184", | ||
"android_client_info": { | ||
"package_name": "mehiz.abdallah.progres" | ||
} | ||
}, | ||
"oauth_client": [], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyAiMqUaf__Rqy-IXVjUZM-1r5-BIUcZxyU" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
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,56 +1,69 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<uses-feature android:name="android.hardware.camera"/> | ||
<uses-feature android:name="android.hardware.camera.autofocus"/> | ||
<uses-permission android:name="android.permission.CAMERA"/> | ||
|
||
<application | ||
android:name=".App" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:localeConfig="@xml/locales_config" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@android:style/Theme.Material.Light.NoActionBar"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode" | ||
android:exported="true" | ||
android:screenOrientation="portrait"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".CrashActivity" | ||
android:exported="false" | ||
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode" /> | ||
<provider | ||
android:name="androidx.core.content.FileProvider" | ||
android:authorities="${applicationId}.provider" | ||
android:exported="false" | ||
android:grantUriPermissions="true"> | ||
<meta-data | ||
android:name="android.support.FILE_PROVIDER_PATHS" | ||
android:resource="@xml/provider_paths" /> | ||
</provider> | ||
<provider | ||
android:name="androidx.startup.InitializationProvider" | ||
android:authorities="${applicationId}.androidx-startup" | ||
android:exported="false" | ||
tools:node="merge"> | ||
<meta-data | ||
android:name="androidx.work.WorkManagerInitializer" | ||
android:value="androidx.startup" | ||
tools:node="remove" /> | ||
</provider> | ||
</application> | ||
|
||
</manifest> | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<uses-feature android:name="android.hardware.camera" /> | ||
<uses-feature android:name="android.hardware.camera.autofocus" android:required="true" /> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
|
||
<!-- Remove unnecessary permissions from Firebase dependency --> | ||
<uses-permission android:name="android.permission.ACCESS_ADSERVICES_AD_ID" tools:node="remove" /> | ||
<uses-permission android:name="android.permission.ACCESS_ADSERVICES_ATTRIBUTION" tools:node="remove" /> | ||
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" tools:node="remove" /> | ||
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove" /> | ||
|
||
<application | ||
android:name=".App" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:localeConfig="@xml/locales_config" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@android:style/Theme.Material.Light.NoActionBar"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode" | ||
android:exported="true" | ||
android:screenOrientation="portrait"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".CrashActivity" | ||
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode" | ||
android:exported="false" /> | ||
|
||
<provider | ||
android:name="androidx.core.content.FileProvider" | ||
android:authorities="${applicationId}.provider" | ||
android:exported="false" | ||
android:grantUriPermissions="true"> | ||
<meta-data | ||
android:name="android.support.FILE_PROVIDER_PATHS" | ||
android:resource="@xml/provider_paths" /> | ||
</provider> | ||
<provider | ||
android:name="androidx.startup.InitializationProvider" | ||
android:authorities="${applicationId}.androidx-startup" | ||
android:exported="false" | ||
tools:node="merge"> | ||
<meta-data | ||
android:name="androidx.work.WorkManagerInitializer" | ||
android:value="androidx.startup" | ||
tools:node="remove" /> | ||
</provider> | ||
|
||
<!-- Disable unnecessary stuff from Firebase --> | ||
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" /> | ||
<meta-data android:name="google_analytics_automatic_screen_reporting_enabled" android:value="false" /> | ||
<meta-data android:name="google_analytics_default_allow_ad_personalization_signals" android:value="false" /> | ||
|
||
</application> | ||
|
||
</manifest> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
26 changes: 0 additions & 26 deletions
26
composeApp/src/androidMain/kotlin/presentation/OpenURIIcon.android.kt
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
composeApp/src/androidMain/kotlin/utils/FirebaseUtils.android.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,11 @@ | ||
package utils | ||
|
||
import com.google.firebase.crashlytics.ktx.crashlytics | ||
import com.google.firebase.ktx.Firebase | ||
|
||
actual object FirebaseUtils { | ||
actual fun reportException(throwable: Throwable) { | ||
Firebase.crashlytics.recordException(throwable) | ||
Firebase.crashlytics.sendUnsentReports() | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
composeApp/src/androidMain/kotlin/utils/IsNetworkException.android.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,9 @@ | ||
package utils | ||
|
||
import io.ktor.client.network.sockets.SocketTimeoutException | ||
import java.net.SocketException | ||
import java.net.UnknownHostException | ||
|
||
// timeouts, can't reach and connection resets | ||
actual val Throwable.isNetworkError: Boolean | ||
get() = this is UnknownHostException || this is SocketTimeoutException || this is SocketException |
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
composeApp/src/androidMain/kotlin/utils/PlatformUtils.android.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,38 @@ | ||
package utils | ||
|
||
import android.content.ClipData | ||
import android.content.ClipboardManager | ||
import android.content.Context | ||
import android.content.Intent | ||
import android.net.Uri | ||
import dev.icerock.moko.resources.PluralsResource | ||
import dev.icerock.moko.resources.StringResource | ||
|
||
actual class PlatformUtils(context: Context) { | ||
|
||
private val context = context | ||
actual val platform: Platform = Platform.Android | ||
|
||
actual fun openURI(uri: String) { | ||
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(uri)) | ||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) | ||
context.startActivity(intent) | ||
} | ||
|
||
actual fun getString(res: StringResource, vararg args: Any): String { | ||
return context.getString(res.resourceId, *args) | ||
} | ||
|
||
actual fun getPlural( | ||
res: PluralsResource, | ||
amount: Int, | ||
vararg args: Any, | ||
): String { | ||
return context.resources.getQuantityString(res.resourceId, amount, args) | ||
} | ||
|
||
actual fun copyTextToClipboard(text: String) { | ||
val clipboardManager = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager | ||
clipboardManager.setPrimaryClip(ClipData.newPlainText(null, text)) | ||
} | ||
} |
Oops, something went wrong.