Changed icon, added some OAuth preparation.
1
.idea/misc.xml
generated
|
@ -1,4 +1,3 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="jbr-21" project-jdk-type="JavaSDK">
|
||||
|
|
|
@ -58,4 +58,10 @@ dependencies {
|
|||
debugImplementation(libs.androidx.ui.test.manifest)
|
||||
|
||||
implementation(libs.androidx.navigation.compose)
|
||||
|
||||
// implementation(libs.google.api.client.android)
|
||||
// implementation(libs.google.api.services.drive)
|
||||
// implementation(libs.google.oauth.client.jetty)
|
||||
|
||||
|
||||
}
|
|
@ -2,6 +2,8 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
|
|
|
@ -7,7 +7,6 @@ import androidx.navigation.compose.composable
|
|||
import com.bbc.denadrive.home.DetailsScreen
|
||||
import com.bbc.denadrive.home.HomeScreen
|
||||
import com.bbc.denadrive.home.ScaffoldWithSidebar
|
||||
import androidx.compose.material3.Text
|
||||
import com.bbc.denadrive.home.MyListVisualizer
|
||||
|
||||
@Composable
|
||||
|
|
|
@ -17,7 +17,7 @@ import androidx.navigation.NavHostController
|
|||
//import androidx.compose.ui.unit.dp
|
||||
//import androidx.compose.ui.unit.sp
|
||||
|
||||
import androidx.compose.foundation.clickable
|
||||
//import androidx.compose.foundation.clickable
|
||||
import androidx.compose.foundation.gestures.detectTapGestures
|
||||
import androidx.compose.foundation.layout.*
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
package com.bbc.denadrive.oauth
|
||||
|
||||
data class OAuthConfiguration(
|
||||
val clientId: String,
|
||||
val scopes: List<String>,
|
||||
val authorizationEndpoint: String,
|
||||
val tokenEndpoint: String,
|
||||
val redirectUri: String,
|
||||
)
|
||||
|
||||
//private fun createOAuthConfiguration(): OAuthConfiguration {
|
||||
// return OAuthConfiguration(
|
||||
// clientId = "722393551256-0v563ati4pc9rjc9p948sg418trqq998.apps.googleusercontent.com",
|
||||
// scopes = listOf("https://mail.google.com/"),
|
||||
// authorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth",
|
||||
// tokenEndpoint = "https://oauth2.googleapis.com/token",
|
||||
// redirectUri = "${BuildConfig.APPLICATION_ID}:/oauth2redirect",
|
||||
// )
|
||||
//}
|
10
app/src/main/res/drawable/nuovosfondo.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="85.381"
|
||||
android:viewportHeight="85.381">
|
||||
<path
|
||||
android:pathData="M6.414,0L78.967,0A6.414,6.414 0,0 1,85.381 6.414L85.381,78.967A6.414,6.414 0,0 1,78.967 85.381L6.414,85.381A6.414,6.414 0,0 1,0 78.967L0,6.414A6.414,6.414 0,0 1,6.414 0z"
|
||||
android:strokeWidth=".036878"
|
||||
android:fillColor="#e6e6e6"/>
|
||||
</vector>
|
30
app/src/main/res/drawable/vecchiaicona_.xml
Normal file
|
@ -0,0 +1,30 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="85.381"
|
||||
android:viewportHeight="85.381">
|
||||
<path
|
||||
android:pathData="m60.69,33 l-9.703,5.591c0.217,1.117 0.334,2.405 0.334,3.89 0,1.471 -0.118,2.76 -0.341,3.893l9.693,5.596c1.081,-2.849 1.607,-6.098 1.607,-9.648 0,-3.439 -0.504,-6.568 -1.591,-9.322z"
|
||||
android:strokeWidth="0.131"
|
||||
android:fillColor="#ea4235"/>
|
||||
<path
|
||||
android:pathData="m36.955,54.418l-10.695,0l0,9.971l10.695,0.033z"
|
||||
android:strokeWidth="0.131"
|
||||
android:fillColor="#0166da"/>
|
||||
<path
|
||||
android:pathData="m36.955,54.418l0,10.004l2.744,0.008c6.679,0 12.34,-1.786 16.426,-5.579l0.001,0c2.026,-1.883 3.532,-4.206 4.547,-6.882l-9.693,-5.596c-0.454,2.308 -1.345,3.965 -2.572,5.167 -1.829,1.791 -4.748,2.878 -9.34,2.878z"
|
||||
android:strokeWidth="0.131"
|
||||
android:fillColor="#2685fd"/>
|
||||
<path
|
||||
android:pathData="m26.261,30.962l0,23.456l10.695,0l0,-23.456z"
|
||||
android:strokeWidth="0.131"
|
||||
android:fillColor="#00ac48"/>
|
||||
<path
|
||||
android:pathData="m36.955,20.95l-10.695,0l0,10.012l10.695,0z"
|
||||
android:strokeWidth="0.131"
|
||||
android:fillColor="#00832d"/>
|
||||
<path
|
||||
android:pathData="m36.955,20.95l0,10.012l3.164,0c4.002,0 6.602,0.979 8.393,2.693 0.01,0.01 0.021,0.019 0.031,0.029 1.141,1.061 2.001,2.627 2.444,4.907l9.703,-5.591c-0.302,-0.766 -0.65,-1.504 -1.044,-2.211 -1.775,-3.217 -4.403,-5.761 -7.671,-7.415 -3.255,-1.648 -7.132,-2.424 -11.284,-2.424z"
|
||||
android:strokeWidth="0.131"
|
||||
android:fillColor="#ffb901"/>
|
||||
</vector>
|
10
app/src/main/res/drawable/vecchiosfondo_.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="85.381"
|
||||
android:viewportHeight="85.381">
|
||||
<path
|
||||
android:pathData="M6.414,0L78.967,0A6.414,6.414 0,0 1,85.381 6.414L85.381,78.967A6.414,6.414 0,0 1,78.967 85.381L6.414,85.381A6.414,6.414 0,0 1,0 78.967L0,6.414A6.414,6.414 0,0 1,6.414 0z"
|
||||
android:strokeWidth=".036878"
|
||||
android:fillColor="#fff"/>
|
||||
</vector>
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<background android:drawable="@drawable/vecchiosfondo_" />
|
||||
<foreground android:drawable="@drawable/vecchiaicona_" />
|
||||
<monochrome android:drawable="@drawable/vecchiaicona_" />
|
||||
</adaptive-icon>
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<background android:drawable="@drawable/vecchiosfondo_" />
|
||||
<foreground android:drawable="@drawable/vecchiaicona_" />
|
||||
<monochrome android:drawable="@drawable/vecchiaicona_" />
|
||||
</adaptive-icon>
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 982 B |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 7.6 KiB |
|
@ -1,5 +1,8 @@
|
|||
[versions]
|
||||
agp = "8.9.0"
|
||||
googleApiClientAndroid = "1.32.1"
|
||||
googleApiServicesDrive = "v3-rev20210830-1.32.1"
|
||||
googleOauthClientJetty = "1.32.1"
|
||||
kotlin = "2.0.21"
|
||||
coreKtx = "1.15.0"
|
||||
junit = "4.13.2"
|
||||
|
@ -9,10 +12,14 @@ lifecycleRuntimeKtx = "2.8.7"
|
|||
activityCompose = "1.10.1"
|
||||
composeBom = "2024.09.00"
|
||||
navigationCompose = "2.8.8"
|
||||
playServicesAuth = "21.3.0"
|
||||
|
||||
[libraries]
|
||||
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||||
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "navigationCompose" }
|
||||
google-api-client-android = { module = "com.google.api-client:google-api-client-android", version.ref = "googleApiClientAndroid" }
|
||||
google-api-services-drive = { module = "com.google.apis:google-api-services-drive", version.ref = "googleApiServicesDrive" }
|
||||
google-oauth-client-jetty = { module = "com.google.oauth-client:google-oauth-client-jetty", version.ref = "googleOauthClientJetty" }
|
||||
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
||||
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
|
||||
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
|
||||
|
@ -26,6 +33,7 @@ androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-toolin
|
|||
androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
|
||||
androidx-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
|
||||
androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
|
||||
play-services-auth = { module = "com.google.android.gms:play-services-auth", version.ref = "playServicesAuth" }
|
||||
|
||||
[plugins]
|
||||
android-application = { id = "com.android.application", version.ref = "agp" }
|
||||
|
|
|
@ -5,6 +5,7 @@ pluginManagement {
|
|||
includeGroupByRegex("com\\.android.*")
|
||||
includeGroupByRegex("com\\.google.*")
|
||||
includeGroupByRegex("androidx.*")
|
||||
includeGroupByRegex(".*drive.*")
|
||||
}
|
||||
}
|
||||
mavenCentral()
|
||||
|
|