diff --git a/.gitignore b/.gitignore index a68e5b5..04f4364 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ google-services.json # Android Profiling *.hprof +*.aab diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b977601..f43f17e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,8 @@ + package="com.maenle.bump" + android:versionName="initial"> diff --git a/app/src/main/java/com/maenle/bump/MyFirebaseMessagingService.kt b/app/src/main/java/com/maenle/bump/MyFirebaseMessagingService.kt index 002bcf2..fb60826 100644 --- a/app/src/main/java/com/maenle/bump/MyFirebaseMessagingService.kt +++ b/app/src/main/java/com/maenle/bump/MyFirebaseMessagingService.kt @@ -19,18 +19,18 @@ class MyFirebaseMessagingService : FirebaseMessagingService() { // [START receive_message] override fun onMessageReceived(remoteMessage: RemoteMessage) { // Not getting messages here? See why this may be: https://goo.gl/39bRNJ - Log.d(TAG, "From: ${remoteMessage.from}") + // Log.d(TAG, "From: ${remoteMessage.from}") // TODO Step 3.5 check messages for data // Check if message contains a data payload. remoteMessage.data.let { - Log.d(TAG, "Message data payload: " + remoteMessage.data) + // Log.d(TAG, "Message data payload: " + remoteMessage.data) } // TODO Step 3.6 check messages for notification and call sendNotification // Check if message contains a notification payload. remoteMessage.notification?.let { - Log.d(TAG, "Message Notification Body: ${it.body}") + // Log.d(TAG, "Message Notification Body: ${it.body}") sendNotification(it.body!!) } } diff --git a/app/src/main/java/com/maenle/bump/ui/CameraFragment.kt b/app/src/main/java/com/maenle/bump/ui/CameraFragment.kt index abdf6c0..5ce19b1 100644 --- a/app/src/main/java/com/maenle/bump/ui/CameraFragment.kt +++ b/app/src/main/java/com/maenle/bump/ui/CameraFragment.kt @@ -110,9 +110,9 @@ class CameraFragment: Fragment() { previewUseCase ) } catch (illegalStateException: IllegalStateException) { - Log.e(TAG, illegalStateException.message ?: "IllegalStateException") + // Log.e(TAG, illegalStateException.message ?: "IllegalStateException") } catch (illegalArgumentException: IllegalArgumentException) { - Log.e(TAG, illegalArgumentException.message ?: "IllegalArgumentException") + // Log.e(TAG, illegalArgumentException.message ?: "IllegalArgumentException") } } @@ -153,9 +153,9 @@ class CameraFragment: Fragment() { analysisUseCase ) } catch (illegalStateException: IllegalStateException) { - Log.e(TAG, illegalStateException.message ?: "IllegalStateException") + // Log.e(TAG, illegalStateException.message ?: "IllegalStateException") } catch (illegalArgumentException: IllegalArgumentException) { - Log.e(TAG, illegalArgumentException.message ?: "IllegalArgumentException") + // Log.e(TAG, illegalArgumentException.message ?: "IllegalArgumentException") } } @@ -189,7 +189,7 @@ class CameraFragment: Fragment() { blockingScanned = false } .addOnFailureListener { - Log.e(TAG, it.message ?: it.toString()) + // Log.e(TAG, it.message ?: it.toString()) }.addOnCompleteListener { // When the image is from CameraX analysis use case, must call image.close() on received // images when finished using them. Otherwise, new images may not be received or the camera @@ -207,7 +207,7 @@ class CameraFragment: Fragment() { if (isCameraPermissionGranted()) { bindCameraUseCases() } else { - Log.e(TAG, "no camera permission") + // Log.e(TAG, "no camera permission") } } super.onRequestPermissionsResult(requestCode, permissions, grantResults) diff --git a/app/src/main/java/com/maenle/bump/ui/FirstFragment.kt b/app/src/main/java/com/maenle/bump/ui/FirstFragment.kt index 070439d..436e842 100644 --- a/app/src/main/java/com/maenle/bump/ui/FirstFragment.kt +++ b/app/src/main/java/com/maenle/bump/ui/FirstFragment.kt @@ -125,7 +125,7 @@ class FirstFragment : Fragment() { try { bitmap = qrgEncoder.encodeAsBitmap() } catch (e: WriterException) { - Log.d("Tag", e.toString()) + // Log.d("Tag", e.toString()) } if(nightModeFlags == Configuration.UI_MODE_NIGHT_YES) { @@ -160,7 +160,7 @@ class FirstFragment : Fragment() { if (!task.isSuccessful) { curmessage = getString(R.string.message_subscribe_failed) } - Log.d(TAG, curmessage.toString()) + // Log.d(TAG, curmessage.toString()) } // [END subscribe_topics] } diff --git a/app/src/main/java/com/maenle/bump/util/CameraXViewModel.kt b/app/src/main/java/com/maenle/bump/util/CameraXViewModel.kt index f46b9fa..7ffce5c 100644 --- a/app/src/main/java/com/maenle/bump/util/CameraXViewModel.kt +++ b/app/src/main/java/com/maenle/bump/util/CameraXViewModel.kt @@ -29,9 +29,9 @@ class CameraXViewModel(application: Application) : AndroidViewModel(application) cameraProviderLiveData!!.setValue(cameraProviderFuture.get()) } catch (e: ExecutionException) { // Handle any errors (including cancellation) here. - Log.e(TAG, "Unhandled exception", e) + // Log.e(TAG, "Unhandled exception", e) } catch (e: InterruptedException) { - Log.e(TAG, "Unhandled exception", e) + // Log.e(TAG, "Unhandled exception", e) } }, ContextCompat.getMainExecutor(getApplication()) diff --git a/app/src/main/java/com/maenle/bump/util/RestSingleton.kt b/app/src/main/java/com/maenle/bump/util/RestSingleton.kt index 673896b..5760d9d 100644 --- a/app/src/main/java/com/maenle/bump/util/RestSingleton.kt +++ b/app/src/main/java/com/maenle/bump/util/RestSingleton.kt @@ -26,7 +26,7 @@ class RestSingleton constructor(context: Context){ } private val TAG = MainActivity::class.java.simpleName - private const val URL = "http://192.168.68.127:4000/api/" + private const val URL = "https://bump.maenle.net/api/" } fun list(sender: String, callback: (JSONArray) -> Unit){