Skip to content
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

Adding the demo project #244

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
e6fbb60
save images in app data folder instead of temp
Sep 15, 2017
c4bb480
save full image in library folder
Sep 28, 2017
616f4af
retain gallery image exif for android
Sep 29, 2017
c22e8e1
read origianl exif from ios roll
Sep 29, 2017
1254ee7
fixed permission error on ios
Sep 29, 2017
d44858b
added thumbnail
Oct 13, 2017
8ca3665
fixed HEIF format
Nov 24, 2017
40440fe
check for null progress dialog
l0stpenguin Feb 5, 2018
e5d1eb2
allow orientation change
l0stpenguin Feb 5, 2018
51baed1
prevent activity recreation on orientation change
l0stpenguin Feb 5, 2018
2004bd6
Fixed incorrect orientation exif
l0stpenguin Feb 20, 2018
b0d0f78
fixed requestPermission callback on ios
l0stpenguin Jun 19, 2018
f7d2ebe
added missing method
l0stpenguin Jun 19, 2018
df98b2b
Merge pull request #1 from Telerik-Verified-Plugins/master
ombr Jun 21, 2018
b62aaa0
disable thumbnails
Aug 3, 2018
2ef685a
fixed memory leak for android bitmaps
l0stpenguin Sep 10, 2018
0fcd3ea
updated appcompat dependency
l0stpenguin Nov 13, 2018
a3adb71
Merge branch 'master' of https://github.com/Telerik-Verified-Plugins/…
Jan 14, 2019
8b04ee9
Merge branch 'Telerik-Verified-Plugins-master'
Jan 14, 2019
bf46e51
Merge pull request #3 from Telerik-Verified-Plugins/master
l0stpenguin May 6, 2019
10ed770
fixed incorrect file extension on ios
l0stpenguin Oct 15, 2019
8752d1e
Update GMGridViewController.m
l0stpenguin Oct 15, 2019
312a113
Update GMGridViewController.m
l0stpenguin Oct 16, 2019
2c94208
Merge pull request #4 from spoonconsulting/mevinDhun-patch-1
l0stpenguin Oct 16, 2019
146e76b
Fixed android permissions callback
Nov 14, 2019
5cf0c5e
Merge pull request #5 from spoonconsulting/fix-android-permissions
ombr Nov 23, 2019
5cc9d00
update package json
dinitri Sep 2, 2020
242eb84
remove repo pkg json
dinitri Sep 2, 2020
ea49d00
update pkg json
dinitri Sep 2, 2020
2d767a2
update package.json
dinitri Sep 2, 2020
b0f492f
update author
dinitri Sep 2, 2020
ab6e471
update version
dinitri Sep 2, 2020
091fa2c
add correct cordova plugin id
dinitri Feb 26, 2021
ec5f713
Merge pull request #6 from spoonconsulting/fix-plugin-cordova-id
ombr Mar 2, 2021
26cfe85
remove write external storage persmission
dinitri Apr 23, 2021
0092c72
handle content uri
dinitri Apr 28, 2021
7cf8bc4
copyToDirectory
dinitri Apr 28, 2021
e5252f4
add missing import
dinitri Apr 28, 2021
dcf7cfe
getFileDire
dinitri Apr 28, 2021
eb3f90f
add permission back
dinitri Apr 29, 2021
9691208
refactor
dinitri Apr 29, 2021
cedcca1
add selection limit and only allow native file opener ( trial)
dinitri Apr 30, 2021
3298da4
add limit exceeded msg
dinitri Apr 30, 2021
4d60664
handle cross profile exception
dinitri May 4, 2021
117e18a
reafactor package
dinitri May 4, 2021
7523a9a
refactor package
dinitri May 4, 2021
4d7c314
fix js to java link
dinitri May 4, 2021
cef0585
change intent action, change toast order
dinitri May 4, 2021
2be1573
review comment az
dinitri May 5, 2021
f29f4cd
update change log
dinitri May 5, 2021
63a29ea
Merge pull request #7 from spoonconsulting/read-external-storage
dinitri May 5, 2021
b1a4ac6
Demo added
sc-nick May 10, 2021
11141ba
Reset ImagePicker
sc-nick May 10, 2021
42d07be
Refactoring
sc-nick May 12, 2021
bae813a
Refactor
sc-nick May 14, 2021
40b1fbe
Update src/android/ImagePicker.java
azharbeebeejaun May 17, 2021
80541d5
Refactor
sc-nick May 17, 2021
a7a9752
Merge branch 'add-demo' of https://github.com/spoonconsulting/cordova…
sc-nick May 17, 2021
d2d1ed9
Update homepage
sc-nick May 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## [2.0.0](https://github.com/spoonconsulting/cordova-plugin-telerik-imagepicker/compare/1.0.2...2.0.0) (2021-05-05)


