Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangums committed Mar 7, 2022
0 parents commit 0d86806
Show file tree
Hide file tree
Showing 514 changed files with 26,628 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

lib/utils/keys.dart
10 changes: 10 additions & 0 deletions .metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: b1395592de68cc8ac4522094ae59956dd21a91db
channel: stable

project_type: app
3 changes: 3 additions & 0 deletions .netrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
machine api.mapbox.com
login mapbox
password sk.eyJ1Ijoic3ludGF4bHRkIiwiYSI6ImNrcjY2ZWZ0bTBiMGMyd2xwN2duajdodXQifQ.4JRUCSgvaTK2lssnMvRzRA
113 changes: 113 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# giraffe_spotter

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

##Beware

-Beware of 2 model classes after running this flutter command:

```flutter
flutter pub build_runner
```

Files affected are item.g.dart and thumbnail.g.dart, so replace them with the code below :).

##item.g should be:

```
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'Item.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Item _$ItemFromJson(Map<String, dynamic> json) {
try{
final data = Item(
title: Description.fromJson(json['title'] as Map<String, dynamic>),
link: Description.fromJson(json['link'] as Map<String, dynamic>),
comments: Description.fromJson(json['comments'] as Map<String, dynamic>),
creator: DecodedJson.fromJson(json['dc\u0024creator'] as Map<String, dynamic>),
pubDate: Description.fromJson(json['pubDate'] as Map<String, dynamic>),
category: DecodedJson.fromJson(json['category'] as Map<String, dynamic>),
guid: Description.fromJson(json['guid'] as Map<String, dynamic>),
description: DecodedJson.fromJson(json['description'] as Map<String, dynamic>),
encoded: DecodedJson.fromJson(json['content\u0024encoded'] as Map<String, dynamic>),
);
return data;
} catch(_){
final data = Item(
title: Description.fromJson(json['title'] as Map<String, dynamic>),
link: Description.fromJson(json['link'] as Map<String, dynamic>),
comments: Description.fromJson(json['comments'] as Map<String, dynamic>),
creator: DecodedJson.fromJson(json['dc\u0024creator'] as Map<String, dynamic>),
pubDate: Description.fromJson(json['pubDate'] as Map<String, dynamic>),
category: DecodedJson.fromJson(json['category'][0] as Map<String, dynamic>),
guid: Description.fromJson(json['guid'] as Map<String, dynamic>),
description:
DecodedJson.fromJson(json['description'] as Map<String, dynamic>),
encoded: DecodedJson.fromJson(json['content\u0024encoded'] as Map<String, dynamic>),
);
return data;
}
}
Map<String, dynamic> _$ItemToJson(Item instance) => <String, dynamic>{
'title': instance.title,
'link': instance.link,
'comments': instance.comments,
'dc\u0024creator': instance.creator,
'pubDate': instance.pubDate,
'category': instance.category,
'guid': instance.guid,
'description': instance.description,
'content\u0024encoded': instance.encoded,
};
```

##thumbnail.g.dart

```
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'ThumbNail.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
ThumbNail _$ThumbNailFromJson(Map<String, dynamic> json) {
return ThumbNail(
json['title'] as String,
json['thumbnail_url'] as String,
);
}
Map<String, dynamic> _$ThumbNailToJson(ThumbNail instance) => <String, dynamic>{
'title': instance.title,
'thumbnail_url': instance.thumbnailUrl,
};
```

#Addational files
Add this files in your vim .zshrc

```
machine api.mapbox.com
login mapbox
password sk.eyJ1Ijoic3ludGF4bHRkIiwiYSI6ImNrcjY2ZWZ0bTBiMGMyd2xwN2duajdodXQifQ.4JRUCSgvaTK2lssnMvRzRA
```
11 changes: 11 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
74 changes: 74 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('app/key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 31
ndkVersion "23.0.7530507"
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "ax.synt.giraffe_spotter"
minSdkVersion 24
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}

flutter {
source '../..'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.exifinterface:exifinterface:1.3.3"
implementation platform('com.google.firebase:firebase-bom:29.0.3')
implementation 'com.google.firebase:firebase-analytics'
}
55 changes: 55 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"project_info": {
"project_number": "568065724442",
"project_id": "giraffespotter-546fc",
"storage_bucket": "giraffespotter-546fc.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:568065724442:android:8bece7988616f6d31701a3",
"android_client_info": {
"package_name": "ax.synt.giraffe_spotter"
}
},
"oauth_client": [
{
"client_id": "568065724442-si5vk38ns434orsihe23r7b2qb1o27gd.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "ax.synt.giraffe_spotter",
"certificate_hash": "27034b6919b8e7e4a1d633ed5bfc692ce42ddb12"
}
},
{
"client_id": "568065724442-29knpcjidvotnn8bsbtbupcn2emme6ih.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAnX10VazrXJpqRgnCJDRBLSrCq_pFGEwE"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "568065724442-29knpcjidvotnn8bsbtbupcn2emme6ih.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "568065724442-3v8e5kacef96e17r5i33itnputk9pbq4.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "ax.synt.giraffeSpotter",
"app_store_id": "1573260404"
}
}
]
}
}
}
],
"configuration_version": "1"
}
7 changes: 7 additions & 0 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ax.synt.giraffe_spotter">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
51 changes: 51 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ax.synt.giraffe_spotter">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
<application
android:label="Giraffe Spotter"
android:icon="@mipmap/ic_launcher">
<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"
android:exported="true">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>

<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
Binary file added android/app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0d86806

Please sign in to comment.