Skip to content

Commit

Permalink
Merge pull request #30 from ShivamNagpal/release-candidate
Browse files Browse the repository at this point in the history
Release candidate version Code 9
  • Loading branch information
ShivamNagpal committed Jun 24, 2023
2 parents 9b03bbf + bbae390 commit 426884d
Show file tree
Hide file tree
Showing 100 changed files with 2,708 additions and 2,105 deletions.
77 changes: 57 additions & 20 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,52 +1,89 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'androidx.navigation.safeargs'

android {
compileSdkVersion 33
defaultConfig {
applicationId "com.nagpal.shivam.vtucslab"
minSdkVersion 19
targetSdkVersion 33
versionCode 8
versionName "6.2"
versionCode 9
versionName "7.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true

javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

kotlin {
jvmToolchain(11)
}

android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = 11
}
}
buildFeatures {
dataBinding true
viewBinding true
}
namespace 'com.nagpal.shivam.vtucslab'
}

dependencies {
implementation platform("com.google.firebase:firebase-bom:$versions.firebase_bom")
implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.material:material:1.8.0'
implementation "androidx.multidex:multidex:2.0.1"
implementation "androidx.core:core-ktx:$versions.core_ktx"
implementation "androidx.appcompat:appcompat:$versions.appcompat"
implementation "androidx.constraintlayout:constraintlayout:$versions.constraintlayout"
implementation "com.google.android.material:material:$versions.material"
implementation "androidx.multidex:multidex:$versions.multidex"

// GSON
implementation 'com.google.code.gson:gson:2.8.9'
// Navigation
implementation "androidx.navigation:navigation-fragment-ktx:$versions.navigation"
implementation "androidx.navigation:navigation-ui-ktx:$versions.navigation"

// Firebase SDK
implementation('com.google.firebase:firebase-core:21.1.1') {
exclude module: 'support-v4'
}
implementation('com.google.firebase:firebase-messaging:23.1.2') {
exclude module: 'support-v4'
}
implementation 'com.google.firebase:firebase-crashlytics:18.3.5'
implementation "androidx.room:room-runtime:$versions.room"
kapt "androidx.room:room-compiler:$versions.room"

// https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-kotlin
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:$versions.jackson_module_kotlin"

// https://mvnrepository.com/artifact/androidx.swiperefreshlayout/swiperefreshlayout
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$versions.swipe_refresh_layout"

// Firebase SDK
implementation 'com.google.firebase:firebase-messaging-ktx'
implementation 'com.google.firebase:firebase-crashlytics-ktx'

// Retrofit
implementation "com.squareup.retrofit2:retrofit:$versions.retrofit"
implementation "com.squareup.retrofit2:converter-jackson:$versions.retrofit"
implementation "com.squareup.retrofit2:converter-scalars:$versions.retrofit"

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
testImplementation "junit:junit:$versions.junit"
androidTestImplementation "androidx.test:runner:$versions.test_runner"
androidTestImplementation "androidx.test.espresso:espresso-core:$versions.espresso_core"
}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'org.jetbrains.kotlin.android'
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "f78e881b1af6632ac37cd5f3188a2360",
"entities": [
{
"tableName": "lab_response",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `response` TEXT NOT NULL, `response_type` TEXT NOT NULL, `fetched_at` INTEGER NOT NULL, PRIMARY KEY(`url`))",
"fields": [
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "response",
"columnName": "response",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "responseType",
"columnName": "response_type",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "fetchedAt",
"columnName": "fetched_at",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"url"
]
},
"indices": [],
"foreignKeys": []
}
],
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'f78e881b1af6632ac37cd5f3188a2360')"
]
}
}
36 changes: 7 additions & 29 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,26 @@
<uses-permission android:name="android.permission.INTERNET" />

<application
android:name="androidx.multidex.MultiDexApplication"
android:name=".VTUCSLabApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">

<meta-data
android:name="google_analytics_adid_collection_enabled"
android:value="false" />

<activity
android:name=".Activity.RepositoryActivity"
android:launchMode="singleTask"
android:theme="@style/AppTheme.NoActionBar"
android:exported="true">
android:name=".activities.MainActivity"
android:exported="true"
android:theme="@style/AppTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".Activity.ProgramActivity"
android:launchMode="singleTask"
android:parentActivityName=".Activity.RepositoryActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activity.RepositoryActivity" />
</activity>

<activity
android:name=".Activity.DisplayActivity"
android:parentActivityName=".Activity.ProgramActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activity.ProgramActivity" />
</activity>

<meta-data
android:name="google_analytics_adid_collection_enabled"
android:value="false" />
</application>

</manifest>
Loading

0 comments on commit 426884d

Please sign in to comment.