Skip to content

Commit b9a099b

Browse files
committed
first commit
0 parents  commit b9a099b

File tree

68 files changed

+2713
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2713
-0
lines changed

.gitignore

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<<<<<<< HEAD
2+
# See https://www.dartlang.org/guides/libraries/private-files
3+
4+
# Files and directories created by pub
5+
.dart_tool/
6+
.packages
7+
build/
8+
# If you're building an application, you may want to check-in your pubspec.lock
9+
pubspec.lock
10+
11+
# Directory created by dartdoc
12+
# If you don't generate documentation locally you can remove this line.
13+
doc/api/
14+
15+
# Avoid committing generated Javascript files:
16+
*.dart.js
17+
*.info.json # Produced by the --dump-info flag.
18+
*.js # When generated by dart2js. Don't specify *.js if your
19+
# project includes source files written in JavaScript.
20+
*.js_
21+
*.js.deps
22+
*.js.map
23+
=======
24+
# Miscellaneous
25+
*.class
26+
*.log
27+
*.pyc
28+
*.swp
29+
.DS_Store
30+
.atom/
31+
.buildlog/
32+
.history
33+
.svn/
34+
35+
# IntelliJ related
36+
*.iml
37+
*.ipr
38+
*.iws
39+
.idea/
40+
41+
# The .vscode folder contains launch configuration and tasks you configure in
42+
# VS Code which you may wish to be included in version control, so this line
43+
# is commented out by default.
44+
#.vscode/
45+
46+
# Flutter/Dart/Pub related
47+
**/doc/api/
48+
.dart_tool/
49+
.flutter-plugins
50+
.flutter-plugins-dependencies
51+
.packages
52+
.pub-cache/
53+
.pub/
54+
/build/
55+
56+
# Web related
57+
lib/generated_plugin_registrant.dart
58+
59+
# Symbolication related
60+
app.*.symbols
61+
62+
# Obfuscation related
63+
app.*.map.json
64+
65+
# Exceptions to above rules.
66+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
67+
>>>>>>> first commit

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 1ad9baa8b99a2897c20f9e6e54d3b9b359ade314
8+
channel: stable
9+
10+
project_type: app

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# cf_view
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13+
14+
For help getting started with Flutter, view our
15+
[online documentation](https://flutter.dev/docs), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.
17+
# Codeforces-App

android/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java

android/app/build.gradle

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
28+
android {
29+
compileSdkVersion 28
30+
31+
sourceSets {
32+
main.java.srcDirs += 'src/main/kotlin'
33+
}
34+
35+
lintOptions {
36+
disable 'InvalidPackage'
37+
}
38+
39+
defaultConfig {
40+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41+
applicationId "com.example.cf_view"
42+
minSdkVersion 16
43+
targetSdkVersion 28
44+
versionCode flutterVersionCode.toInteger()
45+
versionName flutterVersionName
46+
}
47+
48+
buildTypes {
49+
release {
50+
// TODO: Add your own signing config for the release build.
51+
// Signing with the debug keys for now, so `flutter run --release` works.
52+
signingConfig signingConfigs.debug
53+
}
54+
}
55+
}
56+
57+
flutter {
58+
source '../..'
59+
}
60+
61+
dependencies {
62+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.example.cf_view">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.cf_view">
2+
<!--
3+
io.flutter.app.FlutterApplication is an android.app.Application that
4+
calls FlutterMain.startInitialization(this); in its onCreate method.
5+
In most cases you can leave this as-is, but you if you want to provide
6+
additional functionality it is fine to subclass or reimplement
7+
FlutterApplication and put your custom class here.
8+
-->
9+
<uses-permission android:name="android.permission.INTERNET" />
10+
11+
<!-- things for alarm management -->
12+
13+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
14+
<uses-permission android:name="android.permission.WAKE_LOCK" />
15+
<uses-permission android:name="android.permission.SET_ALARM"/>
16+
<uses-permission android:name="android.permission.VIBRATE" />
17+
18+
<!-- things for alarm management -->
19+
20+
<application android:name="io.flutter.app.FlutterApplication" android:label="Codeforces" android:icon="@mipmap/ic_launcher">
21+
<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
22+
<!--
23+
Specifies an Android theme to apply to this Activity as soon as
24+
the Android process has started. This theme is visible to the user
25+
while the Flutter UI initializes. After that, this theme continues
26+
to determine the Window background behind the Flutter UI.
27+
-->
28+
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" />
29+
<!--
30+
Displays an Android View that continues showing the launch screen
31+
Drawable until Flutter paints its first frame, then this splash
32+
screen fades out. A splash screen is useful to avoid any visual
33+
gap between the end of Android's launch screen and the painting of
34+
Flutter's first frame.
35+
-->
36+
<meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/launch_background" />
37+
<intent-filter>
38+
<action android:name="android.intent.action.MAIN" />
39+
<category android:name="android.intent.category.LAUNCHER" />
40+
</intent-filter>
41+
</activity>
42+
<!--
43+
Don't delete the meta-data below.
44+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java
45+
-->
46+
<meta-data android:name="flutterEmbedding" android:value="2" />
47+
48+
<!-- things for alarm management -->
49+
50+
<service
51+
android:name="io.flutter.plugins.androidalarmmanager.AlarmService"
52+
android:permission="android.permission.BIND_JOB_SERVICE"
53+
android:exported="false"
54+
/>
55+
56+
<receiver
57+
android:name="io.flutter.plugins.androidalarmmanager.AlarmBroadcastReceiver"
58+
android:exported="false"
59+
/>
60+
61+
<receiver
62+
android:name="io.flutter.plugins.androidalarmmanager.RebootBroadcastReceiver"
63+
android:enabled="false">
64+
<intent-filter>
65+
<action android:name="android.intent.action.BOOT_COMPLETED">
66+
</action>
67+
</intent-filter>
68+
</receiver>
69+
70+
71+
72+
<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
73+
<intent-filter>
74+
<action android:name="android.intent.action.BOOT_COMPLETED"></action>
75+
</intent-filter>
76+
</receiver>
77+
78+
<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
79+
80+
<!-- things for alarm management -->
81+
82+
</application>
83+
84+
</manifest>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.example.cf_view
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}
544 Bytes
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="@android:color/white" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>

0 commit comments

Comments
 (0)