Skip to content

Master v5 with native module #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 58 commits into
base: master-v5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
6d8f8e8
chore: initial commit
github-numa-mau Jun 29, 2022
b5b1bbb
feat: new native module with android sdk
github-numa-mau Jun 30, 2022
e17fd53
feat: add teads sdk functions for AdPlacementSettings
github-numa-mau Jun 30, 2022
15b87e3
feat: add teads sdk functions for AdRequestSettings
github-numa-mau Jul 1, 2022
94e56b7
feat: add kotlin files for native mudules
github-numa-mau Jul 5, 2022
2016b9b
feat: new files to handle data exchange between SDK and RN
github-numa-mau Jul 7, 2022
bb4a4fa
feat: add more SDK functions need to check data exchange
github-numa-mau Jul 15, 2022
2765092
feat: didReceive add on android side
github-numa-mau Jul 25, 2022
0c78b2f
feat: add native view from android
github-numa-mau Aug 11, 2022
c1014e5
feat: displaying ad from native view
github-numa-mau Aug 25, 2022
45d0498
feat: displaying add clean
github-numa-mau Aug 25, 2022
fe540f8
feat: move files to scr native part, clean some logs
github-numa-mau Oct 10, 2022
6f26c2c
feat: update readme
github-numa-mau Oct 12, 2022
d8f07e2
feat: adding firsts ios native modules
github-numa-mau Dec 19, 2022
e842833
feat: first part fixing error passing NSArray with function
github-numa-mau Dec 21, 2022
ca15cae
feat: fixing RNTeads
github-numa-mau Dec 21, 2022
fce5095
feat: implement working requestAd function
github-numa-mau Dec 21, 2022
3c8cd72
feat: adding view first aspect and binding ad but no display
github-numa-mau Jan 4, 2023
871cab5
feat: linking ad to view succed but still no display
github-numa-mau Jan 5, 2023
de80bc9
feat: displaying ad working ios and update sdk version
github-numa-mau Jan 11, 2023
5084b65
feat: fixing android 2 times charging ad
github-numa-mau Jan 11, 2023
567bb38
feat: cleaning view and Ad manager
github-numa-mau Jan 11, 2023
5d3f9d5
feat: naming and cleaning code
github-numa-mau Jan 12, 2023
a3f2c26
feat: refactoring files and adding space for comments
github-numa-mau Jan 18, 2023
31b73d6
feat: refactoring error handling
github-numa-mau Jan 18, 2023
c0547c2
feat: adding comments, constants file, and version react in android
github-numa-mau Jan 18, 2023
4825dd7
feat: add ability to store different placement on iOS
github-numa-mau Jan 19, 2023
b660e95
feat: add ability to store different placement on Android
github-numa-mau Jan 25, 2023
b9666c6
feat: fixing and cleaning code
github-numa-mau Mar 8, 2023
7b9449d
feat: testing with differents pids, adding dependencies
github-numa-mau Mar 13, 2023
8523305
feat: try on native view android
github-numa-mau Mar 15, 2023
d192367
feat: fixing ios after pulling from master-v5
github-numa-mau Mar 15, 2023
0a632ce
feat: fixing android for PR
github-numa-mau Mar 15, 2023
c2db527
feat: put branch up to date
github-numa-mau Mar 15, 2023
3c92dec
feat: format documents and fix old imports
github-numa-mau Mar 15, 2023
e63900f
feat: update readme
github-numa-mau Mar 15, 2023
9e25b51
feat: removing unused files, and updating .gitignore
github-numa-mau Mar 16, 2023
daaaef4
feat: creating function to cast Settings into WrittableMap, and use b…
github-numa-mau Mar 16, 2023
57dd510
feat: fixing errors handling, removing unused print and functions
github-numa-mau Mar 29, 2023
c89809d
feat: adding Adratio files, and implementing calculateHeight
github-numa-mau Mar 30, 2023
c0001cf
feat: making ios class final and removing unused file
github-numa-mau Apr 5, 2023
0dbdcdc
feat: refactoring error handling and RNTeadsInstanceManager
github-numa-mau Apr 5, 2023
961dc73
feat: review android files, errors, sdk version, and util files
github-numa-mau Apr 11, 2023
141ae1b
feat: fixing android files, indentation, and ios version, and json func
github-numa-mau Apr 19, 2023
9bbe6a3
Update example/src/App.tsx
github-numa-mau Apr 27, 2023
19b133a
Update ios/RNInReadAdView.swift
github-numa-mau Apr 27, 2023
ed8bc79
feat: fixing inReadAdView
github-numa-mau May 10, 2023
53dee9b
feat: fixing view on ios, and companion object on android
github-numa-mau May 10, 2023
37cd893
feat: fixing async await tasks
github-numa-mau May 17, 2023
36aa634
feat: renaming for npm module export
github-numa-mau May 25, 2023
9a5c1b2
feat: gradle version
github-numa-mau Jun 1, 2023
77d1e00
feat: implementing event for android
github-numa-mau Jun 5, 2023
1dc63c8
feat: adding Events feature for both platform
github-numa-mau Jun 8, 2023
e29d946
feat: adding details to events, and implementing one common listener
github-numa-mau Jun 12, 2023
75f278a
feat: renaming and clean in ios and react files
github-numa-mau Jun 21, 2023
31acc88
feat: fix error
github-numa-mau Jun 21, 2023
e32942d
feat: adding events missing, and fixing didCatchError
github-numa-mau Jun 21, 2023
d16dc12
feat: removing unused code in android
github-numa-mau Jun 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
180 changes: 64 additions & 116 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# OSX
.DS_Store

