mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 08:20:40 +00:00
Compare commits
No commits in common. "de24b9878247af34ec211f86652b9ca20a0919da" and "532df61cdf95dd8962d9bf18db23478b9e90aac3" have entirely different histories.
de24b98782
...
532df61cdf
5 changed files with 9 additions and 9 deletions
|
@ -33,6 +33,10 @@ apply plugin: 'com.google.firebase.crashlytics'
|
|||
apply plugin: 'kotlin-android'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
gradle.beforeProject({ project->
|
||||
project.setProperty("target-platform", "android-arm,android-arm64")
|
||||
})
|
||||
|
||||
android {
|
||||
compileSdkVersion 33
|
||||
ndkVersion flutter.ndkVersion
|
||||
|
@ -108,5 +112,5 @@ flutter {
|
|||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation "com.android.billingclient:billing-ktx:6.0.0"
|
||||
implementation "com.android.billingclient:billing-ktx:5.1.0"
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ buildscript {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.4.2'
|
||||
classpath 'com.android.tools.build:gradle:7.2.1'
|
||||
classpath 'com.google.gms:google-services:4.3.10'
|
||||
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
|
|
@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
|||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
|
||||
|
|
|
@ -8,7 +8,7 @@ void main() {
|
|||
late CaffeineService service;
|
||||
|
||||
const methodChannel = MethodChannel('com.vodemn.lightmeter/keepScreenOn');
|
||||
Future<Object?>? methodCallSuccessHandler(MethodCall methodCall) async {
|
||||
Future<Object?>? cameraMethodCallSuccessHandler(MethodCall methodCall) async {
|
||||
switch (methodCall.method) {
|
||||
case "isKeepScreenOn":
|
||||
return true;
|
||||
|
@ -22,7 +22,7 @@ void main() {
|
|||
setUp(() {
|
||||
service = const CaffeineService();
|
||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(methodChannel, methodCallSuccessHandler);
|
||||
.setMockMethodCallHandler(methodChannel, cameraMethodCallSuccessHandler);
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
|
|
|
@ -22,10 +22,6 @@ void main() {
|
|||
service = UserPreferencesService(sharedPreferences);
|
||||
});
|
||||
|
||||
tearDown(() {
|
||||
reset(sharedPreferences);
|
||||
});
|
||||
|
||||
group('migrateOldKeys()', () {
|
||||
test('no legacy keys', () async {
|
||||
when(() => sharedPreferences.getInt("curIsoIndex")).thenReturn(null);
|
||||
|
|
Loading…
Reference in a new issue