Ci integration upgrade (#14)

- Circleci setup
 - gradle version updated
 - snapshots added
 - separated test files by flavour
This commit is contained in:
2023-07-26 22:54:08 +01:00
committed by GitHub
parent 3d5cb4e9fe
commit 4a37b724a6
28 changed files with 920 additions and 158 deletions

View File

@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
xmlns:tools="http://schemas.android.com/tools"
package="com.appttude.h_mal.atlas_weather"
tools:node="merge">
<application
android:name="com.appttude.h_mal.atlas_weather.application.AppClass"
@@ -12,10 +14,11 @@
android:theme="@style/AppTheme"
tools:node="merge">
<activity android:name=".ui.MainActivity"
<activity android:name=".atlasWeather.ui.MainActivity"
android:label="@string/app_name"
android:launchMode="singleTop"
android:theme="@style/AppTheme.NoActionBar">
android:theme="@style/AppTheme.NoActionBar"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
@@ -25,14 +28,17 @@
</activity>
<activity
android:name=".ui.settings.UnitSettingsActivity"
android:label="Settings" />
android:name=".atlasWeather.ui.settings.UnitSettingsActivity"
android:label="Settings"
android:exported="true"/>
<receiver
android:name=".notification.NotificationReceiver"
android:parentActivityName=".MainActivity" />
android:name=".atlasWeather.notification.NotificationReceiver"
android:parentActivityName=".MainActivity"
android:exported="true"/>
<receiver android:name=".widget.NewAppWidget">
<receiver android:name=".atlasWeather.widget.NewAppWidget"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.appwidget.action.APPWIDGET_ENABLED" />
@@ -46,7 +52,7 @@
<service
android:name=".widget.WidgetRemoteViewsService"
android:name=".atlasWeather.widget.WidgetRemoteViewsService"
android:permission="android.permission.BIND_REMOTEVIEWS" />
</application>

View File

@@ -17,6 +17,8 @@ import kotlinx.android.synthetic.atlasWeather.activity_main.*
class MainActivity : BaseActivity(){
lateinit var navHost: NavHostFragment
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
@@ -24,7 +26,7 @@ class MainActivity : BaseActivity(){
val navView: BottomNavigationView = findViewById(R.id.nav_view)
setSupportActionBar(toolbar)
val navHost = supportFragmentManager
navHost = supportFragmentManager
.findFragmentById(R.id.container) as NavHostFragment
val navController = navHost.navController
navController.setGraph(R.navigation.main_navigation)

View File

@@ -1,5 +1,6 @@
package com.appttude.h_mal.atlas_weather.atlasWeather.ui.home.adapter
import android.annotation.SuppressLint
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
@@ -13,6 +14,7 @@ class WeatherRecyclerAdapter(
) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
var weather: WeatherDisplay? = null
@SuppressLint("NotifyDataSetChanged")
fun addCurrent(current: WeatherDisplay){
weather = current
notifyDataSetChanged()
@@ -71,7 +73,6 @@ class WeatherRecyclerAdapter(
when (getDataType(getItemViewType(position))){
is ViewType.Empty -> {
holder as EmptyViewHolder
}
is ViewType.Current -> {
val viewHolderCurrent = holder as ViewHolderCurrent