Skip to content

Commit ac9dc4d

Browse files
committed
Created the first release and fixed minor bugs
1 parent 5d04368 commit ac9dc4d

File tree

8 files changed

+36
-15
lines changed

8 files changed

+36
-15
lines changed

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@ android {
3737
dependencies {
3838

3939
implementation 'androidx.appcompat:appcompat:1.2.0'
40-
implementation 'com.google.android.material:material:1.2.1'
40+
implementation 'com.google.android.material:material:1.3.0'
4141
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
42-
implementation 'androidx.navigation:navigation-fragment:2.3.2'
43-
implementation 'androidx.navigation:navigation-ui:2.3.2'
42+
implementation 'androidx.navigation:navigation-fragment:2.3.3'
43+
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.3'
44+
implementation 'androidx.navigation:navigation-ui:2.3.3'
45+
implementation 'androidx.navigation:navigation-ui-ktx:2.3.3'
4446
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
4547
implementation 'androidx.preference:preference:1.1.1'
46-
implementation 'androidx.work:work-runtime:2.4.0'
48+
implementation 'androidx.preference:preference-ktx:1.1.1'
49+
implementation 'androidx.work:work-runtime:2.5.0'
4750
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
4851
// implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
4952

@@ -84,8 +87,8 @@ dependencies {
8487
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
8588

8689
implementation "androidx.core:core-ktx:1.3.2"
87-
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
88-
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.3.72"
90+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0"
91+
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.4.21"
8992
}
9093
repositories {
9194
mavenCentral()

app/release/app-release.apk

474 KB
Binary file not shown.

app/release/output-metadata.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
2-
"version": 1,
2+
"version": 2,
33
"artifactType": {
44
"type": "APK",
55
"kind": "Directory"
66
},
77
"applicationId": "com.certified.notes",
8-
"variantName": "release",
8+
"variantName": "processReleaseResources",
99
"elements": [
1010
{
1111
"type": "SINGLE",
1212
"filters": [],
13-
"properties": [],
1413
"versionCode": 1,
1514
"versionName": "beta-release-1.0",
16-
"enabled": true,
1715
"outputFile": "app-release.apk"
1816
}
1917
]

app/src/main/java/com/certified/notes/ui/ProfileFragment.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import com.google.android.material.switchmaterial.SwitchMaterial;
4040
import com.google.android.material.textfield.TextInputEditText;
4141
import com.google.android.material.textfield.TextInputLayout;
42+
import com.google.android.material.textview.MaterialTextView;
4243

4344
import java.io.FileNotFoundException;
4445
import java.io.InputStream;
@@ -270,11 +271,13 @@ private void launchNameDialog() {
270271
View view = inflater.inflate(R.layout.dialog_edit_profile, null);
271272
BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(requireContext(), R.style.BottomSheetDialogTheme);
272273

274+
MaterialTextView tvEditProfileDialogTitle = view.findViewById(R.id.tv_edit_profile_dialog_title);
273275
TextInputLayout inputLayout = view.findViewById(R.id.et_edit_profile_layout);
274276
TextInputEditText inputEditText = view.findViewById(R.id.et_edit_profile);
275277
MaterialButton btnCancel = view.findViewById(R.id.btn_cancel);
276278
MaterialButton btnSave = view.findViewById(R.id.btn_save);
277279

280+
tvEditProfileDialogTitle.setText(R.string.edit_name);
278281
inputLayout.setHint(getString(R.string.name));
279282
inputEditText.setText(userName);
280283

@@ -308,11 +311,13 @@ private void launchSchoolDialog() {
308311
View view = inflater.inflate(R.layout.dialog_edit_profile, null);
309312
BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(requireContext(), R.style.BottomSheetDialogTheme);
310313

314+
MaterialTextView tvEditProfileDialogTitle = view.findViewById(R.id.tv_edit_profile_dialog_title);
311315
TextInputLayout inputLayout = view.findViewById(R.id.et_edit_profile_layout);
312316
TextInputEditText inputEditText = view.findViewById(R.id.et_edit_profile);
313317
MaterialButton btnCancel = view.findViewById(R.id.btn_cancel);
314318
MaterialButton btnSave = view.findViewById(R.id.btn_save);
315319

320+
tvEditProfileDialogTitle.setText(R.string.edit_school);
316321
inputLayout.setHint(getString(R.string.school));
317322
inputEditText.setText(userSchool);
318323

@@ -346,11 +351,13 @@ private void launchDepartmentDialog() {
346351
View view = inflater.inflate(R.layout.dialog_edit_profile, null);
347352
BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(requireContext(), R.style.BottomSheetDialogTheme);
348353

354+
MaterialTextView tvEditProfileDialogTitle = view.findViewById(R.id.tv_edit_profile_dialog_title);
349355
TextInputLayout inputLayout = view.findViewById(R.id.et_edit_profile_layout);
350356
TextInputEditText inputEditText = view.findViewById(R.id.et_edit_profile);
351357
MaterialButton btnCancel = view.findViewById(R.id.btn_cancel);
352358
MaterialButton btnSave = view.findViewById(R.id.btn_save);
353359

360+
tvEditProfileDialogTitle.setText(R.string.edit_department);
354361
inputLayout.setHint(getString(R.string.department));
355362
inputEditText.setText(userDepartment);
356363

app/src/main/res/layout/dialog_edit_profile.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,28 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="wrap_content"
6+
xmlns:tools="http://schemas.android.com/tools"
67
android:background="@drawable/bottom_sheet_bg"
78
android:elevation="8dp"
89
android:id="@+id/constraint_layout">
910

11+
<com.google.android.material.textview.MaterialTextView
12+
android:id="@+id/tv_edit_profile_dialog_title"
13+
android:layout_width="wrap_content"
14+
android:layout_marginTop="16dp"
15+
android:layout_height="wrap_content"
16+
app:layout_constraintTop_toTopOf="parent"
17+
app:layout_constraintStart_toStartOf="@+id/et_edit_profile_layout"
18+
style="@style/TextAppearance.Notes.TitleText2"
19+
tools:text="Edit Profile"/>
20+
1021
<com.google.android.material.textfield.TextInputLayout
1122
android:id="@+id/et_edit_profile_layout"
1223
style="@style/Widgets.Notes.TextInputLayout"
1324
android:layout_width="0dp"
1425
android:layout_height="wrap_content"
1526
android:layout_marginStart="16dp"
16-
android:layout_marginTop="16dp"
27+
android:layout_marginTop="8dp"
1728
android:layout_marginEnd="16dp"
1829
android:layout_marginBottom="8dp"
1930
android:hint="@string/name"
@@ -25,7 +36,7 @@
2536
app:layout_constraintBottom_toTopOf="@+id/btn_save"
2637
app:layout_constraintEnd_toEndOf="parent"
2738
app:layout_constraintStart_toStartOf="parent"
28-
app:layout_constraintTop_toTopOf="parent">
39+
app:layout_constraintTop_toBottomOf="@+id/tv_edit_profile_dialog_title">
2940

3041
<com.google.android.material.textfield.TextInputEditText
3142
android:id="@+id/et_edit_profile"

app/src/main/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,7 @@
119119
<string name="notes_notification">Notes Notification</string>
120120
<string name="ok">OK</string>
121121
<string name="notes_reminder">Notes reminder</string>
122+
<string name="edit_name">Edit name</string>
123+
<string name="edit_department">Edit Department</string>
124+
<string name="edit_school">Edit School</string>
122125
</resources>

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ buildscript {
66
jcenter()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.0.2'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72"
9+
classpath 'com.android.tools.build:gradle:4.1.2'
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21"
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files

0 commit comments

Comments
 (0)