File tree 8 files changed +13
-18
lines changed
kotlin/com/camerakit/flutter/sample/simple
8 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 1
- 1.26 .0
1
+ 1.25 .0
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ android {
44
44
45
45
defaultConfig {
46
46
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47
- applicationId " com.camerakit.flutter.camerakit_flutter_sample_simple "
47
+ applicationId " com.camerakit.flutter.sample.simple "
48
48
// You can update the following values to match your application needs.
49
49
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
50
50
minSdkVersion 21
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" com.camerakit.flutter.camerakit_flutter_sample_simple " >
2
+ package =" com.camerakit.flutter.sample.simple " >
3
3
<!-- The INTERNET permission is required for development. Specifically,
4
4
the Flutter tool needs it to communicate with the running application
5
5
to allow setting breakpoints, to provide hot reload, etc.
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" com.camerakit.flutter.camerakit_flutter_sample_simple " >
2
+ package =" com.camerakit.flutter.sample.simple " >
3
3
4
4
<uses-permission android : name =" android.permission.INTERNET" />
5
5
<uses-permission android : name =" android.permission.CAMERA" />
6
6
<uses-permission android : name =" android.permission.RECORD_AUDIO" />
7
7
<uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
8
8
9
9
<application
10
- android : label =" camerakit_flutter_sample_simple "
10
+ android : label =" Camera Kit Flutter Sample "
11
11
android : name =" ${applicationName}"
12
- android : icon =" @mipmap/ic_launcher" >
12
+ android : icon =" @mipmap/ic_launcher"
13
+ android : theme =" @style/LaunchTheme" >
13
14
<activity
14
15
android : name =" .MainActivity"
15
16
android : exported =" true"
16
17
android : launchMode =" singleTop"
17
- android : theme =" @style/LaunchTheme"
18
18
android : configChanges =" orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
19
19
android : hardwareAccelerated =" true"
20
20
android : windowSoftInputMode =" adjustResize" >
32
32
</intent-filter >
33
33
</activity >
34
34
35
- <activity android : name =" com.snap.camerakit.support.app.CameraActivity"
36
- android : theme =" @style/Theme.AppCompat.NoActionBar"
37
- />
38
35
<!-- Don't delete the meta-data below.
39
36
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
40
37
<meta-data
Original file line number Diff line number Diff line change 1
- package com.camerakit.flutter.camerakit_flutter_sample_simple
1
+ package com.camerakit.flutter.sample.simple
2
2
3
3
import android.content.Intent
4
4
import android.view.View
@@ -14,9 +14,8 @@ import java.io.File
14
14
15
15
class MainActivity : FlutterFragmentActivity () {
16
16
17
- private val CAMERAKIT_APP_ID = " " // TODO fill app id here
18
- private val CAMERAKIT_GROUP_ID = " " // TODO fill group id here
19
- private val CAMERAKIT_API_TOKEN = " " // TODO fill api token here
17
+ private val CAMERAKIT_GROUP_ID = " 59f98a84-6910-45c0-8692-4edd5cc3d5ed" // TODO fill group id here
18
+ private val CAMERAKIT_API_TOKEN = " eyJhbGciOiJIUzI1NiIsImtpZCI6IkNhbnZhc1MyU0hNQUNQcm9kIiwidHlwIjoiSldUIn0.eyJhdWQiOiJjYW52YXMtY2FudmFzYXBpIiwiaXNzIjoiY2FudmFzLXMyc3Rva2VuIiwibmJmIjoxNjU1MzM1NzM0LCJzdWIiOiIxOTFkNWRmMC1kNWJmLTQ2OGItYTYzNC04NDhlZmRmYWY1OGF-U1RBR0lOR35kMWRmOTE0Yy04ZGI0LTQzZDktYjhmNi1mZDdjOTM2ODQ4NmEifQ.XsUvnwigfWjEFpd6-BqbpabjDCMLK80SvKIrag_iSD4" // TODO fill api token here
20
19
private val CHANNEL = " com.camerakit.flutter.sample.simple"
21
20
22
21
private lateinit var _result : MethodChannel .Result
@@ -54,7 +53,6 @@ class MainActivity : FlutterFragmentActivity() {
54
53
captureLauncher.launch(
55
54
CameraActivity .Configuration .WithLenses (
56
55
cameraKitApiToken = CAMERAKIT_API_TOKEN ,
57
- cameraKitApplicationId = CAMERAKIT_APP_ID ,
58
56
lensGroupIds = arrayOf(CAMERAKIT_GROUP_ID )
59
57
)
60
58
)
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" com.camerakit.flutter.camerakit_flutter_sample_simple " >
2
+ package =" com.camerakit.flutter.sample.simple " >
3
3
<!-- The INTERNET permission is required for development. Specifically,
4
4
the Flutter tool needs it to communicate with the running application
5
5
to allow setting breakpoints, to provide hot reload, etc.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class _MyHomePageState extends State<MyHomePage> {
36
36
late VideoPlayerController _controller;
37
37
late Future <void > _initializeVideoPlayerFuture;
38
38
final List <Widget > _children = [
39
- Image . network ( 'https://picsum.photos/200/300' ),
39
+ Text ( "Click on shutter icon to launch Camera Kit" ),
40
40
];
41
41
42
42
@override
Original file line number Diff line number Diff line change 1
- name : camerakit_flutter_sample_simple
1
+ name : sample.simple
2
2
description : A new Flutter project.
3
3
# The following line prevents the package from being accidentally published to
4
4
# pub.dev using `flutter pub publish`. This is preferred for private packages.
You can’t perform that action at this time.
0 commit comments