This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "Flurry.h" | |
#import "FlurryAds.h" | |
- (BOOL)application:(UIApplication *)application | |
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Your code | |
// Replace YOUR_API_KEY with the api key in the downloaded package | |
[Flurry startSession:@"YOUR_API_KEY"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "FlurryAdDelegate.h" | |
#import "FlurryAds.h" | |
/** | |
* You can integrate interstitials in any placement in your app, but for | |
* testing purposes we present integration within your ViewController | |
*/ | |
- (void)viewWillAppear:(BOOL)animated { | |
[super viewWillAppear:animated]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.servlet.*; | |
import javax.servlet.http.HttpServletRequest; | |
public class LogRequestFilter implements Filter | |
{ | |
public static final String kDebugHeaderName = "DEBUG"; | |
private final static ThreadLocal<String> threadLocalLoggingTag = new ThreadLocal<String>(); | |
/* Nothing needed in init/destroy methods for the javax Filter interface. Just included for completeness */ | |
@Override public void init(FilterConfig config) { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.log4j.AppenderSkeleton; | |
import org.apache.log4j.Layout; | |
import org.apache.log4j.spi.ErrorCode; | |
import org.apache.log4j.spi.LoggingEvent; | |
import java.io.Writer; | |
public class LogRequestAppender extends AppenderSkeleton | |
{ | |
@Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> | |
<filter> | |
<filter-name>LogRequestFilter</filter-name> | |
<filter-class>com.flurry.util.logRequest.LogRequestFilter</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>LogRequestFilter</filter-name> | |
<!-- If the server serves lots of static content, the URL pattern could just |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<!-- Usual webserver Appender to server.log --> | |
<appender name="logfile" class="org.apache.log4j.FileAppender"> | |
<param name="Threshold" value="INFO"/> | |
<param name="File" value="logs/server.log" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%-5p %d{ABSOLUTE} (%x) %c{1} - %m%n" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@protocol FlurryAdStreamDelegate <NSObject> | |
@optional | |
- (void) adStreamDidFetchAd:(FlurryAdStream*)flurryAd; | |
- (void) adStreamDidFailToFetchAd:(FlurryAdStream*)flurryAd error:(NSError *)error; | |
- (void) adStreamDidRender:(FlurryAdStream*)flurryAd; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "Flurry_Stream_Setup.h" | |
#import "FlurryAdStreamDelegate.h" | |
#import "FlurryAdTargeting.h" | |
#import "FlurryAd.h" | |
@interface MyViewController : UIViewController <FlurryAdStreamDelegate> | |
@property (nonatomic, retain) FlurryAdStream *streamAd; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.flurry.android.v2; | |
public interface FlurryAdStreamListener { | |
public void onFetched(FlurryAdStream adView); | |
public void onFetchFailed(FlurryAdStream adView, FlurryAdError adError); | |
public void onRendered(FlurryAdStream adView); | |
public void onRenderFailed(FlurryAdStream adView, FlurryAdError adError); |
OlderNewer