Updated build

This commit is contained in:
Daniele Verducci (Slimpenguin)
2023-02-15 09:12:52 +01:00
parent 1ad6500882
commit 1647895a2a
7 changed files with 28 additions and 31 deletions

View File

@@ -3,14 +3,13 @@ plugins {
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
compileSdkVersion 33
defaultConfig {
applicationId "it.danieleverducci.ojo"
applicationId "it.danieleverducci.ojo.googleplay"
minSdkVersion 21
targetSdkVersion 30
versionCode 4
targetSdkVersion 33
versionCode 5
versionName "0.1.0"
vectorDrawables.useSupportLibrary = true
@@ -31,19 +30,19 @@ android {
buildFeatures {
viewBinding true
}
namespace 'it.danieleverducci.ojo'
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.navigation:navigation-fragment:2.3.5'
implementation 'androidx.navigation:navigation-ui:2.3.5'
//implementation 'org.videolan.android:libvlc-all:3.4.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.8.0'
implementation 'androidx.navigation:navigation-fragment:2.5.3'
implementation 'androidx.navigation:navigation-ui:2.5.3'
implementation 'de.mrmaffen:libvlc-android:2.1.12@aar'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

5
app/release/.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
*.json
*.aab
*.apk

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="it.danieleverducci.ojo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
@@ -14,6 +13,7 @@
<activity
android:name=".ui.MainActivity"
android:label="@string/app_name"
android:exported="true"
android:theme="@style/Theme.Ojo"
android:configChanges="orientation|screenSize">
<intent-filter>

View File

@@ -6,9 +6,7 @@ import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import androidx.fragment.app.Fragment;
import androidx.navigation.NavController;
import androidx.navigation.Navigation;
@@ -43,12 +41,7 @@ public class MainActivity extends AppCompatActivity {
binding.fab.hide();
});
binding.fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
navigateToFragment(R.id.action_homeToSettings);
}
});
binding.fab.setOnClickListener(view -> navigateToFragment(R.id.action_homeToSettings));
}
public void setOnBackButtonPressedListener(OnBackButtonPressedListener onBackButtonPressedListener) {