Browse Source

[shared_preferences] Update license

merge-requests/11/head
Vitaliy Zarubin 2 years ago
parent
commit
360ad40f18
  1. 2
      packages/shared_preferences/shared_preferences_aurora/.gitignore
  2. 6
      packages/shared_preferences/shared_preferences_aurora/analysis_options.yaml
  3. 1
      packages/shared_preferences/shared_preferences_aurora/example/.gitignore
  4. 31
      packages/shared_preferences/shared_preferences_aurora/example/analysis_options.yaml
  5. 3
      packages/shared_preferences/shared_preferences_aurora/example/aurora/CMakeLists.txt
  6. 4
      packages/shared_preferences/shared_preferences_aurora/example/aurora/main.cpp
  7. 4
      packages/shared_preferences/shared_preferences_aurora/example/lib/main.dart
  8. 338
      packages/shared_preferences/shared_preferences_aurora/example/pubspec.lock
  9. 3
      packages/shared_preferences/shared_preferences_aurora/example/pubspec.yaml
  10. 27
      packages/shared_preferences/shared_preferences_aurora/example/test/widget_test.dart
  11. 4
      packages/shared_preferences/shared_preferences_aurora/lib/shared_preferences_aurora.dart
  12. 4
      packages/shared_preferences/shared_preferences_aurora/lib/shared_preferences_aurora_api.dart
  13. 9
      packages/shared_preferences/shared_preferences_aurora/pubspec.yaml

2
packages/shared_preferences/shared_preferences_aurora/.gitignore vendored

@ -28,5 +28,3 @@ migrate_working_dir/
.dart_tool/
.packages
build/
.metadata
run.sh

6
packages/shared_preferences/shared_preferences_aurora/analysis_options.yaml

@ -1,4 +1,4 @@
include: package:flutter_lints/flutter.yaml
# Copyright (c) 2023. Open Mobile Platform LLC.
# License: Proprietary.
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
include: package:flutter_lints/flutter.yaml

1
packages/shared_preferences/shared_preferences_aurora/example/.gitignore vendored

@ -42,4 +42,3 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
pubspec.lock

31
packages/shared_preferences/shared_preferences_aurora/example/analysis_options.yaml

@ -1,29 +1,4 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# Copyright (c) 2023. Open Mobile Platform LLC.
# License: Proprietary.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
include: package:flutter_lints/flutter.yaml

3
packages/shared_preferences/shared_preferences_aurora/example/aurora/CMakeLists.txt

@ -1,3 +1,6 @@
# Copyright (c) 2023. Open Mobile Platform LLC.
# License: Proprietary.
cmake_minimum_required(VERSION 3.10)
project(com.example.shared_preferences_aurora_example LANGUAGES CXX)

4
packages/shared_preferences/shared_preferences_aurora/example/aurora/main.cpp

@ -1,3 +1,7 @@
/*
* Copyright (c) 2023. Open Mobile Platform LLC.
* License: Proprietary.
*/
#include <flutter/application.h>
#include "generated_plugin_registrant.h"

4
packages/shared_preferences/shared_preferences_aurora/example/lib/main.dart

@ -1,3 +1,7 @@
/*
* Copyright (c) 2023. Open Mobile Platform LLC.
* License: Proprietary.
*/
import 'package:flutter/material.dart';
import 'dart:async';

338
packages/shared_preferences/shared_preferences_aurora/example/pubspec.lock

