Skip to content

Commit f41a75b

Browse files
Alexey MuryshkinAlexey Muryshkin
authored andcommitted
Initial commit
0 parents  commit f41a75b

35 files changed

+952
-0
lines changed

.gitignore

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/android,androidstudio
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=android,androidstudio
3+
4+
### Android ###
5+
# Built application files
6+
*.apk
7+
*.aar
8+
*.ap_
9+
*.aab
10+
11+
# Files for the ART/Dalvik VM
12+
*.dex
13+
14+
# Java class files
15+
*.class
16+
17+
# Generated files
18+
bin/
19+
gen/
20+
out/
21+
# Uncomment the following line in case you need and you don't have the release build type files in your app
22+
# release/
23+
24+
# Gradle files
25+
.gradle/
26+
build/
27+
28+
# Local configuration file (sdk path, etc)
29+
local.properties
30+
31+
# Proguard folder generated by Eclipse
32+
proguard/
33+
34+
# Log Files
35+
*.log
36+
37+
# Android Studio Navigation editor temp files
38+
.navigation/
39+
40+
# Android Studio captures folder
41+
captures/
42+
43+
# IntelliJ
44+
*.iml
45+
.idea/workspace.xml
46+
.idea/tasks.xml
47+
.idea/gradle.xml
48+
.idea/assetWizardSettings.xml
49+
.idea/dictionaries
50+
.idea/libraries
51+
# Android Studio 3 in .gitignore file.
52+
.idea/caches
53+
.idea/modules.xml
54+
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
55+
.idea/navEditor.xml
56+
57+
# Keystore files
58+
# Uncomment the following lines if you do not want to check your keystore files in.
59+
#*.jks
60+
#*.keystore
61+
62+
# External native build folder generated in Android Studio 2.2 and later
63+
.externalNativeBuild
64+
.cxx/
65+
66+
# Google Services (e.g. APIs or Firebase)
67+
# google-services.json
68+
69+
# Freeline
70+
freeline.py
71+
freeline/
72+
freeline_project_description.json
73+
74+
# fastlane
75+
fastlane/report.xml
76+
fastlane/Preview.html
77+
fastlane/screenshots
78+
fastlane/test_output
79+
fastlane/readme.md
80+
81+
# Version control
82+
vcs.xml
83+
84+
# lint
85+
lint/intermediates/
86+
lint/generated/
87+
lint/outputs/
88+
lint/tmp/
89+
# lint/reports/
90+
91+
### Android Patch ###
92+
gen-external-apklibs
93+
output.json
94+
95+
# Replacement of .externalNativeBuild directories introduced
96+
# with Android Studio 3.5.
97+
98+
### AndroidStudio ###
99+
# Covers files to be ignored for android development using Android Studio.
100+
101+
# Built application files
102+
103+
# Files for the ART/Dalvik VM
104+
105+
# Java class files
106+
107+
# Generated files
108+
109+
# Gradle files
110+
.gradle
111+
112+
# Signing files
113+
.signing/
114+
115+
# Local configuration file (sdk path, etc)
116+
117+
# Proguard folder generated by Eclipse
118+
119+
# Log Files
120+
121+
# Android Studio
122+
/*/build/
123+
/*/local.properties
124+
/*/out
125+
/*/*/build
126+
/*/*/production
127+
*.ipr
128+
*~
129+
*.swp
130+
131+
# Keystore files
132+
*.jks
133+
*.keystore
134+
135+
# Google Services (e.g. APIs or Firebase)
136+
# google-services.json
137+
138+
# Android Patch
139+
140+
# External native build folder generated in Android Studio 2.2 and later
141+
142+
# NDK
143+
obj/
144+
145+
# IntelliJ IDEA
146+
*.iws
147+
/out/
148+
149+
# User-specific configurations
150+
.idea/caches/
151+
.idea/libraries/
152+
.idea/shelf/
153+
.idea/.name
154+
.idea/compiler.xml
155+
.idea/copyright/profiles_settings.xml
156+
.idea/encodings.xml
157+
.idea/misc.xml
158+
.idea/scopes/scope_settings.xml
159+
.idea/vcs.xml
160+
.idea/jsLibraryMappings.xml
161+
.idea/datasources.xml
162+
.idea/dataSources.ids
163+
.idea/sqlDataSources.xml
164+
.idea/dynamic.xml
165+
.idea/uiDesigner.xml
166+
.idea/jarRepositories.xml
167+
168+
# OS-specific files
169+
.DS_Store
170+
.DS_Store?
171+
._*
172+
.Spotlight-V100
173+
.Trashes
174+
ehthumbs.db
175+
Thumbs.db
176+
177+
# Legacy Eclipse project files
178+
.classpath
179+
.project
180+
.cproject
181+
.settings/
182+
183+
# Mobile Tools for Java (J2ME)
184+
.mtj.tmp/
185+
186+
# Package Files #
187+
*.war
188+
*.ear
189+
190+
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
191+
hs_err_pid*
192+
193+
## Plugin-specific files:
194+
195+
# mpeltonen/sbt-idea plugin
196+
.idea_modules/
197+
198+
# JIRA plugin
199+
atlassian-ide-plugin.xml
200+
201+
# Mongo Explorer plugin
202+
.idea/mongoSettings.xml
203+
204+
# Crashlytics plugin (for Android Studio and IntelliJ)
205+
com_crashlytics_export_strings.xml
206+
crashlytics.properties
207+
crashlytics-build.properties
208+
fabric.properties
209+
210+
### AndroidStudio Patch ###
211+
212+
!/gradle/wrapper/gradle-wrapper.jar
213+
214+
# End of https://www.toptal.com/developers/gitignore/api/android,androidstudio

