Skip to content

Commit 8cc0b27

Browse files
authored
Merge pull request #20 from zeoflow/env/updated-environment
Updated environment
2 parents ea707f3 + 8d1ff93 commit 8cc0b27

51 files changed

Lines changed: 243 additions & 730 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/codeStyles/Project.xml

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

.idea/codeStyles/codeStyleConfig.xml

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

app/build.gradle

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ plugins {
33
}
44

55
android {
6-
compileSdk 31
6+
namespace 'com.zeoflow.depot'
7+
compileSdk 32
78

89
defaultConfig {
910
applicationId "com.zeoflow.depot"
1011
minSdk 21
11-
targetSdk 31
12-
versionCode 3
13-
versionName "1.0.2"
12+
targetSdk 32
13+
versionCode 5
14+
versionName "1.0.5"
1415
}
1516

1617
buildTypes {
@@ -20,8 +21,8 @@ android {
2021
}
2122
}
2223
compileOptions {
23-
sourceCompatibility JavaVersion.VERSION_1_8
24-
targetCompatibility JavaVersion.VERSION_1_8
24+
sourceCompatibility JavaVersion.VERSION_11
25+
targetCompatibility JavaVersion.VERSION_11
2526
}
2627
}
2728

@@ -35,12 +36,9 @@ dependencies {
3536
implementation project(':dispatcher-runtime')
3637
annotationProcessor project(':dispatcher-compiler')
3738

38-
implementation("com.zeoflow:startup:1.0.0")
39-
implementation('com.zeoflow:flow-kit:1.6.2') {
40-
exclude group: 'com.zeoflow', module: 'material-elements'
41-
}
39+
implementation('com.zeoflow:startup:1.0.1')
4240

43-
implementation 'androidx.appcompat:appcompat:1.4.1'
44-
implementation 'com.google.android.material:material:1.5.0'
45-
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
41+
implementation 'androidx.appcompat:appcompat:1.4.2'
42+
implementation 'com.google.android.material:material:1.6.1'
43+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
4644
}

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.zeoflow.depot">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<application
65
android:allowBackup="true"

app/src/main/java/com/zeoflow/depot/MainActivity.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,23 @@
1818

1919
import android.os.Bundle;
2020

21+
import androidx.appcompat.app.AppCompatActivity;
2122
import androidx.recyclerview.widget.LinearLayoutManager;
2223
import androidx.recyclerview.widget.RecyclerView;
2324

2425
import com.google.android.material.floatingactionbutton.FloatingActionButton;
2526
import com.zeoflow.depot.adapter.WordListAdapter;
26-
import com.zeoflow.depot.db.WordDao_Model;
2727
import com.zeoflow.depot.db.Word;
28-
import com.zeoflow.app.Activity;
28+
import com.zeoflow.depot.db.WordDao_Model;
2929

3030
import java.util.Random;
3131