@ -0,0 +1,338 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.9.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.16.0"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
ffi:
dependency: transitive
description:
name: ffi
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.4"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_lints:
dependency: "direct dev"
description:
name: flutter_lints
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
lints:
dependency: transitive
description:
name: lints
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.12"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.5"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.2"
path_provider:
dependency: transitive
description:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.15"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.27"
path_provider_aurora:
dependency: transitive
description:
path: "packages/path_provider/path_provider_aurora"
ref: dev
resolved-ref: "7120c2554963ce9e7600730b2657b387d3a86d9c"
url: "git@os-git.omprussia.ru:non-oss/flutter/flutter-plugins.git"
source: git
version: "0.0.1"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.3"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.11"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.6"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.7"
platform:
dependency: transitive
description:
name: platform
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.0"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
process:
dependency: transitive
description:
name: process
url: "https://pub.dartlang.org"
source: hosted
version: "4.2.4"
shared_preferences:
dependency: "direct main"
description:
name: shared_preferences
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
shared_preferences_android:
dependency: transitive
description:
name: shared_preferences_android
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
shared_preferences_aurora:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.0.1"
shared_preferences_foundation:
dependency: transitive
description:
name: shared_preferences_foundation
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.2"
shared_preferences_linux:
dependency: transitive
description:
name: shared_preferences_linux
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
shared_preferences_platform_interface:
dependency: transitive
description:
name: shared_preferences_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
shared_preferences_web:
dependency: transitive
description:
name: shared_preferences_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
shared_preferences_windows:
dependency: transitive
description:
name: shared_preferences_windows
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
sky_engine:
dependency: transitive
description: flutter
source: sdk
version: "0.0.99"
source_span:
dependency: transitive
description:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.0"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.12"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
win32:
dependency: transitive
description:
name: win32
url: "https://pub.dartlang.org"
source: hosted
version: "2.6.1"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
xdga_directories:
dependency: transitive
description:
path: "packages/xdga_directories"
ref: dev
resolved-ref: "7120c2554963ce9e7600730b2657b387d3a86d9c"
url: "git@os-git.omprussia.ru:non-oss/flutter/flutter-plugins.git"
source: git
version: "0.0.1"
sdks:
dart: ">=2.18.6 <3.0.0"
flutter: ">=3.3.0"

3
packages/shared_preferences/shared_preferences_aurora/example/pubspec.yaml

@ -1,3 +1,6 @@
# Copyright (c) 2023. Open Mobile Platform LLC.
# License: Proprietary.
name: shared_preferences_aurora_example
description: Demonstrates how to use the shared_preferences_aurora plugin.

27
packages/shared_preferences/shared_preferences_aurora/example/test/widget_test.dart

@ -1,27 +0,0 @@
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:shared_preferences_aurora_example/main.dart';
void main() {
testWidgets('Verify Platform version', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
(Widget widget) => widget is Text &&
widget.data!.startsWith('Running on:'),
),
findsOneWidget,
);
});
}

4
packages/shared_preferences/shared_preferences_aurora/lib/shared_preferences_aurora.dart

@ -1,3 +1,7 @@
/*
* Copyright (c) 2023. Open Mobile Platform LLC.
* License: Proprietary.
*/
import 'package:flutter/services.dart';
import 'package:path_provider_aurora/path_provider_aurora.dart';
import 'package:shared_preferences_aurora/shared_preferences_aurora_api.dart';

4
packages/shared_preferences/shared_preferences_aurora/lib/shared_preferences_aurora_api.dart

@ -1,3 +1,7 @@
/*
* Copyright (c) 2023. Open Mobile Platform LLC.
* License: Proprietary.
*/
import 'dart:convert';
import 'dart:io';
import 'package:path/path.dart' as p;

9
packages/shared_preferences/shared_preferences_aurora/pubspec.yaml

@ -1,7 +1,9 @@
# Copyright (c) 2023. Open Mobile Platform LLC.
# License: Proprietary.
name: shared_preferences_aurora
description: The Aurora OS implementation of shared_preferences.
version: 0.0.1
homepage:
environment:
sdk: '>=2.18.6 <3.0.0'
@ -16,7 +18,10 @@ dependencies:
path: ^1.8.2
path_provider: ^2.0.14
path_provider_aurora:
path: ../../path_provider/path_provider_aurora
git:
url: git@os-git.omprussia.ru:non-oss/flutter/flutter-plugins.git
ref: dev
path: packages/path_provider/path_provider_aurora
dev_dependencies:
flutter_test:

Loading…
Cancel
Save