-
Notifications
You must be signed in to change notification settings - Fork 5
Merge Debug build type #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
48fa2c3
c339d96
67a52e2
ce1a236
ad9943b
071c595
8658411
57d2c7d
c08dc2e
f8a5250
826c5f3
674b206
e05e321
9942d78
b73fe91
aa1ecab
754de44
b7cc38d
56cd348
bbf18a3
8ee6a10
982e88d
9be7ec1
95b0564
d420773
170a9da
54d3d6d
85a3b18
715c25d
6042089
d636e17
e90423f
24253c3
49bd026
1dcf713
89572d0
663aec7
977238d
0ed62d5
797c0e3
ecab1ae
dab6c0b
ee44efa
dd934b8
50c4666
aeee172
9ea025c
2a6c32a
5025361
c625444
51f778e
21664f7
28931f9
91ffe47
2b7dc98
350e16d
89a670d
5e09a8c
b346569
4c42701
8ebb54b
8dd50d3
cdeb6d6
6b78b7f
255505e
1b758df
74d2db5
dc16eb4
3ef9619
fb5745b
627d243
4df206b
5cf4d21
755eaa4
6ed57ac
0925e41
a4fc819
b2c62db
dcc7ae3
eae3a19
ee7baab
ee197b5
d39e050
892a471
56508d3
5a387f6
b0710e2
bcedca5
7f7a117
3fe3933
aea7465
5987c83
24ed541
800c03e
8e84c7b
0986486
8a04272
61c8430
3b6d5d8
9bdedfe
db477d1
e3ce8c2
a077988
80fc264
d236ca6
8c3c91f
f8b5ca0
b597c43
dad102d
3046a5a
bdd250c
1ed29aa
079c0ee
2c31b67
90675aa
eb268f0
148b743
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,3 +60,5 @@ kotlin-ide/ | |
| .kotlin/ | ||
| .teamcity | ||
| .idea/ | ||
| .aider* | ||
| .env | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,7 +83,7 @@ | |
| </activity> | ||
| <provider | ||
| android:name="androidx.core.content.FileProvider" | ||
| android:authorities="com.greybox.projectmesh.fileprovider" | ||
| android:authorities="${applicationId}.fileprovider" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The provider authority now changes with the application ID, but the file-opening code still uses the old hardcoded authority. In debug builds this will mismatch and opening received files will fail. Please make the FileProvider authority consistent everywhere. |
||
| android:grantUriPermissions="true" | ||
| android:exported="false"> | ||
|
|
||
|
|
||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| package com.greybox.projectmesh.logging | ||
|
|
||
| import android.util.Log | ||
| import timber.log.Timber | ||
|
|
||
| class ReleaseTree : Timber.Tree() { | ||
| @Suppress("LogNotTimber") | ||
| override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { | ||
| // Log WARN and ERROR only to avoid leaking debug info in release | ||
| if (priority == Log.ERROR || priority == Log.WARN) { | ||
| val safeTag = tag ?: "ReleaseTree" | ||
| Log.println(priority, safeTag, message) | ||
|
|
||
| // Log Exceptions if present | ||
| t?.let { | ||
| Log.e(safeTag, "Exception: $message", it) | ||
| } | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The release build is using the debug signing key here. That will break real release installs/updates and can’t be used for store distribution. Please remove this or point it at the real release signing config.