Skip to content

Commit

Permalink
Merge pull request #7 from PetoAdam/dev
Browse files Browse the repository at this point in the history
Merge dev to master -> working application
  • Loading branch information
PetoAdam authored Oct 31, 2023
2 parents 75f3fae + d2c99f5 commit 0108d44
Show file tree
Hide file tree
Showing 67 changed files with 2,691 additions and 211 deletions.
11 changes: 0 additions & 11 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 27 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ plugins {
id 'org.jetbrains.kotlin.android'
id 'com.google.dagger.hilt.android'
id 'kotlin-kapt'
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
}

android {
namespace 'com.example.cinemasurf'
compileSdk 33
compileSdk 34

defaultConfig {
applicationId "com.example.cinemasurf"
minSdk 28
targetSdk 33
targetSdk 34
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -69,7 +71,10 @@ dependencies {
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
testImplementation 'junit:junit:4.13.2'
implementation 'com.google.firebase:firebase-analytics-ktx:21.2.0'
implementation 'com.google.firebase:firebase-crashlytics-ktx:18.3.2'
implementation 'androidx.core:core-ktx:+'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
Expand All @@ -87,9 +92,28 @@ dependencies {
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.okhttp3:logging-interceptor:4.5.0"
implementation "com.squareup.okhttp3:okhttp:4.10.0"
implementation "com.squareup.moshi:moshi:1.12.0"
implementation "com.squareup.moshi:moshi-kotlin:1.12.0"
implementation "com.squareup.moshi:moshi-adapters:1.12.0"

// ROOM
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"

// GLIDE
implementation "com.github.skydoves:landscapist-glide:2.2.0"

// NAV
implementation "androidx.navigation:navigation-compose:2.5.3"

// JUnit 4
testImplementation 'junit:junit:4.13.2'

// MockK
testImplementation 'io.mockk:mockk:1.12.0'
testImplementation 'io.mockk:mockk-android:1.12.0'


}
29 changes: 29 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "279866359848",
"project_id": "cinemasurf-638f5",
"storage_bucket": "cinemasurf-638f5.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:279866359848:android:7a9bf65164e2298c68b51d",
"android_client_info": {
"package_name": "com.example.cinemasurf"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyAfYsg1O7Ralt2htCC7j1YWYiSU2qsVeF8"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
5 changes: 4 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application
android:name=".BaseApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.CinemaSurf"
tools:targetApi="31">
Expand Down
23 changes: 23 additions & 0 deletions app/src/main/java/apiclient/.swagger-codegen-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Swagger Codegen Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
1 change: 1 addition & 0 deletions app/src/main/java/apiclient/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.4.31
53 changes: 53 additions & 0 deletions app/src/main/java/apiclient/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# io.swagger.client - Kotlin client library for CinemaSurf API (using TMDB)

## Requires

* Kotlin 1.1.2
* Gradle 3.3

## Build

First, create the gradle wrapper script:

```
gradle wrapper
```

Then, run:

```
./gradlew check assemble
```

This runs all tests and packages the library.

## Features/Implementation Notes

* Supports JSON inputs/outputs, File inputs, and Form inputs.
* Supports collection formats for query parameters: csv, tsv, ssv, pipes.
* Some Kotlin and Java types are fully qualified to avoid conflicts with types defined in Swagger definitions.
* Implementation of ApiClient is intended to reduce method counts, specifically to benefit Android targets.

<a name="documentation-for-api-endpoints"></a>
## Documentation for API Endpoints

All URIs are relative to *https://api.themoviedb.org/3*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**movieIdGet**](docs/DefaultApi.md#movieidget) | **GET** /movie/{id} | Get details of a movie by ID
*DefaultApi* | [**searchMovieGet**](docs/DefaultApi.md#searchmovieget) | **GET** /search/movie | Search for movies
*DefaultApi* | [**trendingMovieDayGet**](docs/DefaultApi.md#trendingmoviedayget) | **GET** /trending/movie/day | Get the latest trending movies


<a name="documentation-for-models"></a>
## Documentation for Models

- [io.swagger.client.models.InlineResponse200](docs/InlineResponse200.md)
- [io.swagger.client.models.Movie](docs/Movie.md)


<a name="documentation-for-authorization"></a>
## Documentation for Authorization

All endpoints do not require authorization.
35 changes: 35 additions & 0 deletions app/src/main/java/apiclient/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package apiclient

group 'io.swagger'
version '1.0.0'

task wrapper(type: Wrapper) {
gradleVersion = '3.3'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}

buildscript {
ext.kotlin_version = '1.1.2'

repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

apply plugin: 'kotlin'

repositories {
mavenCentral()
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "com.squareup.moshi:moshi-kotlin:1.5.0"
compile "com.squareup.moshi:moshi-adapters:1.5.0"
compile "com.squareup.okhttp3:okhttp:3.8.0"
compile "org.threeten:threetenbp:1.3.6"
testCompile "io.kotlintest:kotlintest:2.0.2"
}
Loading

0 comments on commit 0108d44

Please sign in to comment.