### Breaking Changes

* **android:** Android 11 does not support WRITE_EXTERNAL_STORAGE permission and Playstore will reject any app's manifest containting this permission.

The plugin's new package name is: com.spoon.imagepicker


## [1.0.2](https://github.com/spoonconsulting/cordova-plugin-telerik-imagepicker/releases/tag/1.0.2)
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ window.imagePicker.getPictures(

### Note for Android Use

When outputType is FILE_URI the plugin returns images that are stored in a temporary directory. These images will often not be deleted automatically though. The files should be moved or deleted after you get their filepaths in javascript. If Base64 Strings are being returned, there is nothing to clean up.
The 'maximumImagesCount' option is currently the only option supported for Android

## Android 6 (M) Permissions
On Android 6 you need to request permission to read external storage at runtime when targeting API level 23+.
Expand Down Expand Up @@ -120,18 +120,6 @@ For iOS this plugin uses the ELCImagePickerController, with slight modifications

https://github.com/B-Sides/ELCImagePickerController

#### MultiImageChooser

For Android this plugin uses MultiImageChooser, with modifications. MultiImageChooser uses the BSD 2-Clause License which can be found in the file BSD_LICENSE. Some code inside MultImageChooser is licensed under the Apache license which can be found in the file APACHE_LICENSE.

https://github.com/derosa/MultiImageChooser

#### FakeR

Code(FakeR) was also taken from the phonegap BarCodeScanner plugin. This code uses the MIT license.

https://github.com/wildabeast/BarcodeScanner

## License

The MIT License
Expand Down
17 changes: 17 additions & 0 deletions demo/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
47 changes: 47 additions & 0 deletions demo/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json", "e2e/tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-class-suffix": [
"error",
{
"suffixes": ["Page", "Component"]
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}
31 changes: 31 additions & 0 deletions demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore

*~
*.sw[mnpcod]
.tmp
*.tmp
*.tmp.*
*.sublime-project
*.sublime-workspace
.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
$RECYCLE.BIN/

*.log
log.txt
npm-debug.log*

/.idea
/.ionic
/.sass-cache
/.sourcemaps
/.versions
/.vscode
/coverage
/dist
/node_modules
/platforms
/plugins
/www
177 changes: 177 additions & 0 deletions demo/angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"defaultProject": "app",
"newProjectRoot": "projects",
"projects": {
"app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "www",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"input": "src/assets",
"output": "assets"
},
{
"glob": "**/*.svg",
"input": "node_modules/ionicons/dist/ionicons/svg",
"output": "./svg"
}
],
"styles": ["src/theme/variables.scss", "src/global.scss"],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"ci": {
"progress": false
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
},
"ci": {
"progress": false
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"styles": [],
"scripts": [],
"assets": [
{
"glob": "favicon.ico",
"input": "src/",
"output": "/"
},
{
"glob": "**/*",
"input": "src/assets",
"output": "/assets"
}
]
},
"configurations": {
"ci": {
"progress": false,
"watch": false
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"devServerTarget": "app:serve:production"
},
"ci": {
"devServerTarget": "app:serve:ci"
}
}
},
"ionic-cordova-build": {
"builder": "@ionic/angular-toolkit:cordova-build",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
}
}
},
"ionic-cordova-serve": {
"builder": "@ionic/angular-toolkit:cordova-serve",
"options": {
"cordovaBuildTarget": "app:ionic-cordova-build",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"cordovaBuildTarget": "app:ionic-cordova-build:production",
"devServerTarget": "app:serve:production"
}
}
}
}
}
},
"cli": {
"defaultCollection": "@ionic/angular-toolkit"
},
"schematics": {
"@ionic/angular-toolkit:component": {
"styleext": "scss"
},
"@ionic/angular-toolkit:page": {
"styleext": "scss"
}
}
}
Loading