Skip to content

Commit 2947459

Browse files
committed
Added demo project, fixed issues. Backup code stable
1 parent f42bfc7 commit 2947459

File tree

72 files changed

+3518
-5
lines changed

Some content is hidden

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

72 files changed

+3518
-5
lines changed

Sample/.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
5+
# Files for the ART/Dalvik VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# Generated files
12+
bin/
13+
gen/
14+
out/
15+
16+
# Gradle files
17+
.gradle/
18+
build/
19+
20+
# Local configuration file (sdk path, etc)
21+
local.properties
22+
23+
# Proguard folder generated by Eclipse
24+
proguard/
25+
26+
# Log Files
27+
*.log
28+
29+
# Android Studio Navigation editor temp files
30+
.navigation/
31+
32+
# Android Studio captures folder
33+
captures/
34+
35+
# Intellij
36+
*.iml
37+
.idea/workspace.xml
38+
.idea/tasks.xml
39+
.idea/gradle.xml
40+
.idea/dictionaries
41+
.idea/libraries
42+
43+
# Keystore files
44+
*.jks
45+
46+
# External native build folder generated in Android Studio 2.2 and later
47+
.externalNativeBuild
48+
49+
# Google Services (e.g. APIs or Firebase)
50+
google-services.json
51+
52+
# Freeline
53+
freeline.py
54+
freeline/
55+
freeline_project_description.json

Sample/.idea/compiler.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sample/.idea/misc.xml

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sample/.idea/modules.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sample/.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sample/app/.gitignore

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

Sample/app/build.gradle

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
4+
android {
5+
compileSdkVersion 25
6+
buildToolsVersion "25.0.2"
7+
defaultConfig {
8+
applicationId "com.takeoffandroid.recyclerviewtemplate"
9+
minSdkVersion 15
10+
targetSdkVersion 25
11+
versionCode 1
12+
versionName "1.0"
13+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
14+
}
15+
buildTypes {
16+
release {
17+
minifyEnabled false
18+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
19+
}
20+
}
21+
}
22+
23+
24+
ext {
25+
BUTTERKNIFE_VERSION = '8.5.1'
26+
}
27+
28+
29+
30+
dependencies {
31+
compile fileTree(dir: 'libs', include: ['*.jar'])
32+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
33+
exclude group: 'com.android.support', module: 'support-annotations'
34+
})
35+
36+
37+
compile 'com.android.support.constraint:constraint-layout:1.0.1'
38+
testCompile 'junit:junit:4.12'
39+
40+
compile 'com.android.support:appcompat-v7:25.3.1'
41+
compile 'com.android.support:recyclerview-v7:25.3.1'
42+
compile 'com.android.support:cardview-v7:25.3.1'
43+
compile 'com.android.support:design:25.3.1'
44+
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
45+
compile 'com.google.android.gms:play-services-maps:10.2.6'
46+
47+
48+
compile "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
49+
annotationProcessor "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"
50+
51+
}
52+
repositories {
53+
mavenCentral()
54+
}

Sample/app/proguard-rules.pro

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/f22labs/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+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source file name.
25+
#-renamesourcefileattribute SourceFile
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.takeoffandroid.recyclerviewtemplate;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.*;
11+
12+
/**
13+
* Instrumentation test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest {
19+
@Test
20+
public void useAppContext() throws Exception {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getTargetContext();
23+
24+
assertEquals("com.takeoffandroid.androidstuidotemplatetester", appContext.getPackageName());
25+
}
26+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.takeoffandroid.recyclerviewtemplate">
4+
5+
<!--
6+
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
7+
Google Maps Android API v2, but you must specify either coarse or fine
8+
location permissions for the 'MyLocation' functionality.
9+
-->
10+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
11+
12+
<application
13+
android:allowBackup="true"
14+
android:icon="@mipmap/ic_launcher"
15+
android:label="@string/app_name"
16+
android:roundIcon="@mipmap/ic_launcher_round"
17+
android:supportsRtl="true">
18+
<activity
19+
android:name=".activity.MainActivity"
20+
android:label="MainActivity"
21+
android:theme="@style/AppTheme">
22+
<intent-filter>
23+
<action android:name="android.intent.action.MAIN" />
24+
25+
<category android:name="android.intent.category.LAUNCHER" />
26+
</intent-filter>
27+
</activity>
28+
<activity
29+
android:name=".activity.SimpleListAcivity"
30+
android:label="@string/title_activity_main"
31+
android:theme="@style/AppTheme" />
32+
<activity
33+
android:name=".activity.SimpleListAllActivity"
34+
android:label="@string/title_activity_simple_list_all"
35+
android:theme="@style/AppTheme.Template.Base" />
36+
<activity
37+
android:name=".activity.SimpleListAllCardsActivity"
38+
android:label="@string/title_activity_simple_list_all_cards"
39+
android:theme="@style/AppTheme.Template.Base" />
40+
<!--
41+
The API key for Google Maps-based APIs is defined as a string resource.
42+
(See the file "res/values/google_maps_api.xml").
43+
Note that the API key is linked to the encryption key used to sign the APK.
44+
You need a different API key for each encryption key, including the release key that is used to
45+
sign the APK for publishing.
46+
You can define the keys for the debug and release targets in src/debug/ and src/release/.
47+
-->
48+
49+
<activity
50+
android:name=".activity.SimpleGridAllCardsActivity"
51+
android:label="@string/title_activity_simple_grid_all_cards"
52+
android:theme="@style/AppTheme.Template.Base" />
53+
<activity
54+
android:name=".activity.SimpleGridActivity"
55+
android:label="@string/title_activity_simple_grid"
56+
android:theme="@style/AppTheme" />
57+
<activity
58+
android:name=".activity.SimpleGridAllActivity"
59+
android:label="@string/title_activity_simple_grid_all"
60+
android:theme="@style/AppTheme.Template.Base"></activity>
61+
</application>
62+
63+
</manifest>

0 commit comments

Comments
 (0)