Skip to content

Commit f3edd12

Browse files
author
DayBySay
committed
add SDK Ver 4.3.0
1 parent f8c737d commit f3edd12

File tree

78 files changed

+2152
-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.

78 files changed

+2152
-5
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ FluctSDK-Androidの[Wiki](https://github.com/voyagegroup/FluctSDK-Android/wiki)
55

66
# FluctSDK Release Note
77

8+
## v4.3.0 2017/4/4
9+
10+
### 新規追加
11+
* FluctAdBanner.ErrorTypeに、広告が取得できなかった場合の `NoAd` を追加
12+
* サンプルにKotlin言語プロジェクトを追加
13+
14+
### 変更
15+
* 細かい不具合の修正
16+
817
## v4.2.0 2017/1/24
918

1019
### 変更

SampleApp/java/.gitignore

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Built application files
2+
/*/build/
3+
build/
4+
5+
# Crashlytics configuations
6+
com_crashlytics_export_strings.xml
7+
8+
# Built application files
9+
*.apk
10+
*.ap_
11+
12+
# Files for the ART/Dalvik VM
13+
*.dex
14+
15+
# Java class files
16+
*.class
17+
18+
# Generated files
19+
bin/
20+
gen/
21+
out/
22+
23+
# Gradle files
24+
.gradle/
25+
26+
# Local configuration file (sdk path, etc)
27+
local.properties
28+
29+
# Proguard folder generated by Eclipse
30+
proguard/
31+
32+
# Log Files
33+
*.log
34+
35+
# Android Studio Navigation editor temp files
36+
.navigation/
37+
38+
# Android Studio captures folder
39+
captures/
40+
41+
# Intellij
42+
.idea/
43+
*.iml
44+
45+
# Keystore files
46+
*.jks
47+
48+
# OS Dependencies
49+
.DS_Store
50+
.DS_Store?
51+
._*
52+
.Spotlight-V100
53+
.Trashes
54+
ehthumbs.db
55+
Thumbs.db
56+
57+
# Project distribure folder
58+
distribute
59+
60+
# Release signing properties
61+
release.properties
62+
63+
# Temporary and hidden file / directory
64+
*~

SampleApp/java/app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

SampleApp/java/app/build.gradle

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 24
5+
buildToolsVersion "24.0.2"
6+
defaultConfig {
7+
applicationId "jp.fluct.sample.samplefluctsdkapp"
8+
minSdkVersion 14
9+
targetSdkVersion 24
10+
versionCode 1
11+
versionName "1.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
repositories {
24+
// FluctSDK maven repository
25+
maven {
26+
url 'https://raw.github.com/voyagegroup/FluctSDK-Android/master/m2/repository/'
27+
}
28+
29+
mavenLocal()
30+
}
31+
32+
compile fileTree(dir: 'libs', include: ['*.jar'])
33+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
34+
exclude group: 'com.android.support', module: 'support-annotations'
35+
})
36+
compile 'com.android.support:support-v4:24.2.1'
37+
compile 'com.android.support:appcompat-v7:24.2.1'
38+
testCompile 'junit:junit:4.12'
39+
40+
// FluctSDK
41+
compile 'jp.fluct:FluctSDK:4.3.0'
42+
43+
// Google play services - base
44+
compile 'com.google.android.gms:play-services-base:9.8.0'
45+
}

SampleApp/java/app/proguard-rules.pro

+17
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/Shared/AndroidStudio/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+
#}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package jp.fluct.sample.samplefluctsdkapp;
2+
3+
import org.junit.Test;
4+
import org.junit.runner.RunWith;
5+
6+
import android.content.Context;
7+
import android.support.test.InstrumentationRegistry;
8+
import android.support.test.runner.AndroidJUnit4;
9+
10+
import static org.junit.Assert.assertEquals;
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("jp.fluct.sample.samplefluctsdkapp", appContext.getPackageName());
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="jp.fluct.sample.samplefluctsdkapp">
5+
6+
<!-- FluctSDK using permission -->
7+
<uses-permission android:name="android.permission.INTERNET"/>
8+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
9+
10+
<application
11+
android:allowBackup="true"
12+
android:icon="@mipmap/ic_launcher"
13+
android:label="@string/app_name"
14+
android:supportsRtl="true"
15+
android:theme="@style/AppTheme"
16+
android:fullBackupContent="false"
17+
tools:ignore="GoogleAppIndexingWarning">
18+
19+
<!-- Required Google play services definition for using FluctSDK -->
20+
<meta-data android:name="com.google.android.gms.version"
21+
android:value="@integer/google_play_services_version"/>
22+
23+
<!-- Required Activity definition for using FluctInterstitial -->
24+
<activity
25+
android:name="jp.fluct.fluctsdk.FluctInterstitialActivity"
26+
android:configChanges="orientation|keyboardHidden|screenSize"
27+
android:theme="@android:style/Theme.Translucent.NoTitleBar"
28+
android:launchMode="singleTask">
29+
</activity>
30+
31+
<activity android:name=".MainActivity">
32+
<intent-filter>
33+
<action android:name="android.intent.action.MAIN"/>
34+
35+
<category android:name="android.intent.category.LAUNCHER"/>
36+
</intent-filter>
37+
</activity>
38+
39+
<activity android:name=".BannerActivity" />
40+
<activity android:name=".InterstitialActivity" />
41+
<activity android:name=".InfeedActivity" />
42+
43+
</application>
44+
45+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
package jp.fluct.sample.samplefluctsdkapp;
2+
3+
import android.support.v7.app.AppCompatActivity;
4+
import android.os.Bundle;
5+
6+
import jp.fluct.fluctsdk.FluctAdBanner;
7+
8+
public class BannerActivity extends AppCompatActivity {
9+
10+
@Override
11+
protected void onCreate(Bundle savedInstanceState) {
12+
super.onCreate(savedInstanceState);
13+
setContentView(R.layout.activity_banner);
14+
15+
setupBanner();
16+
}
17+
18+
private void setupBanner() {
19+
FluctAdBanner banner = (FluctAdBanner) findViewById(R.id.banner);
20+
banner.setCallbacks(new FluctAdBanner.Callbacks() {
21+
@Override
22+
public void onDisplayDone() {
23+
// 広告が表示されたときの処理を記述(任意)
24+
25+
// ...
26+
27+
}
28+
29+
@Override
30+
public void onTapped() {
31+
// 広告がタップされたときの処理を記述(任意)
32+
33+
// ...
34+
35+
}
36+
37+
@Override
38+
public void onError(FluctAdBanner.Error error) {
39+
switch (error.getType()){
40+
case NetworkError:
41+
// ネットワークエラー:通信状況を確認
42+
break;
43+
case InvalidRequest:
44+
// 不明な広告リクエスト:media_idを確認
45+
break;
46+
case InternalError:
47+
default:
48+
// その他の不明なエラー:エラーログを確認
49+
break;
50+
}
51+
}
52+
});
53+
}
54+
}

0 commit comments

Comments
 (0)