Skip to content

Commit 5209fcd

Browse files
authored
chore: resolve issue with missing typings
Depending on the version of tns-platform-declations (in src's devDependencies) only one of the following is available: - androidx.core.content - when the version is at least 6.0.0 - android.support.v4.content - when the version is before 6.0.0
1 parent 30ca56a commit 5209fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/camera.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ declare let global: any;
1212
let useAndroidX = function () {
1313
return global.androidx && global.androidx.appcompat;
1414
};
15-
const FileProviderPackageName = useAndroidX() ? global.androidx.core.content : android.support.v4.content;
15+
const FileProviderPackageName = useAndroidX() ? global.androidx.core.content : global.android.support.v4.content;
1616

1717
export let takePicture = function (options?): Promise<any> {
1818
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)