From 449e419dfbafeed9a446e36f8de1903981cd0b02 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Thu, 29 Apr 2021 02:25:01 +0530 Subject: Add initial implementation of mvi based on kotlin flow --- .../foundation/e/privacycentralapp/MainActivity.kt | 28 ---------------------- .../privacycentralapp/PrivacyCentralApplication.kt | 21 ++++++++++++++++ .../e/privacycentralapp/features/HomeFeature.kt | 4 ++++ .../e/privacycentralapp/features/HomeViewModel.kt | 4 ++++ .../e/privacycentralapp/features/MainActivity.kt | 28 ++++++++++++++++++++++ 5 files changed, 57 insertions(+), 28 deletions(-) delete mode 100644 app/src/main/java/foundation/e/privacycentralapp/MainActivity.kt create mode 100644 app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt create mode 100644 app/src/main/java/foundation/e/privacycentralapp/features/HomeFeature.kt create mode 100644 app/src/main/java/foundation/e/privacycentralapp/features/HomeViewModel.kt create mode 100644 app/src/main/java/foundation/e/privacycentralapp/features/MainActivity.kt (limited to 'app/src/main/java/foundation') diff --git a/app/src/main/java/foundation/e/privacycentralapp/MainActivity.kt b/app/src/main/java/foundation/e/privacycentralapp/MainActivity.kt deleted file mode 100644 index 3dd2145..0000000 --- a/app/src/main/java/foundation/e/privacycentralapp/MainActivity.kt +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2021 E FOUNDATION - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package foundation.e.privacycentralapp - -import android.os.Bundle -import androidx.appcompat.app.AppCompatActivity - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - } -} diff --git a/app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt b/app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt new file mode 100644 index 0000000..4f5039a --- /dev/null +++ b/app/src/main/java/foundation/e/privacycentralapp/PrivacyCentralApplication.kt @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2021 E FOUNDATION + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package foundation.e.privacycentralapp + +class PrivacyCentralApplication { +} \ No newline at end of file diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/HomeFeature.kt b/app/src/main/java/foundation/e/privacycentralapp/features/HomeFeature.kt new file mode 100644 index 0000000..43f29d2 --- /dev/null +++ b/app/src/main/java/foundation/e/privacycentralapp/features/HomeFeature.kt @@ -0,0 +1,4 @@ +package foundation.e.privacycentralapp.features + +class HomeFeature { +} \ No newline at end of file diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/HomeViewModel.kt b/app/src/main/java/foundation/e/privacycentralapp/features/HomeViewModel.kt new file mode 100644 index 0000000..6cb37c6 --- /dev/null +++ b/app/src/main/java/foundation/e/privacycentralapp/features/HomeViewModel.kt @@ -0,0 +1,4 @@ +package foundation.e.privacycentralapp.features + +class HomeViewModel { +} \ No newline at end of file diff --git a/app/src/main/java/foundation/e/privacycentralapp/features/MainActivity.kt b/app/src/main/java/foundation/e/privacycentralapp/features/MainActivity.kt new file mode 100644 index 0000000..3dd2145 --- /dev/null +++ b/app/src/main/java/foundation/e/privacycentralapp/features/MainActivity.kt @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2021 E FOUNDATION + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package foundation.e.privacycentralapp + +import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + } +} -- cgit v1.2.1