.idea/.gitignore

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

app/.gitignore

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

app/build.gradle

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'kotlin-android'
4+
}
5+
6+
android {
7+
compileSdkVersion 30
8+
buildToolsVersion "30.0.3"
9+
10+
defaultConfig {
11+
applicationId "plus.adaptive.example"
12+
minSdkVersion 16
13+
targetSdkVersion 30
14+
versionCode 1
15+
versionName "1.0"
16+
17+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18+
}
19+
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24+
}
25+
}
26+
compileOptions {
27+
sourceCompatibility JavaVersion.VERSION_1_8
28+
targetCompatibility JavaVersion.VERSION_1_8
29+
}
30+
kotlinOptions {
31+
jvmTarget = '1.8'
32+
}
33+
}
34+
35+
dependencies {
36+
37+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
38+
implementation 'androidx.core:core-ktx:1.3.2'
39+
implementation 'androidx.appcompat:appcompat:1.2.0'
40+
implementation 'com.google.android.material:material:1.3.0'
41+
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
42+
testImplementation 'junit:junit:4.+'
43+
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
44+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
45+
}

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package plus.adaptive.example
2+
3+
import androidx.test.platform.app.InstrumentationRegistry
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22+
assertEquals("plus.adaptive.example", appContext.packageName)
23+
}
24+
}

app/src/main/AndroidManifest.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
package="plus.adaptive.example">
5+
6+
<application
7+
android:allowBackup="true"
8+
android:icon="@mipmap/ic_launcher"
9+
android:label="@string/app_name"
10+
android:roundIcon="@mipmap/ic_launcher_round"
11+
android:supportsRtl="true"
12+
android:theme="@style/Theme.AdaptivePlusExample">
13+
14+
<activity android:name=".MainActivity">
15+
<intent-filter>
16+
<action android:name="android.intent.action.MAIN" />
17+
<category android:name="android.intent.category.LAUNCHER" />
18+
</intent-filter>
19+
</activity>
20+
21+
<meta-data
22+
android:name="adaptivePlusApiKey"
23+
android:value="your api key"
24+
/>
25+
</application>
26+
27+
</manifest>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package plus.adaptive.example
2+
3+
import androidx.appcompat.app.AppCompatActivity
4+
import android.os.Bundle
5+
import plus.adaptive.sdk.AdaptivePlusSDK
6+
7+
8+
class MainActivity : AppCompatActivity() {
9+
10+
override fun onCreate(savedInstanceState: Bundle?) {
11+
super.onCreate(savedInstanceState)
12+
setContentView(R.layout.activity_main)
13+
14+
AdaptivePlusSDK().start(this)
15+
}
16+
17+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:aapt="http://schemas.android.com/aapt"
3+
android:width="108dp"
4+
android:height="108dp"
5+
android:viewportWidth="108"
6+
android:viewportHeight="108">
7+
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
8+
<aapt:attr name="android:fillColor">
9+
<gradient
10+
android:endX="85.84757"
11+
android:endY="92.4963"
12+
android:startX="42.9492"
13+
android:startY="49.59793"
14+
android:type="linear">
15+
<item
16+
android:color="#44000000"
17+
android:offset="0.0" />
18+
<item
19+
android:color="#00000000"
20+
android:offset="1.0" />
21+
</gradient>
22+
</aapt:attr>
23+
</path>
24+
<path
25+
android:fillColor="#FFFFFF"
26+
android:fillType="nonZero"
27+
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
28+
android:strokeWidth="1"
29+
android:strokeColor="#00000000" />
30+
</vector>

0 commit comments

Comments
 (0)