32-
public class MainActivity extends Activity
33-
{
32+
public class MainActivity extends AppCompatActivity {
3433

3534
private WordDao_Model mWordViewModel;
3635

3736
@Override
38-
protected void onCreate(Bundle savedInstanceState)
39-
{
37+
protected void onCreate(Bundle savedInstanceState) {
4038
super.onCreate(savedInstanceState);
4139
setContentView(R.layout.activity_main);
4240

app/src/main/java/com/zeoflow/depot/adapter/WordListAdapter.java

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
import android.util.Log;
2019
import android.view.ViewGroup;
2120

2221
import androidx.annotation.NonNull;
@@ -27,40 +26,33 @@
2726

2827
import org.jetbrains.annotations.NotNull;
2928

30-
public class WordListAdapter extends ListAdapter<Word, WordViewHolder>
31-
{
29+
public class WordListAdapter extends ListAdapter<Word, WordViewHolder> {
3230

33-
public WordListAdapter(@NonNull DiffUtil.ItemCallback<Word> diffCallback)
34-
{
31+
public WordListAdapter(@NonNull DiffUtil.ItemCallback<Word> diffCallback) {
3532
super(diffCallback);
3633
}
3734

3835
@NotNull
3936
@Override
40-
public WordViewHolder onCreateViewHolder(@NotNull ViewGroup parent, int viewType)
41-
{
37+
public WordViewHolder onCreateViewHolder(@NotNull ViewGroup parent, int viewType) {
4238
return WordViewHolder.create(parent);
4339
}
4440

4541
@Override
46-
public void onBindViewHolder(WordViewHolder holder, int position)
47-
{
42+
public void onBindViewHolder(WordViewHolder holder, int position) {
4843
Word current = getItem(position);
4944
holder.bind(current.getWord());
5045
}
5146

52-
public static class WordDiff extends DiffUtil.ItemCallback<Word>
53-
{
47+
public static class WordDiff extends DiffUtil.ItemCallback<Word> {
5448

5549
@Override
56-
public boolean areItemsTheSame(@NonNull Word oldItem, @NonNull Word newItem)
57-
{
50+
public boolean areItemsTheSame(@NonNull Word oldItem, @NonNull Word newItem) {
5851
return oldItem == newItem;
5952
}
6053

6154
@Override
62-
public boolean areContentsTheSame(@NonNull Word oldItem, @NonNull Word newItem)
63-
{
55+
public boolean areContentsTheSame(@NonNull Word oldItem, @NonNull Word newItem) {
6456
return oldItem.getWord().equals(newItem.getWord());
6557
}
6658

app/src/main/java/com/zeoflow/depot/adapter/WordViewHolder.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,22 @@
2525

2626
import com.zeoflow.depot.R;
2727

28-
class WordViewHolder extends RecyclerView.ViewHolder
29-
{
28+
class WordViewHolder extends RecyclerView.ViewHolder {
3029

3130
private final TextView wordItemView;
3231

33-
private WordViewHolder(View itemView)
34-
{
32+
private WordViewHolder(View itemView) {
3533
super(itemView);
3634
wordItemView = itemView.findViewById(R.id.textView);
3735
}
38-
static WordViewHolder create(ViewGroup parent)
39-
{
36+
37+
static WordViewHolder create(ViewGroup parent) {
4038
View view = LayoutInflater.from(parent.getContext())
4139
.inflate(R.layout.recyclerview_item, parent, false);
4240
return new WordViewHolder(view);
4341
}
44-
public void bind(String text)
45-
{
42+
43+
public void bind(String text) {
4644
wordItemView.setText(text);
4745
}
4846

app/src/main/java/com/zeoflow/depot/db/User.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import com.zeoflow.depot.Entity;
2323
import com.zeoflow.depot.PrimaryKey;
2424

25-
import org.junit.Ignore;
26-
2725
import java.util.Date;
2826

2927
/**
@@ -38,8 +36,7 @@
3836
*/
3937

4038
@Entity(tableName = "user_table")
41-
public class User
42-
{
39+
public class User {
4340

4441
@PrimaryKey
4542
@NonNull
@@ -54,15 +51,13 @@ public User(@NonNull String mWord, Date date) {
5451
}
5552

5653
@com.zeoflow.depot.Ignore
57-
public User(@NonNull String word)
58-
{
54+
public User(@NonNull String word) {
5955
this.mWord = word;
6056
this.date = new Date();
6157
}
6258

6359
@NonNull
64-
public String getWord()
65-
{
60+
public String getWord() {
6661
return this.mWord;
6762
}
6863

app/src/main/java/com/zeoflow/depot/db/UserDao.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
*/
3737

3838
@Dao
39-
public interface UserDao
40-
{
39+
public interface UserDao {
4140
// LiveData is a data holder class that can be observed within a given lifecycle.
4241
// Always holds/caches latest version of data. Notifies its active observers when the
4342
// data has changed. Since we are getting all the contents of the database,

app/src/main/java/com/zeoflow/depot/db/Word.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
*/
3737

3838
@Entity(tableName = "word_table")
39-
public class Word
40-
{
39+
public class Word {
4140

4241
@PrimaryKey
4342
@NonNull
@@ -52,15 +51,13 @@ public Word(@NonNull String mWord, Date date_s) {
5251
}
5352

5453
@com.zeoflow.depot.Ignore
55-
public Word(@NonNull String word)
56-
{
54+
public Word(@NonNull String word) {
5755
this.mWord = word;
5856
this.date_s = new Date();
5957
}
6058

6159
@NonNull
62-
public String getWord()
63-
{
60+
public String getWord() {
6461
return this.mWord;
6562
}
6663

0 commit comments

Comments
 (0)