# XDE
.expo/

# VSCode
.vscode/
jsconfig.json
.vs

# Xcode
!**/*.xcodeproj
!**/*.pbxproj
!**/*.xcworkspacedata
!**/*.xcsettings
!**/*.xcscheme
build/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -21,6 +33,28 @@ DerivedData
*.xcuserstate
project.xcworkspace

# Android Studio/IJ
build/
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml
*.iml
*.hprof

# Android memory profiler files
*.hprof

# Test generated files
/ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
*.js.meta
/coverage
/third-party

# Gradle
/build/
/packages/react-native-gradle-plugin/build/
Expand All @@ -37,49 +71,27 @@ project.xcworkspace
/template/android/app/build/
/template/android/build/

# Buck
.buckd
buck-out
/.lsp.buckd
/.lsp-buck-out
/ReactAndroid/src/main/jni/prebuilt/lib/
/ReactAndroid/src/main/gen

# Android Studio
.project
.settings
.classpath

# Watchman
.watchmanconfig

# Android
.idea
.gradle
local.properties
*.iml
# iOS / CocoaPods
/example/ios/Pods/
/template/ios/build/
/template/ios/Pods/
/template/ios/Podfile.lock
/packages/rn-tester/Gemfile.lock

# Ruby Gems (Bundler)
/vendor
/template/vendor

# Node
node_modules
# node.js
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
*.log
.nvm
/bots/node_modules/
package-lock.json

# OS X
.DS_Store

# Hermes
/sdks/hermes

# Test generated files
/ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
*.js.meta

/coverage
/third-party

# Root dir shouldn't have Xcode project
/*.xcodeproj

Expand All @@ -95,17 +107,6 @@ package-lock.json
/React/FBReactNativeSpec/**/*.xcodeproj
/packages/react-native-codegen/**/*.xcodeproj

# Ruby Gems (Bundler)
/vendor
/template/vendor

# iOS / CocoaPods
/example/ios/Pods/
/template/ios/build/
/template/ios/Pods/
/template/ios/Podfile.lock
/packages/rn-tester/Gemfile.lock

# Ignore RNTester specific Pods, but keep the __offline_mirrors__ here.
/packages/rn-tester/Pods/*
!/packages/rn-tester/Pods/__offline_mirrors__
Expand All @@ -116,15 +117,21 @@ package-lock.json
/ReactCommon/react/renderer/components/rncore/
/packages/rn-tester/NativeModuleExample/ScreenshotManagerSpec*

# Visual studio
.vscode
.vs

# Android memory profiler files
*.hprof
# BUCK
.buckd
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore
/.lsp.buckd
/.lsp-buck-out
/ReactAndroid/src/main/jni/prebuilt/lib/
/ReactAndroid/src/main/gen
*.keystore
!debug.keystore

#expo
.expo/
# Expo
.expo/*
dist/
npm-debug.*
*.jks
Expand All @@ -135,64 +142,5 @@ npm-debug.*
*.orig.*
web-build/


# @generated expo-cli sync-e7dcf75f4e856f7b6f3239b3f3a7dd614ee755a8
# The following patterns were generated by expo-cli

# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# Bundle artifacts
*.jsbundle

# CocoaPods
/ios/Pods/

# Expo
.expo/
web-build/
dist/

# @end expo-cli
# generated by bob
lib/
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Override Yarn command so we can automatically setup the repo on running `yarn`

yarn-path "scripts/bootstrap.js"
38 changes: 22 additions & 16 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
import React from 'react'
import { NavigationContainer } from '@react-navigation/native'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import ActionBarImage from './components/ActionBarImage'
import Article from './pages/Article'
import { LinearGradient } from 'expo-linear-gradient'
import ActionBarImageWhite from './components/ActionBarImageWhite'
import styleApp from './styles/styleApp'
import HomeScreen from './pages/Homescreen'
import InFeed from './pages/InFeed'
import { HOMESCREEN, DEMOSCREEN, TEADSPINK, TEADSBLUE, NATIVESCREEN } from './constants'
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import ActionBarImage from './components/ActionBarImage';
import Article from './pages/Article';
import { LinearGradient } from 'expo-linear-gradient';
import ActionBarImageWhite from './components/ActionBarImageWhite';
import styleApp from './styles/styleApp';
import HomeScreen from './pages/Homescreen';
import InFeed from './pages/InFeed';
import {
HOMESCREEN,
DEMOSCREEN,
TEADSPINK,
TEADSBLUE,
NATIVESCREEN,
} from './constants';

const Stack = createNativeStackNavigator()
const Stack = createNativeStackNavigator();

export default function App() {
return (
Expand All @@ -20,7 +26,7 @@ export default function App() {
name={HOMESCREEN}
component={HomeScreen}
options={{
headerTitle: () => <ActionBarImage />
headerTitle: () => <ActionBarImage />,
}}
/>
<Stack.Screen
Expand All @@ -37,7 +43,7 @@ export default function App() {
start={{ x: 0, y: 1 }}
end={{ x: 1, y: 1 }}
/>
)
),
}}
/>
<Stack.Screen
Expand All @@ -54,10 +60,10 @@ export default function App() {
start={{ x: 0, y: 1 }}
end={{ x: 1, y: 1 }}
/>
)
),
}}
/>
</Stack.Navigator>
</NavigationContainer>
)
);
}
Loading