From c2165600fb578d2f471474843196b1b5b919ed08 Mon Sep 17 00:00:00 2001 From: Jason Wall Date: Thu, 4 Mar 2021 15:43:27 +0000 Subject: [PATCH] Google play will rename classes to make app sizes smaller. this breaks the config lookup of the google auth capacitor plugin. so tell google not to rename that class --- src/android/app/proguard-rules.pro | 2 ++ src/android/app/src/main/play/release-notes/en-US/beta.txt | 1 - src/capacitor.config.json | 1 - src/package.json | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/android/app/proguard-rules.pro b/src/android/app/proguard-rules.pro index f1b42451..a338bb6c 100644 --- a/src/android/app/proguard-rules.pro +++ b/src/android/app/proguard-rules.pro @@ -19,3 +19,5 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile + +-keep public class com.codetrixstudio.capacitor.GoogleAuth diff --git a/src/android/app/src/main/play/release-notes/en-US/beta.txt b/src/android/app/src/main/play/release-notes/en-US/beta.txt index 9cfe2c08..e69de29b 100644 --- a/src/android/app/src/main/play/release-notes/en-US/beta.txt +++ b/src/android/app/src/main/play/release-notes/en-US/beta.txt @@ -1 +0,0 @@ -Fixed bug in typeahead history diff --git a/src/capacitor.config.json b/src/capacitor.config.json index c060cfca..6ee83d6a 100644 --- a/src/capacitor.config.json +++ b/src/capacitor.config.json @@ -13,7 +13,6 @@ "serverClientId": "200739882604-i4mk6rp4mcb8n590j5kc8i6bncpm5bo1.apps.googleusercontent.com", "forceCodeForRefreshToken" : true } - }, "cordova": {} } diff --git a/src/package.json b/src/package.json index cfc1d353..7c5303db 100644 --- a/src/package.json +++ b/src/package.json @@ -10,8 +10,8 @@ "test-headless": "ng test --watch=false --browsers=ChromeHeadlessNoSandbox ", "lint": "ng lint", "e2e": "ng e2e", - "copy": "npx cap copy", - "all": "ng lint & ng test --watch=false --browsers=ChromeHeadlessNoSandbox & ng build --prod & npx cap copy" + "copy": "npx cap sync", + "all": "ng lint & ng test --watch=false --browsers=ChromeHeadlessNoSandbox & ng build --prod & npx cap sync" }, "private": true, "dependencies": {