Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Commit

Permalink
Initial Stable Push
Browse files Browse the repository at this point in the history
  • Loading branch information
chankruze committed Nov 19, 2018
0 parents commit c85410a
Show file tree
Hide file tree
Showing 205 changed files with 3,601 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.gradle
.DS_Store
.idea
build/
local.properties
localhost/
obj/
*.iml
Gemfile.lock
_site/
141 changes: 141 additions & 0 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
104 changes: 104 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
apply plugin: 'com.android.application'

android {
//the compression of webp file during build causes problem with FileDescriptor in ContentProvider.
aaptOptions {
noCompress "webp"
}
signingConfigs {
signing_config {
keyAlias 'abc'
keyPassword '123'
}
}
compileSdkVersion 28
defaultConfig {
applicationId "com.geekofia.whatsappstickers"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
def contentProviderAuthority = applicationId + ".stickercontentprovider"
// Creates a placeholder property to use in the manifest.
manifestPlaceholders =
[contentProviderAuthority: contentProviderAuthority]
// Adds a new field for the authority to the BuildConfig class.
buildConfigField("String",
"CONTENT_PROVIDER_AUTHORITY",
"\"${contentProviderAuthority}\"")
}
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

task checkDebug {
doLast {
println("checkDebug")
if (android.defaultConfig.applicationId.startsWith("com.whatsapp")) {
throw new GradleException("applicationId in defaultConfig cannot start with com.whatsapp, please change your applicationId in app/build.gradle");
}
checkApplicationIdInDebug()
}
}

private void checkApplicationIdInDebug() {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
def ignoreApplicationIdCheck = properties.getProperty('ignoreApplicationIdCheck')
if (ignoreApplicationIdCheck == null) {
if (android.defaultConfig.applicationId.equals("com.example.samplestickerapp")) {
throw new GradleException("Your applicationId is currently com.example.samplestickerapp, please change your applicationId to a different string in app/build.gradle in line 16");
}
} else {
println("application id check ignored")
}
}


task checkRelease {
doLast {
println("checkRelease")
if (android.defaultConfig.applicationId.startsWith("com.example")) {
throw new GradleException("applicationId in defaultConfig cannot start with com.example, please change your applicationId in app/build.gradle");
}
}
}

tasks.whenTaskAdded { task ->
println(task.name)
if (task.name.contains("assembleDebug")) {
task.dependsOn checkDebug
}
if (task.name.contains("assembleRelease")) {
task.dependsOn checkRelease
}
}


dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.facebook.fresco:fresco:1.10.0'
implementation 'com.facebook.fresco:webpsupport:1.10.0'
implementation 'com.facebook.fresco:animated-webp:1.10.0'
implementation 'com.facebook.fresco:webpsupport:1.10.0'
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
49 changes: 49 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.geekofia.whatsappstickers">

<application
android:allowBackup="false"
android:fullBackupContent="false"
android:icon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name="com.geekofia.whatsappstickers.EntryActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.geekofia.whatsappstickers.StickerPackListActivity"
android:label="@string/title_activity_sticker_packs_list" />
<activity
android:name="com.geekofia.whatsappstickers.StickerPackDetailsActivity"
android:parentActivityName="com.geekofia.whatsappstickers.StickerPackListActivity"
tools:ignore="UnusedAttribute">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.geekofia.whatsappstickers.StickerPackListActivity" />
</activity>
<activity
android:name="com.geekofia.whatsappstickers.StickerPackInfoActivity"
android:label="@string/title_activity_sticker_pack_info"
android:parentActivityName="com.geekofia.whatsappstickers.StickerPackDetailsActivity"
tools:ignore="UnusedAttribute">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.geekofia.whatsappstickers.StickerPackDetailsActivity" />
</activity>

<provider
android:name="com.geekofia.whatsappstickers.StickerContentProvider"
android:authorities="${contentProviderAuthority}"
android:enabled="true"
android:exported="true"
android:readPermission="com.whatsapp.sticker.READ" />
</application>
</manifest>
Binary file added app/src/main/assets/animals/01_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/02_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/03_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/04_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/05_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/06_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/07_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/08_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/09_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/10_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/11_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/12_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/13_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/14_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/15_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/16_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/17_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/18_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/19_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/20_animals.webp
Binary file not shown.
Binary file added app/src/main/assets/animals/tray_Animals.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 c85410a

Please sign in to comment.