Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .idea/gradle.xml

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

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

23 changes: 13 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
compileSdkVersion 33
defaultConfig {
applicationId "com.appknox.mfva"
minSdkVersion 23
targetSdkVersion 26
targetSdkVersion 33
versionCode 8
versionName "1.1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionName "1.2.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
}
lintOptions {
namespace 'com.appknox.mfva'
lint {
abortOnError false
}

}
dependencies {
api fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
api 'com.android.support:appcompat-v7:26.1.0'
api 'com.android.support.constraint:constraint-layout:1.0.2'
api 'com.android.support:design:26.1.0'
api 'com.squareup.okhttp3:okhttp:3.8.0'
api 'androidx.appcompat:appcompat:1.6.1'
api 'androidx.constraintlayout:constraintlayout:2.1.4'
api 'com.google.android.material:material:1.9.0'
api 'com.squareup.okhttp3:okhttp:3.10.0'
api 'redis.clients:jedis:2.9.0'
testImplementation 'junit:junit:4.12'
implementation group: 'org.json', name: 'json', version: '20220924'
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package com.appknox.mfva;

import static org.junit.Assert.assertEquals;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumentation test, which will execute on an Android device.
*
Expand All @@ -19,7 +20,7 @@ public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();

assertEquals("com.appknox.mfva", appContext.getPackageName());
}
Expand Down
18 changes: 8 additions & 10 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.appknox.mfva">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
Expand All @@ -22,11 +22,13 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/Theme.AppCompat.Light.NoActionBar">
<activity
android:name=".MainActivity"
android:label="@string/activity_title_main"
android:screenOrientation="portrait">
android:screenOrientation="fullSensor"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -38,18 +40,18 @@
android:label="@string/title_activity_register"
android:exported="true"
android:parentActivityName=".MainActivity"
android:screenOrientation="portrait" />
android:screenOrientation="fullSensor" />

<activity
android:name=".WebViewActivity"
android:label="@string/activity_title_webview"
android:parentActivityName=".MainActivity"
android:screenOrientation="portrait" />
android:screenOrientation="fullSensor" />
<activity
android:name=".ApiRequestsActivity"
android:label="@string/activity_title_api_requests"
android:parentActivityName=".MainActivity"
android:screenOrientation="portrait">
android:screenOrientation="fullSensor">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
Expand Down Expand Up @@ -95,10 +97,6 @@
android:exported="true"
android:permission="com.appknox.mfva.CustomPermission"
android:syncable="true">
<grant-uri-permission
android:path="/"
android:pathPattern="*"
android:pathPrefix="/" />
</provider>

</application>
Expand Down
Loading