Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bf23f75

Browse files
bug fixed
1 parent a0b883e commit bf23f75

31 files changed

+767
-20
lines changed

‎android/app/build.gradle

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,19 @@ if (flutterVersionName == null) {
2222
}
2323

2424
apply plugin: 'com.android.application'
25+
apply plugin: 'com.google.gms.google-services'
2526
apply plugin: 'kotlin-android'
2627
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2728

2829
android {
2930
compileSdkVersion 29
3031

32+
def keystorePropertiesFile = rootProject.file("keystore.properties")
33+
def keystoreProperties = new Properties()
34+
if (keystorePropertiesFile.exists()) {
35+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
36+
}
37+
3138
sourceSets {
3239
main.java.srcDirs += 'src/main/kotlin'
3340
}
@@ -38,18 +45,27 @@ android {
3845

3946
defaultConfig {
4047
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41-
applicationId "com.example.hashnode"
42-
minSdkVersion 19
48+
applicationId "com.acctgen1.hashnode"
49+
minSdkVersion 21
4350
targetSdkVersion 29
4451
versionCode flutterVersionCode.toInteger()
4552
versionName flutterVersionName
4653
}
4754

55+
signingConfigs {
56+
release {
57+
keyAlias keystoreProperties['keyAlias']
58+
keyPassword keystoreProperties['keyPassword']
59+
storeFile file(keystoreProperties['storeFile'])
60+
storePassword keystoreProperties['storePassword']
61+
}
62+
}
63+
4864
buildTypes {
4965
release {
5066
// TODO: Add your own signing config for the release build.
5167
// Signing with the debug keys for now, so `flutter run --release` works.
52-
signingConfig signingConfigs.debug
68+
signingConfig signingConfigs.release
5369
}
5470
}
5571
}
@@ -60,4 +76,8 @@ flutter {
6076

6177
dependencies {
6278
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
79+
implementation platform('com.google.firebase:firebase-bom:26.2.0')
80+
implementation 'com.google.firebase:firebase-analytics'
81+
implementation 'com.google.firebase:firebase-core:17.0.0'
82+
implementation 'com.google.firebase:firebase-messaging:20.1.5'
6383
}

‎android/app/google-services.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"project_info": {
3+
"project_number": "1092153925094",
4+
"project_id": "hashnode-576ce",
5+
"storage_bucket": "hashnode-576ce.appspot.com"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:1092153925094:android:1de66ffff3d3fa159c4a27",
11+
"android_client_info": {
12+
"package_name": "com.acctgen1.hashnode"
13+
}
14+
},
15+
"oauth_client": [
16+
{
17+
"client_id": "1092153925094-9ef81r0j14jql6uiljoeflvpjo5phv2u.apps.googleusercontent.com",
18+
"client_type": 1,
19+
"android_info": {
20+
"package_name": "com.acctgen1.hashnode",
21+
"certificate_hash": "7572c5fc6600714a4863e96e5da671657a1c303b"
22+
}
23+
},
24+
{
25+
"client_id": "1092153925094-aian7qo8mgbucsmvtoapip9ck7tj89in.apps.googleusercontent.com",
26+
"client_type": 3
27+
}
28+
],
29+
"api_key": [
30+
{
31+
"current_key": "AIzaSyCJchO-TXUI879iUYGvtDvwz8p9ywoC2uE"
32+
}
33+
],
34+
"services": {
35+
"appinvite_service": {
36+
"other_platform_oauth_client": [
37+
{
38+
"client_id": "1092153925094-aian7qo8mgbucsmvtoapip9ck7tj89in.apps.googleusercontent.com",
39+
"client_type": 3
40+
}
41+
]
42+
}
43+
}
44+
}
45+
],
46+
"configuration_version": "1"
47+
}

‎android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.hashnode">
2+
package="com.acctgen1.hashnode">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

‎android/app/src/main/AndroidManifest.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.hashnode">
2+
package="com.acctgen1.hashnode">
33

44
<uses-permission android:name="android.permission.INTERNET"/>
5+
<uses-permission android:name="android.permission.VIBRATE" />
6+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
7+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
58

69
<application
710
android:label="Hashnode"
811
android:icon="@mipmap/logo">
12+
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/logo" />
13+
<meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@color/background" />
14+
915
<activity
1016
android:name=".MainActivity"
1117
android:launchMode="singleTop"
@@ -34,6 +40,10 @@
3440
<action android:name="android.intent.action.MAIN"/>
3541
<category android:name="android.intent.category.LAUNCHER"/>
3642
</intent-filter>
43+
<intent-filter>
44+
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
45+
<category android:name="android.intent.category.DEFAULT" />
46+
</intent-filter>
3747
</activity>
3848
<!-- Don't delete the meta-data below.
3949
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->

‎android/app/src/main/kotlin/com/example/hashnode/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.hashnode
1+
package com.acctgen1.hashnode
22

33
import io.flutter.embedding.android.FlutterActivity
44

‎android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.hashnode">
2+
package="com.acctgen1.hashnode">
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->

‎android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77

88
dependencies {
99
classpath 'com.android.tools.build:gradle:3.5.0'
10+
classpath 'com.google.gms:google-services:4.3.4'
1011
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1112
}
1213
}

‎android/keystore.properties

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
storePassword=hashnodeappT
2+
keyPassword=hashnodeappT
3+
keyAlias=key
4+
storeFile=C:/Users/OBOUNCE/firebase-keytool/hashnode/key.jks
5+
6+
# hashnodeappT
7+
# Samuel Adekunle
8+
# Mobile Dev
9+
# O'Bounce Technologies
10+
# Ibadan
11+
# Oyo
12+
# NG
13+
# keytool -genkey -v -keystore C:\Users\OBOUNCE\firebase-keytool\folder\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 900000 -alias key

‎assets/facebook.png

2.4 KB
Loading[フレーム]

‎assets/git.png

2.23 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /