Skip to content

Commit 3ee5d0e

Browse files
author
Matthias Prost
authored
refactor: fix angular version from 8 to 15 and upgrade all dependent packages (#28)
* refactor: update angular progressivly * refactor using angular 9 * fix: update proxy for billing * fix: remove useless dependencies * fix: minor fixes * fix: removing angular http as its deprecated * refactor: migrato to angular 11 * refator: migrate to angular 12 * refactor: migrate to angular 13 * refactor: migration to angular 14 * fix: http client * feat: add friendly captcha * fix: update native * fix: remove old native packages * refactor: implement native http requests * fix: upgrade ionic storage package and remove useless ones * fix: native http requests * fix: ios deploy version and android deploy version * fix: issue with 2fa and upgrade version
1 parent bfa6fe5 commit 3ee5d0e

File tree

206 files changed

+7632
-6894
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+7632
-6894
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.angular/cache
12
# Specifies intentionally untracked files to ignore when using Git
23
# http://git-scm.com/docs/gitignore
34

@@ -18,6 +19,7 @@ npm-debug.log*
1819
.sass-cache/
1920
.tmp/
2021
.versions/
22+
.zed
2123
coverage/
2224
www/
2325
node_modules/

DEPLOY.md

Lines changed: 13 additions & 23 deletions

README.md

Lines changed: 2 additions & 2 deletions

android/.gitignore

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# NPM renames .gitignore to .npmignore
2-
# In order to prevent that, we remove the initial "."
3-
# And the CLI then renames it
4-
5-
# Using Android gitignore template: https://github.com/github/gitignore/blob/master/Android.gitignore
1+
# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
62

73
# Built application files
84
*.apk
5+
*.aar
96
*.ap_
107
*.aab
118

@@ -19,7 +16,8 @@
1916
bin/
2017
gen/
2118
out/
22-
release/
19+
# Uncomment the following line in case you need and you don't have the release build type files in your app
20+
# release/
2321

2422
# Gradle files
2523
.gradle/
@@ -61,6 +59,10 @@ captures/
6159

6260
# External native build folder generated in Android Studio 2.2 and later
6361
.externalNativeBuild
62+
.cxx/
63+
64+
# Google Services (e.g. APIs or Firebase)
65+
# google-services.json
6466

6567
# Freeline
6668
freeline.py
@@ -84,8 +86,16 @@ lint/outputs/
8486
lint/tmp/
8587
# lint/reports/
8688

89+
# Android Profiling
90+
*.hprof
91+
8792
# Cordova plugins for Capacitor
8893
capacitor-cordova-android-plugins
8994

9095
# Copied web assets
9196
app/src/main/assets/public
97+
98+
# Generated Config files
99+
app/src/main/assets/capacitor.config.json
100+
app/src/main/assets/capacitor.plugins.json
101+
app/src/main/res/xml/config.xml

android/app/build.gradle

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@ apply plugin: 'com.android.application'
22

33
android {
44
namespace "com.matthiasprost.scalewaymanager"
5-
compileSdkVersion rootProject.ext.compileSdkVersion
5+
compileSdk rootProject.ext.compileSdkVersion
66
defaultConfig {
77
applicationId "com.matthiasprost.scalewaymanager"
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
10-
versionCode 20313
11-
versionName "2.3.3"
10+
versionCode 20401
11+
versionName "2.4.1"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
13+
aaptOptions {
14+
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
15+
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
16+
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
17+
}
1318
}
1419
buildTypes {
1520
release {
@@ -26,10 +31,10 @@ repositories {
2631
}
2732

2833
dependencies {
29-
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
30-
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
3134
implementation fileTree(include: ['*.jar'], dir: 'libs')
3235
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
36+
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
37+
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
3338
implementation project(':capacitor-android')
3439
testImplementation "junit:junit:$junitVersion"
3540
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
@@ -45,5 +50,5 @@ try {
4550
apply plugin: 'com.google.gms.google-services'
4651
}
4752
} catch(Exception e) {
48-
logger.warn("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
53+
logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
4954
}

android/app/capacitor.build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ android {
1010
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
1111
dependencies {
1212
implementation project(':capacitor-status-bar')
13-
implementation "com.squareup.okhttp3:okhttp-urlconnection:3.10.0"
14-
implementation "com.android.support:support-v4:27.+"
13+
1514
}
1615

1716

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
package com.getcapacitor.myapp;
22

3-
import android.content.Context;
3+
import static org.junit.Assert.*;
44

5-
import androidx.test.platform.app.InstrumentationRegistry;
5+
import android.content.Context;
66
import androidx.test.ext.junit.runners.AndroidJUnit4;
7-
7+
import androidx.test.platform.app.InstrumentationRegistry;
88
import org.junit.Test;
99
import org.junit.runner.RunWith;
1010

11-
import static org.junit.Assert.*;
12-
1311
/**
1412
* Instrumented test, which will execute on an Android device.
1513
*
1614
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
1715
*/
1816
@RunWith(AndroidJUnit4.class)
1917
public class ExampleInstrumentedTest {
20-
@Test
21-
public void useAppContext() throws Exception {
22-
// Context of the app under test.
23-
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
2418

25-
assertEquals("com.getcapacitor.app", appContext.getPackageName());
26-
}
19+
@Test
20+
public void useAppContext() throws Exception {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
23+
24+
assertEquals("com.getcapacitor.app", appContext.getPackageName());
25+
}
2726
}
Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,35 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
>
4-
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
53
<application
64
android:allowBackup="true"
75
android:icon="@mipmap/ic_launcher"
86
android:label="@string/app_name"
97
android:roundIcon="@mipmap/ic_launcher_round"
108
android:supportsRtl="true"
119
android:theme="@style/AppTheme">
12-
1310
<activity
14-
android:exported="true"
1511
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
16-
android:name="com.matthiasprost.scalewaymanager.MainActivity"
12+
android:name=".MainActivity"
1713
android:label="@string/title_activity_main"
1814
android:theme="@style/AppTheme.NoActionBarLaunch"
1915
android:launchMode="singleTask"
20-
android:screenOrientation="portrait">
21-
16+
android:exported="true">
2217
<intent-filter>
2318
<action android:name="android.intent.action.MAIN" />
2419
<category android:name="android.intent.category.LAUNCHER" />
2520
</intent-filter>
26-
27-
<intent-filter>
28-
<action android:name="android.intent.action.VIEW" />
29-
<category android:name="android.intent.category.DEFAULT" />
30-
<category android:name="android.intent.category.BROWSABLE" />
31-
<data android:scheme="@string/custom_url_scheme" />
32-
</intent-filter>
33-
3421
</activity>
3522

3623
<provider
3724
android:name="androidx.core.content.FileProvider"
3825
android:authorities="${applicationId}.fileprovider"
3926
android:exported="false"
4027
android:grantUriPermissions="true">
41-
<meta-data
42-
android:name="android.support.FILE_PROVIDER_PATHS"
43-
android:resource="@xml/file_paths"></meta-data>
28+
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
4429
</provider>
4530
</application>
4631

4732
<!-- Permissions -->
4833

4934
<uses-permission android:name="android.permission.INTERNET" />
50-
<!-- Camera, Photos, input file -->
51-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
52-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
5335
</manifest>

android/app/src/main/assets/capacitor.config.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)