Skip to content

Commit

Permalink
fix : test ads id issue and loader changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FenilInfy0m authored and FenilInfy0m committed Aug 11, 2023
1 parent 9f26384 commit 5a60ad2
Show file tree
Hide file tree
Showing 15 changed files with 10,078 additions and 36 deletions.
Binary file modified .gradle/7.4/checksums/checksums.lock
Binary file not shown.
Binary file modified .gradle/7.4/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified .gradle/7.4/checksums/sha1-checksums.bin
Binary file not shown.
Binary file modified .gradle/7.4/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/7.4/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/7.4/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/7.4/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/7.4/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
2 changes: 2 additions & 0 deletions adsSdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ dependencies {
implementation 'com.github.bumptech.glide:glide:4.15.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.15.0'

implementation 'com.airbnb.android:lottie:6.1.0'

}
18 changes: 9 additions & 9 deletions adsSdk/src/main/java/com/infyom/adssdk/InfyOmAds.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@ public static void enableTestMode(Context context) {
myPref = new AdsAccountProvider(context);

myPref.setOpenAds("/6499/example/app-open");
myPref.setBannerAds1("/6499/example/bannr");
myPref.setBannerAds2("/6499/example/baner");
myPref.setBannerAds3("/6499/example/baner");
myPref.setInterAds1("/6499/example/inerstitial");
myPref.setInterAds2("/6499/example/iterstitial");
myPref.setInterAds3("/6499/example/nterstitial");
myPref.setNativeAds1("/6499/exampl/native");
myPref.setNativeAds2("/6499/exampe/native");
myPref.setNativeAds3("/6499/examle/native");
myPref.setBannerAds1("/6499/example/banner");
myPref.setBannerAds2("/6499/example/banner");
myPref.setBannerAds3("/6499/example/banner");
myPref.setInterAds1("/6499/example/interstitial");
myPref.setInterAds2("/6499/example/interstitial");
myPref.setInterAds3("/6499/example/interstitial");
myPref.setNativeAds1("/6499/example/native");
myPref.setNativeAds2("/6499/example/native");
myPref.setNativeAds3("/6499/example/native");
myPref.setFbBannerAds("IMG_16_9_LINK#YOUR_PLACEMENT_ID");
myPref.setFbNativeAds("IMG_16_9_LINK#YOUR_PLACEMENT_ID");
myPref.setFbInterAds("IMG_16_9_LINK#YOUR_PLACEMENT_ID");
Expand Down
61 changes: 34 additions & 27 deletions adsSdk/src/main/res/layout/ads_progress_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,44 @@
android:layout_height="150dp"
android:padding="5dp">

<androidx.cardview.widget.CardView
<com.airbnb.lottie.LottieAnimationView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="10dp">
app:lottie_rawRes="@raw/ad_loader"
app:lottie_autoPlay="true"
app:lottie_loop="true"/>

<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!-- <androidx.cardview.widget.CardView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- app:cardBackgroundColor="@color/white"-->
<!-- app:cardCornerRadius="10dp">-->

<ProgressBar
android:id="@+id/pb_ads"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="20dp"
android:indeterminateTint="?android:attr/colorPrimary"
android:secondaryProgressTint="?android:attr/colorPrimary"/>
<!-- <FrameLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:orientation="vertical">-->

<TextView
android:id="@+id/tv_pb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_marginBottom="24dp"
android:textColor="?android:attr/colorPrimary"
android:text="Ads Loading..."
android:textSize="16sp"
android:textStyle="bold" />
</FrameLayout>
</androidx.cardview.widget.CardView>
<!-- <ProgressBar-->
<!-- android:id="@+id/pb_ads"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center"-->
<!-- android:layout_marginBottom="20dp"-->
<!-- android:indeterminateTint="?android:attr/colorPrimary"-->
<!-- android:secondaryProgressTint="?android:attr/colorPrimary"/>-->

<!-- <TextView-->
<!-- android:id="@+id/tv_pb"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center_horizontal|bottom"-->
<!-- android:layout_marginBottom="24dp"-->
<!-- android:textColor="?android:attr/colorPrimary"-->
<!-- android:text="Ads Loading..."-->
<!-- android:textSize="16sp"-->
<!-- android:textStyle="bold" />-->
<!-- </FrameLayout>-->
<!-- </androidx.cardview.widget.CardView>-->

</RelativeLayout>
10,033 changes: 10,033 additions & 0 deletions adsSdk/src/main/res/raw/ad_loader.json

Large diffs are not rendered by default.

0 comments on commit 5a60ad2

Please sign in to comment.