Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f77a02

Browse files
authored
Initial FIAM scaffold (firebase#106)
1 parent 7dc45ed commit 1f77a02

File tree

28 files changed

+524
-0
lines changed

28 files changed

+524
-0
lines changed

inappmessaging/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild

inappmessaging/app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

inappmessaging/app/build.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
5+
android {
6+
compileSdkVersion 28
7+
8+
defaultConfig {
9+
applicationId "com.google.firebase.example.inappmessaging"
10+
minSdkVersion 16
11+
targetSdkVersion 28
12+
versionCode 1
13+
versionName "1.0"
14+
15+
multiDexEnabled true
16+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
17+
}
18+
buildTypes {
19+
release {
20+
minifyEnabled false
21+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
22+
}
23+
}
24+
}
25+
26+
dependencies {
27+
implementation "com.android.support:multidex:1.0.3"
28+
implementation "com.android.support:support-v4:28.0.0"
29+
implementation "com.android.support:appcompat-v7:28.0.0"
30+
implementation "com.android.support:customtabs:28.0.0"
31+
implementation "com.google.firebase:firebase-inappmessaging-display:17.1.1"
32+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.31"
33+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"project_info": {
3+
"project_id": "mockproject-1234",
4+
"project_number": "123456789000",
5+
"name": "FirebaseQuickstarts",
6+
"firebase_url": "https://mockproject-1234.firebaseio.com"
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:123456789000:android:f1bf012572b04065",
12+
"client_id": "android:com.google.firebase.example.inappmessaging",
13+
"client_type": 1,
14+
"android_client_info": {
15+
"package_name": "com.google.firebase.example.inappmessaging",
16+
"certificate_hash": []
17+
}
18+
},
19+
"oauth_client": [
20+
{
21+
"client_id": "123456789000-hjugbg6ud799v4c49dim8ce2usclthar.apps.googleusercontent.com",
22+
"client_type": 1,
23+
"android_info": {
24+
"package_name": "com.google.firebase.example.inappmessaging",
25+
"certificate_hash": "4C20644DE36B8F89D25650C7D1FF9FBAE650FDF7"
26+
}
27+
},
28+
{
29+
"client_id": "123456789000-e4uksm38sne0bqrj6uvkbo4oiu4hvigl.apps.googleusercontent.com",
30+
"client_type": 3
31+
}
32+
],
33+
"api_key": [
34+
{
35+
"current_key": "AIzbSzCn1N6LWIe6wthYyrgUUSAlUsdqMb-wvTo"
36+
}
37+
],
38+
"services": {
39+
"analytics_service": {
40+
"status": 1
41+
},
42+
"cloud_messaging_service": {
43+
"status": 2,
44+
"apns_config": []
45+
},
46+
"appinvite_service": {
47+
"status": 2,
48+
"other_platform_oauth_client": [
49+
{
50+
"client_id": "123456789000-e4uksm38sne0bqrj6uvkbo4oiu4hvigl.apps.googleusercontent.com",
51+
"client_type": 3
52+
}
53+
]
54+
},
55+
"google_signin_service": {
56+
"status": 2
57+
},
58+
"ads_service": {
59+
"status": 2,
60+
"test_banner_ad_unit_id": "ca-app-pub-3940256099942544/6300978111",
61+
"test_interstitial_ad_unit_id": "ca-app-pub-3940256099942544/1033173712"
62+
}
63+
}
64+
}
65+
],
66+
"client_info": [],
67+
"ARTIFACT_VERSION": "1"
68+
}

inappmessaging/app/lint.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<lint>
3+
<issue id="InvalidPackage">
4+
<ignore path="*/io.grpc/grpc-core/*"/>
5+
</issue>
6+
</lint>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/ianbarber/Library/Android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="devrel.firebase.google.com.firebaseoptions">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:icon="@mipmap/ic_launcher"
8+
android:label="@string/app_name"
9+
android:supportsRtl="true"
10+
android:theme="@style/AppTheme">
11+
<activity android:name="com.google.firebase.example.inappmessaging.MainActivity">
12+
<intent-filter>
13+
<action android:name="android.intent.action.MAIN" />
14+
15+
<category android:name="android.intent.category.LAUNCHER" />
16+
</intent-filter>
17+
</activity>
18+
<activity android:name="com.google.firebase.example.inappmessaging.kotlin.MainActivity" />
19+
</application>
20+
21+
</manifest>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.google.firebase.example.inappmessaging;
2+
3+
import android.support.v7.app.AppCompatActivity;
4+
5+
public class MainActivity extends AppCompatActivity {
6+
7+
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.google.firebase.example.inappmessaging.kotlin
2+
3+
import android.support.v7.app.AppCompatActivity
4+
5+
class MainActivity : AppCompatActivity() {
6+
7+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:id="@+id/activity_main"
6+
android:layout_width="match_parent"
7+
android:layout_height="match_parent"
8+
android:paddingLeft="@dimen/activity_horizontal_margin"
9+
android:paddingRight="@dimen/activity_horizontal_margin"
10+
android:paddingTop="@dimen/activity_vertical_margin"
11+
android:paddingBottom="@dimen/activity_vertical_margin"
12+
tools:context=".MainActivity">
13+
14+
<TextView
15+
android:layout_width="wrap_content"
16+
android:layout_height="wrap_content"
17+
android:text="Hello World!"/>
18+
</RelativeLayout>

0 commit comments

Comments
 (0)